CPP Escape Sequence MCQ

Cpp MCQ
  1. Home
  2. Tutorials
  3. Cpp
  4. Escape Sequence
  5. Multiple Choice Question

(1) Which of the following escape sequence is used for carriage return?

A) \c
B) \r
C) \cr
D) All

(2) How many escape sequence can be used within format string in C/C++

A) 1
B) 2
C) 4
D) Multiple

(3) Which of the following escape sequence is used for beep in format string

A) \a
B) \b
C) \\
D) \beep

(4) Escape sequences are used in C/C++ for the following purpose.

A) Compilation
B) Linking of Code
C) Variable declaration
D) Output format

(5) Which of the following is used as escape character in format string

A) /
B) \
C) =
D) %
Comments
Login to TRACK of Comments.