Top 150+ Solved Programming for Problem Solving MCQ Questions Answer
Q. What Is The Work Of Break Keyword?
a. Halt Execution Of Program
b. Restart Execution Of Program
c. Exit From Loop Or Switch Statement
d. all
Q. Which One Of The Following Sentences Is True ?
a. The Body Of A While Loop Is Executed At Least Once.
b. The Body Of A Do ... While Loop Is Executed At Least Once.
c. The Body Of A Do ... While Loop Is Executed Zero Or More Times.
d. A For Loop Can Never Be Used In Place Of A While Loop.
Q. A C Variable Cannot Start With
a. An Alphabet
b. A Number
c. A Special Symbol Other Than Underscore
d. Both (B) And (C)
Q. Which Of The Following Shows The Correct Hierarchy Of Arithmetic Operations In C
a. / + * -
b. * - / +
c. + - / *
d. * / + -
Q. Int Main(){Extern Int I;I = 20;Printf("%D", Sizeof(I));Return 0;}
a. 20
b. 0
c. Undefined Reference To I
d. Linking Error
Q. Is The Following Statement A Declaration Or DefinitionExtern Int I;
a. Declaration
b. Definition
c. none
d. all
Q. Int Main(){ Int X = 10;{ Int X = 0; Printf("%D",X);} Return 0;}
a. 10
b. Compilation Error
c. '0'
d. Undefined
Q. What Should Be The Output:Int Main(){ Int A = 10/3; Printf("%D",A); Return 0;}
a. 3.33
b. 3.0
c. 3
d. Option.
Q. Which Of The Following Is Executed By Preprocess?
a. #Include<Stdio.H>
b. Return 0
c. Void Main(Int Argc , Char ** Argv)
d. none
Q. Int Main(){Int _ = 10;Int __ = 20;Int ___ = _ + __;Printf("__%D",___);Return 0;}
a. Compilation Error
b. Runtime Error
c. __0
d. __30
Q. Int Main(){ Int A = 5; Int B = 10; Int C = A+B; Printf("%I",C);
a. 0
b. 15
c. Undefined I
d. Any Other Compiler Error
Q. How many times C.com is printed?int main(){int a = 0;while(a++ < 5-++a)printf("C.com");return 0;}
a. 5 times
b. 4 times
c. 3 times
d. 1 times