1 |
In escape sequence first character is always __________ and the second character varies according to the functionality that we want to achieve: |
- A. back slash (\)
- B. /
- C. ?
- D. :
|
2 |
Which escape sequence is used to print the output on multiple lines ? |
|
3 |
Which of the following is a type of operator ? |
- A. assignment operator
- B. arithmeticoperators
- C. logicaloperators
- D. all of these
|
4 |
Which of the following is called escape character which is associated with each escape sequence to notify about escape ? |
- A. back slash (\)
- B. /
- C. ?
- D. :
|
5 |
Which of the following is a valid line of code ? |
- A. int = 20;
- B. grade = 'A';
- C. line = this is a line,
- D. none of these
|
6 |
Escape sequences consists of ________ characters: |
- A. two
- B. three
- C. four
- D. five
|
7 |
Which operators require two operands to perform the operations ? |
- A. unary
- B. binary
- C. ternary
- D. all of these
|
8 |
Which operator has the highest precedence among the following ? |
- A. /
- B. !
- C. >
- D. <
|
9 |
Escape sequences are used in printf function inside the: |
- A. "and"
- B. 'and'
- C. :and:
- D. ,and;
|
10 |
Which operator performs division of left operand by the right operand and returns the remainder value after division ? |
|