1 |
The float, long float and double data types are known as: |
- A. Integer data
- B. character data
- C. Integral data
- D. Real data
|
2 |
Variable are created in: |
- A. RAM
- B. ROM
- C. Hard Disk
- D. USB
|
3 |
The logical not operator denoted by is |
- A. Ternary operator
- B. Unary operator
- C. a=a+b
- D. b=b+a
|
4 |
Which of the following statement is correct? |
- A. float num1;num2;
- B. int day,night;
- C. int continue=5.0;
- D. string black='white';
|
5 |
Which is a valid statement for declaring a variable? |
- A. int marks;
- B. int a,b,c;
- C. Double salary;
- D. All
|
6 |
Which of the following data type is used to store string value: |
- A. char
- B. float
- C. string
- D. long
|
7 |
The number of bytes used by double data type in C is: |
|
8 |
Which statement is true about data types? |
- A. Data type has no memory requirements
- B. Each data type has different memory requirements
- C. Each data type has same memory requirements
- D. None of the above
|
9 |
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
|
10 |
An integer variable can store the value: |
- A. -1.1
- B. "123"
- C. 32898
- D. 5.5
|