Control Instructions Questions And Answers.


1.How many times "PAK-MCQS" is get printed?
A. Infinite times
B. 11 times
C. 0 times
D. 10 times

2.How many times the while loop will get executed if a short int is 2 byte wide?
A. 254 times
B. 255 times
C. 256 times
D. Infinite times

3.In mathematics and computer programming, which is the correct order of mathematical operators ?
A. Addition, Subtraction, Multiplication, Division
B. Division, Multiplication, Addition, Subtraction
C. Multiplication, Addition, Division, Subtraction
D. Addition, Division, Modulus, Subtraction

4.Which of the following cannot be checked in a switch-case statement?
A. Character
B. Integer
C. Float
D. enum

5.Point out the error, if any in the for loop.
A. There should be a condition in the for loop
B. The two semicolons should be dropped
C. The for loop should be replaced with while loop.
D. No error