12th class (Fsc) computer unit 9 MCQs
101. The statement I+=3 has the same effect as:
a. I -3=I
b. I = I+3
c. I3
d. I =3
102. To add a value 1 to variable y, you write:
a. Y=1+y;
b. Y+=1;
c. Y=y+1;
d. All
103. To add number to sum, you write:
a. Sum+number;
b. Sum=sum+number;
c. Sum=number+sum
d. Both A & B
104. Which of the following operator is used to increase the value of a variable?
a. >>
b. ++
c. +-
d. None
105. Which of the following operator is used to decrease the value of a variable?
a. <<
b. ==
c. -+-
d. None
106. Which choice has the highest order of precedence when computing an expression?
a. /
b. ()
c. +
d. *
107. Which of the following relation operator represents Greater then- or-Equal-to?
a. >==
b. >=
c. <==
d. >=
108. Which of the following relation operator represents Not equal to?
a. #==
b. !=
c. <=
d. !
109. The number of relational operator in C language is:
a. 3
b. 4
c. 1
d. 6
110. Which of the following is a relational operator?
a. &&
b. !=
c. +
d. ||
111. All of the following are relational operators except:
a. =
b. !=
c. <=
d. ||
112. Which of the following returns True if A =25 and B=35:
a. A!=B
b. A+B
c. A=B
d. ^>B
113. What operator is used in a compound condition to join two conditions?
a. Relational results
b. Relational operator
c. Logical results
d. Logical operator
114. Operators that perform operations on Boolean data are:
a. Relational operators
b. Arithmetic operators
c. Logical operators
d. All
115. Which of the following symbol is used for OR operator?
a. !
b. ||
c. &&
d. None
116. Which of the following symbol is used for AND operator?
a. !
b. ||
c. &&
d. None
117. Which of the following symbol is used for NOT operator?
a. !
b. ||
c. &&
d. None
118. For A =3 and B =7 which evaluates to true?
a. (A=3)&&(B=5)
b. !(A<B)
c. (A=B)||(A>B)
d. !(B<6)
119. In C language, two conditions can be joined by using:
a. Logical operators
b. Arithmetic operators
c. Bitwise operators
d. Relational operators
120. These are operators that add and subtract one from their operands.
a. Binary and unary
b. ++ and —
c. Plus and minus
d. None
121. Which of the following is called the modulus operator?
a. +
b. *
c. &
d. %
122. Which operator is used to represent equality in C language?
a. ><
b. =
c. ==
d. None
123. The characters or symbols that perform operations on operands are called:
a. Operation code
b. Operators
c. Syntax
d. None
124. The = operator in C language indicates:
a. Equality
b. Assignment
c. Negation
d. Subtraction
125. Which of the following operator has the highest priority?
a. &&
b. !=
c. ||
d. !