Programming - C++ Language

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

 
49.

A suitable place to store Class declarations is _______.                        


A. their own header files B. Auxiliary .cpp file
C. main .cpp files, along with function definitions D. floppy diskettes




50.

Find out the error in following block of code.
If (x = 100)
Cout << “x is 100”;                        


A. 100 should be enclosed in quotations B. There is no semicolon at the end of first line
C. Equals to operator mistake D. Variable x should not be inside quotation




51.

Looping in a program means                        


A. Jumping to the specified branch of program B. Repeat the specified lines of code
C. Both of above D. None of above




52.

The difference between while structure and do structure for looping is                        


A. In while statement the condition is tested at the end of first iteration B. In do structure the condition is tested at the beginning of first iteration
C. The do structure decides whether to start the loop code or not whereas while statement decides whether to repeat the code or not D. In while structure condition is tested before executing statements inside loop whereas in do structure condition is tested before repeating the statements inside loop




53.

Which of the following is not a looping statement in C?                        


A. while B. until
C. do D. for




54.

Which of the following is not a jump statement in C++?                        


A. break B. goto
C. exit D. switch




« prev

1

2

3

4

5

6

7

8

9

next »

 
 



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