1 |
Which is NOT a valid statement to initialize a variable? |
- A. int n=100;
- B. long,population=15000;
- C. char n []="hello World";
- D. cons int N=100;
|
2 |
The data type can handle decimal places is: |
- A. Long
- B. float
- C. char
- D. string
|
3 |
The logical not operator denoted by is |
- A. Ternary operator
- B. Unary operator
- C. a=a+b
- D. b=b+a
|
4 |
Which is true about a variable? |
- A. The name and data value can both change
- B. The name can change, but the data value cannot
- C. The name cannot change, but the data value can
- D. The name and the data value both cannot changed
|
5 |
The float, long float and double data types are known as: |
- A. Integer data
- B. character data
- C. Integral data
- D. Real data
|
6 |
Which is a numeric data type ? |
- A. float
- B. int
- C. Both a and b
- D. char
|
7 |
An attribute that uniquely identify each row in a relation is called |
- A. Column
- B. Foreign
- C. Primary key
- D. Duplicate key
|
8 |
Relational operators are used to |
- A. Establish a relationship among variables
- B. Compare two values
- C. Construct compound condition
- D. Performs arithmetic operators
|
9 |
Which of the following operations has lowest precedence? |
|
10 |
Which of the following are valid variable names? |
- A. Long
- B. Integer
- C. Notlongenough
- D. Both B and C
|