B. Compiler: D. Break

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Basic Statements

1.

Which of the following creates object file from source code?

2.

The statement used to exit from switch structure is ........

3.

A. 2
B. 3
C. 4
D. 1

Which of the following is the simplest of all the decision statements?

5.

A. default
B. quit
C. exit
D. break

How many kinds of loops are there in C++?

4.

A. Header
B. Compiler
C. Linker
D. Editor

A. Break
B. Switch
C. If
D. While

Which of the following is the assignment operator?

A. =
B. ==
C. +
D. !

6.

How many methods are there for assigning data to the variables in C+
+?
A. 2
B. 3
C. 4
D. 5

7.

A program written in high level language is called as

A. Source code
B. Executable code
C. Object code
D. All of these

8.

Which of the following functions will be executed first automatically,


when a C++ program is executed?
A. Main
B. Void
C. Call by reference
D. Recursive

9.

A loop embedded within another loop is called

A. Loop

Basic Statements

B. Break
C. Nested
D. Continue

10. The extraction operator that extracts data from the input stream
object is .........
A. cin
B. cio
C. count
D. cout
11. The multiple branching statement is ......... statement?

A. for
B. while
C. if
D. switch

12. Which of the following statements marks the end of the function and
also transfers control to the statement after call statement?
A. Stop
B. Return
C. Break
D. Continue
13. ......... is called as exit check loop.

A. for
B. if
C. while
D. do-while

14. In C++ which file comprises the combined properties of istream and
ostream?
A. conio.h
B. iostream.h
C. string.h
D. stdio.h
15. Program statements that causes jumps are called as ......... statements
or structures.
A. increment
B. decrement
C. assignment
D. control

You might also like