Following are the multiple choice questions from C++. Please scroll down to check the answers.
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
Which of the following is known as insertion operator?
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
Which of the following is output statement in C++?
Which of the following is input statement in C++?
d. none of above
By default, the standard output device for C++ programs is
By default, the standard input device for C++ program is
d. None of these
Which of the following statement is true regarding cin statement?
a. cin statement must contain a variable preceded by >> operator
b. cin does not process the input until user presses RETURN key
c. you can use more than one datum input from user by using cin
d. all of above
Which of the following is extraction operator in C++?
When requesting multiple datum, user must separate each by using
a. a space
b. a tab character
c. a new line character
d. all of above
1. d. Both a and c
2. c. <<
3. b. Both are similar but endl additionally performs flushing of buffer
4. c. Cout
5. a. Cin
6. b. Monitor
7. a. Keyboard
8. d. All of above
9. d. >>
10. d. all of above
|< Prev||Next >|