1 |
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
|
2 |
Which operator negates or reverses the value of Boolean expression ? |
|
3 |
All of arithmetic operators, relational operators and logical operators && and || are: |
- A. unary operators
- B. binaryoperators
- C. ternaryoperators
- D. all of these
|
4 |
Which operator requires three operands respectively to perform the operation ? |
- A. unary
- B. binary
- C. ternary
- D. all of these
|
5 |
Which of the following is used as an assignmentoperator in C language ? |
|
6 |
Which of the following is a valid character ? |
- A. 'here'
- B. "a"
- C. '9'
- D. none of them
|
7 |
scanf is a __________ in C programming language: |
- A. keyboard
- B. library
- C. function
- D. none of them
|
8 |
In C language _______ is used as statement terminator: |
|
9 |
Which format specifier is used for character data type ? |
|
10 |
Which operator is used to subtract the value on right side from the value on left side ? |
|