Bsic C++ Quiz Questions & Answers - 1

Question: 1

In C++ which file comprises the combined properties of istream and ostream?

(A) stdio.h

(B) string.h

(C) conio.h

(D) iostream.h

Ans: D

iostream.h

Question: 2

____ File comprises of all standard declarations and definitions for predefined functions.

(A) Iostream

(B) Istream

(C) Footer

(D) Header

Ans: D

Header

Question: 3

How many methods are there for assigning data to the variables in C++?

(A) 2

(B) 3

(C) 4

(D) 5

Ans: A

2

Question: 4

The break statement would exit only ___

(A) Current program

(B) Current loop

(C) Current function

(D) None of these

Ans: B

Current loop

Question: 5

The header file can be given by using a preprocessor directive starts with ___

(A) #

(B) $

(C) /

(D) %

Ans: A

#

Related Questions