12th class (Fsc) computer unit 9 MCQs
126. Which of the following has the highest precedence?
a. ||
b. ++
c. –
d. &&
127. Which of the following is not logical operator?
a. !
b. &&
c. >=
d. ||
128. Which of the following operators works only with integer value?
a. –
b. %
c. /
d. +
129. Which of the following operators is used to assign a value to a variable?
a. =
b. >
c. *
d. +
130. Which of the following is correct syntax for writing an assignment statement?
a. Constant =variable
b. Variable =right _side
c. Constant =right_side
d. None
131. An assignment statement will:
a. Perform a calculation
b. Store the results of a calculation
c. Display the results of a calculation
d. Both A & B
132. Which of the following is not arithmetic operator?
a. %
b. +
c. >
d. –
133. The expression 0%4 has a value equal to:
a. 2
b. 4
c. 0
d. 1
134. The expression 0%4 has a value equal to:
a. 2
b. 4
c. 0
d. 1
135. The expression 0%4 has a value equal to:
a. 2
b. 4
c. 0
d. 1
136. The expression 0%4 has a value equal to:
a. 2
b. 4
c. 0
d. 1
137. The expression 0%4 has a value equal to:
a. 2
b. 4
c. 0
d. 1
138. An expression that uses a relational operator is known as:
a. Serial
b. Operational
c. Relational
d. Sequential
139. An expression constant of:
a. Operators
b. Operand
c. Both A & B
d. None
140. An expression consists of:
a. Arithmetic operators
b. Constant
c. Variable
d. All
141. All of the following are valid expression EXCEPT:
a. Pi * Radius
b. Sales- profit
c. M/N
d. Mile, Gallons
142. The expression 10%3 has a value equal to:
a. 8
b. 1
c. 3
d. one
143. The expression 3%5 has a value equal to:
a. 0
b. 3
c. None
d. 5
144. The expression 0%4 has a value equal to:
a. 0
b. 4
c. Both A & B
d. None
145. The value of the C expression 9/5*2 is:
a. 0
b. 3.6
c. 2
d. 0.9
146. The value of the C expression 13+21%4-2 is:
a. 16
b. 0
c. 14
d. 12
147. What is the value of the following expression? 20.0*(9/5)+32.0
a. 51.0
b. 52.0
c. 50
d. 54.0
148. Which is a correct translation of the following algebraic expression into a C? 1/c + 1-a/1+1
a. (1/c)+(1- a/1+b)
b. 1/c+1-a/1+b
c. 1/c+(1- a)/(1+b)
d. 1/c+(1-a/1+b)
149. If x int and y is float what promotion will occur in the expression’s=5.0+x;
a. Float to double
b. Float to int
c. No promotion
d. Int to float
150. A relation expression produces results as:
a. Either A or B
b. True
c. Any value
d. False
151. The expression may by:
a. String
b. Constant
c. Arithmetic expression
d. All
Click here to go directly on chapter no.10