Programming - C++ Language
You Are Here :: Home > C++ Language > Introduction - General Questions
1. |
Streams are
|
A. |
Abstraction to perform input and output operations in sequential media |
B.
|
Abstraction to perform input and output operations in direct access media |
C.
|
Objects where a program can either insert or extract characters to and from it
|
D.
|
Both a and c
|
|
Answer: Option D
Explanation:
|
2. |
Which of the following is known as insertion operator?
|
|
Answer: Option C
Explanation:
|
3. |
Regarding the use of new line character (/n) and endl manipulator with cout statement
|
A. |
Both ways are exactly same |
B.
|
Both are similar but endl additionally performs flushing of buffer |
C.
|
endl can’t be used with cout
|
D.
|
\n can’t be used with cout
|
|
Answer: Option B
Explanation:
|
4. |
Which of the following is output statement in C++?
|
A. |
print |
B.
|
write |
C.
|
cout
|
D.
|
cin
|
|
Answer: Option C
Explanation:
|
5. |
Which of the following is input statement in C++?
|
A. |
cin |
B.
|
input |
C.
|
get
|
D.
|
none of above
|
|
Answer: Option A
Explanation:
|
6. |
By default, the standard output device for C++ programs is
|
A. |
Printer |
B.
|
Monitor |
C.
|
Modem
|
D.
|
Disk
|
|
Answer: Option B
Explanation:
|
next »