1 |
Which of the following statements is NOT legal? |
- A. char ch='b';;
- B. char ch='0'
- C. char ch=65;
- D. char ch="cc"
|
2 |
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
|
3 |
The number of bytes used by int data type in C is: |
|
4 |
the integer, long and short data types are known as: |
- A. Integer data types
- B. Non-integral data types
- C. float data types
- D. Non-numeric data types
|
5 |
Variable and constant names can not contain a(n): |
- A. Number
- B. Underscore
- C. Upper case letter
- D. Lower case letter
|
6 |
The number of bytes used by double data type in C is: |
|
7 |
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;
|
8 |
Which of the following operations has lowest precedence? |
|
9 |
Which of the following data types is most appropriate for storing a name? |
- A. float
- B. int
- C. char
- D. long
|
10 |
A memory location with some data that cannot be changed is called: |
- A. Constant
- B. Variable
- C. Keyword
- D. Address
|