Contents

Which object of iostream class reads input from input device?
a) cout                         
b) cin
c) endl                         
d) none of these

b

Which of the following operator is used with standard input (cin)?
a) assignment operator (=)        
b) insertion operator (<<)
c) extraction operator (>>)
d) OR operator (^^)

c

What is the example of input stream?
a) cout<<age;              
b) cin>>age;
c) cout endl;                
d) cin endl.

b

Which of the following function is used to get string from keyboard?
a) get()                        
b) puts()
c) getch()                     
d) none of these

a

Which of the following function is used to write string on the screen and appends a newline character automatically to the string?
a) get()                        
b) puts()
c) getch()                     
d) none of these

b

The function that obtains the next available keystroke or character from the console is called….
a) get()                        
b) puts()
c) getch()                    
d) none of these

c