Bca second semester C-Programming MCQ Question paper
Bca second semester C-Programming MCQ question paper for practice. this question is only profit for BCA students which is studying in Nepal.
Question 1
Dennis Was Author of Famous Programming Book _________ .
a. Learn C Step By Step
b. The C Programming Language
C. Programming for Scientist
D. Programming and Techniques
E. Thinking in C
Ans b,
Question 2
Many features of C were derived from an earlier language called _____.
a.PASCAL
b.FORTRAN
c.B
D.BCPL
E.BASIC
Ans C
Question 3
C Programming was created at ______ by Dennis Ritchie.
a. MIT University
B. L&T Laboratory
C. AT&T Bell Laboratory
D. Haward University
E. Stanford Lab
Ans C.
Question 4
Dennis Ritchie received following awards – [Select 2]
a.National Medal of Technology
b. Nobel Prize
c.Sony Radio Academy Awards
d.Turing Award for their development of generic operating systems theory
e.Albert Einstein World Award of Science
Ans A. and D.
Question 5
C Programming was created in Year _______ .
a.1980
b.1972
c.1967
d.1976
Ans. b
Question 6
Who was Creator of B Language , which inspired Dennis Ritchie to create Strong Procedural Language called C ?
a.Brian Kernighan
b.John W. Backus
c.Ken Thompson
d.Thomas E. Kurtz
e.James Gosling
Ans C,
Question 7
Ritchie and Brian Kernighan jointly carried out the development of C and that version is ________ .
a.K&R C
b.R&K C
c.ANSI C
d.ISO C
e.C99
Ans a,
Question 8
Which Committee standardize C Programming Language ?
a.ISO
b.TRAI
c.ANSI
d.W3C
Ans c
Chapter 2
Question 1
#include<stdio.h>
int main()
{
int i=0;
for(;;)
printf(“%d”,i);
return 0;
}
a. 1 times
b. 10 times
c. Infinite times
D. 0 times
Ans c.
Question 2
Find output of the following program ?
#include<stdio.h>
int main()
{
char str[] = “Smaller”;
int a = 100;
printf(a > 10 ? “Greater” : “%s”, str);
return 0;
}
a.Greater
b.100
c.Compile Error
d.Smaller
Ans a
Question 3
Guess the output of the following program ?
#include<stdio.h>
int main()
{
int a = 100, b = 200, c = 300;
if(!a >= 500)
b = 300;
c = 400;
printf(“%d,%d,%d”,a, b, c);
return 0;
}
a.100,200,400
b.100,300,300
c.100,200,300
d.100,300,400
Ans a.
Question 4
Guess the output of the following program :
#include<stdio.h>
int main()
{
int x = 10;
float y = 10.0;
if(x == y)
printf(“x and y are equal”);
else
printf(“x and y are not equal”);
return 0;
}
a.x and y are not equal
b.x and y are equal
c.Run Time Error
d.Compile Error
Ans b
Question 5
Guess the output of the program ?
#include<stdio.h>
int main()
{
int a=0, b=1, c=2;
*((a+1 == 1) ? &b : &a) = a ? b : c;
printf(“%d, %d, %d\n”, a, b, c);
return 0;
}
a.0,1,2
b.1,1,2
c,2,2,2
d.0, 2, 2
ans
Question 6
What will be printed if we execute following program ?
#include<stdio.h>
int main()
{
float a = 0.3;
if(0.3 > a)
printf(“True\n”);
else
printf(“False\n”);
return 0;
}
a.True
b.True False
c.False
d.None of these
ans c.
Question 7
Predict the output of the program ?
#include<stdio.h>
int main()
{
if(printf(“ABC”))
printf(“True”);
else
printf(“False”);
return 0;
}
a.ABCTrue
b.True
c.ABC
d.ABCFalse
Ans a
Question 8
Guess the output of the program ?
#include<stdio.h>
int main()
{
int i = 1, j = 2;
if(i = 1) && if(j = 2)
printf(“India is my country”);
return 0;
}
a.Error : Expression Syntax Error
b.No output and No Error
c.Error: Undeclared identifier if
d.Error: Misplaced If
Ans a d
Question 9
How many times loop will get executed ?
#include<stdio.h>
int main()
{
int i = 0;
while(i <= 255)
{
printf(“%d”, i);
i++;
}
return 0;
}
a.256 Times
b.Infinite Times
c.255 Times
d.1 Time
Ans a
Question 10
Point out error in the following code –
#include<stdio.h>
int main()
{
int x = 50, y = 100;
if(x = = y)
printf(“x is equal to y\n”);
else if(x > y)
printf(“x is greater than y\n”);
else if(x < y)
printf(“x is less than y\n”)l
return 0;
}
a.Error: Statement missing Semicolon
b.Error: L-Value Required
c.Error: R-Value Required
d.Error: Expression syntax
ans b,
chapter 4
Question 1
Guess the output of the following program ?
#include<stdio.h>
int main()
{
int x=10;
printf(“%d, %d, %d\n”, x <= 10, x = 40, x >= 10);
return 0;
}
a. 1, 40, 1
b. 1, 40, 1
c. 1, 1, 1
d. 0, 40, 1
Ans a
Question 2
Predict the output of the following code ?
#include<stdio.h>
int main()
{
int i = 10;
printf(“%d, %d\n”, ++i, i++);
return 0;
}
a.12, 12
b. Output may Vary from Compiler to Compiler
c. 12, 10
d. 12, 11
Ans b
Question 3
Guess the output ?
#include<stdio.h>
int main()
{
int k, num = 100;
k = (num > 50 ? (num <= 10 ? 100 : 200): 500);
printf(“%d\n”, num);
return 0;
}
a.200
b.500
c.100
d.300
Ans c
Question 4
Guess the output of the following program ?
#include<stdio.h>
int main()
{
int k;
k = (1,2,3,4,5);
printf(“%d\n”, k);
return 0;
}
a.1
b.4
c.2
d.5
Ans d
Question 5
Guess the output of the following program ?
#include<stdio.h>
int main()
{
int k;
k = 1,2,3,4,5;
printf(“%d\n”, k);
return 0;
}
a.1
b.4
c.2
d.5
Ans a
Question 6
a.
b.
c.
d.
Ans
Question 7
a.
b.
c.
d.
Ans
Question 8
a.
b.
c.
d.
Ans
Question 9
a.
b.
c.
d.
Ans
Question 10
a.
b.
c.
d.
Ans
BCA Second semester C-Programming part-1 MCQ Question Paper c-programming bca mcq question multiple choice question for first term second preboard and also for final term
This question is share for only study and preparation not for other Purpose.
what you need from sites please comment us and also be Feedback for site and don’t forget to like our Facebook-Page
if you like please share this post with your friend whose study in BCA
if you have any query please comment below,
if you like our sites. you can visit again for the latest updates notes of different BCA subject of Presentation and different topics with assignment question and solution.
Don’t forget to like our page and post also share with your friend and having your group.
if you have any question you can drop or share with me using comment box I will try to give an answer to your question.
Like our facebook page:https://www.facebook.com/bcanotesnepal