Which escape sequence is used to insert tab in C++?
a) \a
b) \b
c) \t
d) \n
Which escape sequence can be used to move cursor at the beginning
of current line in C++?
a) \a
b) \b
c) \m
d) \r
Which manipulator is used to move cursor to the beginning of next line?
a) endl
b) lastl
c) stopl
d) begl
Which of the following header file must be included to use stew() and setprecision() manipulator?
a) fiostream.h
b) conio.h
c) math.h
d) iomanip.h
What is the output of following statement?
cout<<setw (6) << left << “word” <<setw(6) <<right <<1.97;
a) #word1.97##
b) #word1.97###
c) word###1.97
d) word####1.97
What is the printed by statement: cout<<” \”\\nnow\””?
a) “\nnow”
b) \nnow
c) “\nnow
d) “nnow”