Home

Questions Provided by Anupom Mondol(Lecturer, BUTEX)

N.B: Each Question Contains 1 Mark

Enter Your Name: Name Was Entered !

1. What will be the output of the following C code?


equal
not equal
output depends on the compiler
error

2. What will be the output of the following C code?


1
error
1.0000000
49.000000

3. The C code ‘for( ; ; )’ represents an infinite loop. It can be terminated by ___________

break
exit(0)
abort()
terminate

4. For which of the following, “PI++;” code will fail?

#define PI 3.14
char *PI = “A”;
float PI = 3.14;
none of the Mentioned

5. if a=2 and c = a++ + a++ then c=?

3
4
5
7

6. Which of the following is not an input function?

scanf()
putc()
getc()
none of above

7. Which operator connects the structure name to its member name?


<-
.
Both <- and .

8. How can we create loop in our program not using for,while and do while ?

goto
array
switch
All of above

9. What will be the output of the following C code?


6 7
6 6
5 5
5 6

10. What will be the output of the following C code?


Infinite calls to main
Run time error
Varies
main is called twice

Share on FB

Made with ❤ by TriptoAfsin