Chapter No.2 Elements of C
Question No.2 Choose the correct Option
1. Variable are created in:
a. RAM
b. ROM
c. Hard Disk
d. Cache
2. Which of the following is a valid character constant:
a. a
b. "b"
c. '6'
d. =
3. Which of the following data types offers the highest precision
a. Float
b. Long Int
c. Long Double
d. Unsigned Long Int
4. When the result of the computation of two very small numbers is too small to be represented . this phenomenon is called :
a. Arithmetic Overflow
b. Arithmetic Underflow
c. Truncation
d. Round Off
5. The symbol "=" represents :
a. Comparison Operator
b. Assignment Operator
c. Equal-to Operator
d. Non of these
6. Which of the following operators has lowest precedence:?
a. !
b. +
c. =
d. ==
7. Relational operators are used to:
a. Establish a relationship among variables
b. Compare two values
c. construct compound condition
d. perform arithmetic operations
8. C is strongly typed language, This means that:
a. Every program must be compiled before execution
b. Every variable must be declared before it is being used
c. The variable declaration also defines the variable
d. Data types are available to manipulate each data type
9. The logical not operator , denoted by ! is a :
a. Ternary Operator
b. Unary Operator
c. Binary Operator
d. Bitwise Operator
10. a+=b is equivalent to:
a. b+=a
b. a=+b
c. a=a+b
d. b=a+b
Solution
1. a
2. c
3. c
4. b
5. b
6. c
7. b
8. b
9. b
10. c
Question No.2 Choose the correct Option
1. Variable are created in:
a. RAM
b. ROM
c. Hard Disk
d. Cache
2. Which of the following is a valid character constant:
a. a
b. "b"
c. '6'
d. =
3. Which of the following data types offers the highest precision
a. Float
b. Long Int
c. Long Double
d. Unsigned Long Int
4. When the result of the computation of two very small numbers is too small to be represented . this phenomenon is called :
a. Arithmetic Overflow
b. Arithmetic Underflow
c. Truncation
d. Round Off
5. The symbol "=" represents :
a. Comparison Operator
b. Assignment Operator
c. Equal-to Operator
d. Non of these
6. Which of the following operators has lowest precedence:?
a. !
b. +
c. =
d. ==
7. Relational operators are used to:
a. Establish a relationship among variables
b. Compare two values
c. construct compound condition
d. perform arithmetic operations
8. C is strongly typed language, This means that:
a. Every program must be compiled before execution
b. Every variable must be declared before it is being used
c. The variable declaration also defines the variable
d. Data types are available to manipulate each data type
9. The logical not operator , denoted by ! is a :
a. Ternary Operator
b. Unary Operator
c. Binary Operator
d. Bitwise Operator
10. a+=b is equivalent to:
a. b+=a
b. a=+b
c. a=a+b
d. b=a+b
Solution
1. a
2. c
3. c
4. b
5. b
6. c
7. b
8. b
9. b
10. c
No comments:
Post a Comment