Programming - C++ Language

You Are Here :: Home > C++ Language > Introduction - General Questions

 
37.

If there is more than one statement in the block of a for loop, which of the following must be placed at the beginning and the ending of the loop block?                        


A. parentheses ( ) B. braces { }
C. brackets [ ] D. arrows < >




38.

What's wrong? (x = 4 && y = 5) ? (a = 5) ; (b = 6);                        


A. the question mark should be an equal sign B. the first semicolon should be a colon
C. there are too many variables in the statement D. the conditional operator is only used with apstrings




39.

Consider the statements a = 13 ; c = a<< 3 ; (a and c are integers). The result assigned to the integer c is :                        


A. 104 B. 114
C. 140 D. 14




40.

A stream is a sequence of                        


A. Integers B. File names
C. Bytes D. Classes




41.

Which of the following c operators has the highest precedence?                        


A. ++ B. %
C. Ü D. &&




42.

The number of elements in a 2-D array a [-5..5, 5..10] is                        


A. 44 B. 55
C. 66 D. 77




« prev

1

2

3

4

5

6

7

8

9

next »

 
 



© 2013 freshersindia.in ® | Copyrights | Terms & Conditions
   Designed by Freshers India
Catch Us on