1 |
Which of the following are valid variable names? |
- A. Long
- B. Integer
- C. Notlongenough
- D. Both B and C
|
2 |
Which variable should be used to store the value "I want an A in this exam". |
- A. char
- B. int
- C. float
- D. character
|
3 |
Which of the following operators has lowest precedence |
|
4 |
Variable and constant names can not contain a(n): |
- A. Number
- B. Underscore
- C. Upper case letter
- D. Lower case letter
|
5 |
The symbol '=' represents |
- A. Comparison operator
- B. Assignment operator
- C. Equal to operator
- D. None of these
|
6 |
Which of the following is a valid character constant? |
- A. a
- B. "Hello"
- C. '6'
- D. =
|
7 |
Which term describes the kind of values that a variable can store? |
- A. Varaible name
- B. Datatype
- C. Varaibletype
- D. Varaiblesize
|
8 |
Which is NOT a rule for naming variables? |
- A. Use a descriptive name for the value
- B. Start the name of variable with a letter
- C. Use nothing but letters, digits, or the underscore character
- D. All the above
|
9 |
Relational operators are used to |
- A. Establish a relationship among variables
- B. Compare two values
- C. Construct compound condition
- D. Performs arithmetic operators
|
10 |
Which of the following data type offers the highest precisions |
- A. Float
- B. Long int
- C. Long double
- D. Unsigned long unit
|