1 |
Which is a valid statement for declaring a variable? |
- A. int marks;
- B. int a,b,c;
- C. Double salary;
- D. All
|
2 |
Which of the following are valid variable names? |
- A. Long
- B. Integer
- C. Notlongenough
- D. Both B and C
|
3 |
The number of bytes used by double data type in C is: |
|
4 |
Which of the following are required to declare a variable? |
- A. keyword
- B. Variable name
- C. Data type
- D. Both b and c
|
5 |
Which of the following is NOT a valid identifier? |
- A. return
- B. myInt
- C. myInteger
- D. total3
|
6 |
A primary key that consists of more than one attribute is called a |
- A. Foreign key
- B. Composite key
- C. Multi-valued key
- D. Global key
|
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 |
An attribute that uniquely identify each row in a relation is called |
- A. Column
- B. Foreign
- C. Primary key
- D. Duplicate key
|
9 |
Which is a numeric data type ? |
- A. float
- B. int
- C. Both a and b
- D. char
|
10 |
Variables are created in |
- A. Ram
- B. Rom
- C. Hard disk
- D. Cache
|