Top 150+ Solved Programming for Problem Solving MCQ Questions Answer

From 31 to 45 of 105

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

  • c. Exit From Loop Or Switch Statement

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.

  • b. The Body Of A Do ... While Loop Is Executed At Least Once.

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)

  • d. Both (B) And (C)

Q. Which Of The Following Shows The Correct Hierarchy Of Arithmetic Operations In C

a. / + * -

b. * - / +

c. + - / *

d. * / + -

  • 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

  • c. Undefined Reference To I

Q. Is The Following Statement A Declaration Or DefinitionExtern Int I;

a. Declaration

b. Definition

c. none

d. all

  • a. Declaration

Q. Int Main(){ Int X = 10;{ Int X = 0; Printf("%D",X);} Return 0;}

a. 10

b. Compilation Error

c. '0'

d. Undefined

  • c. '0'

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

  • a. #Include<Stdio.H>

Q. Int Main(){ Int A = 10.5; Printf("%D",A); Return 0;}

a. 10.5

b. 10.0

c. 10

d. Compilation Error

  • c. 10

Q. Int Main(){Int _ = 10;Int __ = 20;Int ___ = _ + __;Printf("__%D",___);Return 0;}

a. Compilation Error

b. Runtime Error

c. __0

d. __30

  • 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

  • b. 15

Q. int main(){ int x; x=10,20,30; printf("%d",x); return 0;}

a. 10

b. 20

c. 30

d. Compilation Error

  • a. 10
Subscribe Now

Get All Updates & News