WBJECA MCQ FOR NEW SYLLABUS
C Programming MCQ ( SET - 10)
- Predict the output of Program ?
main()
{
int const i=3 ;
i++ ;
printf("%d",i) ;
}- error
- 3
- 4
- 2
Answer: A
Explantion: None - what is the answer of C programming ?
main()
{
int j ;
if( j++ && ( j==1) )
printf("true");
else
printf("false") ;
}- error
- true
- false
- None
Answer: C
Explantion: None - which one currect answer ?
main()
{
int j=0 ;
if( j == 0)
{
printf("true");
}
printf("false") ;
}- error
- true
- false
- truefalse
Answer: D
Explantion: None. - what is the outcome of this program ?
main()
{
int i=3-1+2/2 ;
printf("%d",i) ;
}- 0
- 1
- 2
- 3
Answer: D
Explantion: None - which one is correct answer ?
main()
{
while( 1 )
{
printf("true");
}
}- error
- infinite time executting
- true
- None of above
Answer: B
Explantion: None - what is the out-come of that program ?
main()
{
int i=3,j=5 ;
printf("%d%d%d%d",i,j) ;
}- 3 5 3 5
- 3 5
- 3 5 garbage garbage
- garbage garbage 3 5
Answer: C
Explantion: None - whai is the output ?
main()
{
int i=99,j=66 ;
printf("%C %C",i,j) ;
}- c B
- C b
- c
- b
Answer: A
Explantion: None - Which loop is best to perform the operation then test the conditin ?
- do...while loop
- while loop
- for loop
- all are same
Answer: A
Explantion: None - Which of the following function is pre-defined ?
- input()
- sqrt()
- print()
- main()
Answer: B
Explantion: None - 10Which Datatype will throw an error when we perform modulus operation (%) ?
- short
- float
- int
- all of above
Answer: B
Explantion: None
More C programming MCQ for
0 Comments