1 |
Which is unary operator ? |
|
2 |
Which of the following is not a type of operator ? |
- A. arithmetic operator
- B. checkoperator
- C. relationaloperator
- D. logicaloperator
|
3 |
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
|
4 |
Which of the following are logical operators ? |
- A. AND
- B. OR
- C. NOT
- D. all of these
|
5 |
Which operator is used to multiply two values ? |
|
6 |
Which operator makes it true, if it is false and false if it true ? |
|
7 |
Which is identifier for compiler to identity the end of a line ? |
|
8 |
Let the following part of code, what will be the value of variable an after execution:<div>int a = 4;</div><div>float b= 2.2;</div><div>a = a * b;</div> |
- A. 8.8
- B. 8
- C. 8.2
- D. 8.0
|
9 |
Which of the following is escape sequence ? |
- A. \n
- B. \t
- C. \a
- D. all of these
|
10 |
Which is a combination of backslash (\) and a code character to control printing of data on the screen ? |
- A. escape sequence
- B. format specified
- C. character
- D. printing
|