| 1. | How many times "IndiaBIX" is get printed? | |||||||||
|
| 2. | How many times the while loop will get executed if a short int is 2 byte wide? | |||||||||
Answer: Option B Explanation: The while(j <= 255) loop will get executed 255 times. The size short int(2 byte wide) does not affect the while() loop. |
| 3. | Which of the following is not logical operator? | |||||||||
Answer: Option A Explanation: Bitwise operators: & is a Bitwise AND operator. Logical operators: && is a Logical AND operator. || is a Logical OR operator. ! is a NOT operator. So, '&' is not a Logical operator. |
| 4. | Which is the correct order of mathematical operators ? | |||||||||
Answer: Option B Explanation: Simply called as BODMAS (Bracket of Division, Multiplication, Addition and Subtraction). |
| 5. | Which of the following cannot be checked in a switch-case statement? | |||||||||
Answer: Option C Explanation: The switch/case statement in the c language is defined by the language specification to use an int value, so you can not use a float value. The value of the 'expression' in a switch-case statement must be an integer, char, short, long. Float and double are not allowed. |
No comments:
Post a Comment