Control Instructions - General Questions Online Exam Quiz

Control Instructions - General Questions GK Quiz. Question and Answers related to Control Instructions - General Questions. MCQ (Multiple Choice Questions with answers about Control Instructions - General Questions

How many times "IndiaBIX" is get printed?

Options

A : Infinite times

B : 11 times

C : 0 times

D : 10 times

View Answer

How many times the while loop will get executed if a short int is 2 byte wide?

Options

A : Infinite times

B : 255 times

C : 256 times

D : 254 times

View Answer

Which of the following is not logical operator?

Options

A : &

B : &&

C : ||

D : !

View Answer

In mathematics and computer programming, which is the correct order of mathematical operators ?

Options

A : Addition, Subtraction, Multiplication, Division

B : Division, Multiplication, Addition, Subtraction

C : Multiplication, Addition, Division, Subtraction

D : Addition, Division, Modulus, Subtraction

View Answer

Which of the following cannot be checked in a switch-case statement?

Options

A : Character

B : Integer

C : Float

D : enum

View Answer

What does the following C#.NET code snippet will print?

Options

A : Prints 1 to 9

B : Prints 0 to 8

C : Prints 2 to 8

D : Prints 2 to 9

View Answer

Which of the following is the correct output for the C#.NET program given below?

Options

A : 20 16 12 84 0 -4 -8

B : 20 16 12 8 4 0

C : 20 16 12 8 4 0 -4 -8 -12

D : 16 12 8 4 0

View Answer

Which of the following statements is correct?

Options

A : It is not possible to extend the if statement to handle multiple conditions using the else-if arrangement.

B : The switch statement can include any number of case instances with two case statements having the same value.

C : A jump statement such as a break is required after each case block excluding the last block if it is a default statement.

D : The if statement selects a statement for execution based on the value of a Boolean expression.

View Answer

What is the output of the C#.NET code snippet given below?

Options

A : red

B : blue

C : 0

D : 1

View Answer

Which of the following is the correct way to rewrite the following C#.NET code snippet given below?

Options

A : int i = 0 ; do { Console.WriteLine(i); } until (i <= 10 );

B : int i; for (i = 0 ; i <= 10 ; i++) Console.WriteLine(i);

C : int i = 0 ; while (i <= 11 ) { Console.WriteLine(i); i += 1 ; }

D : int i = 0 ; do while ( i <= 10 ) { Console.WriteLine(i); i += 1 ; }

View Answer

Arrays - General Questions more Online Exam Quiz

References - General Questions

Arrays - General Questions

Complicated Declarations - General Questions

Declarations and Initializations - General Questions

Floating Point Issues - General Questions