Ninth Chapter Solved Exercise MCQs Of ICS Second Year Computer Science
Ninth Chapter Solved Exercise MCQs Of ICS Second Year Computer Science. Each question includes the correct answer and a brief explanation. It’s designed to help you study, prepare for exams, and understand key concepts better. Boost your Computer Science knowledge with these practice exercises.
Ninth chapter solved MCQs with explanation
1. Variables are created in:
a) RAM
b) ROM
c) Hard Disk
d) Cache
Explanation: Variables are stored in RAM because it provides the temporary storage needed for program execution.
2. Which of the following is a valid character constant?
a) ‘6’
b) “b”
c) 6
d) None of these
Explanation: ‘6’ is a valid character constant because it is enclosed in single quotes.
3. Which of the following data types offers the highest precision?
a) float
b) long int
c) long double
d) unsigned long int
Explanation: Long double offers the highest precision among the listed data types.
4. When the result of the computation of two very small numbers is too small to be represented, this phenomenon is called.
a) Arithmetic overflows
b) Arithmetic underflow
c) Truncation
d) Round off
Explanation: Arithmetic underflow occurs when a result is too small to be represented in the available number of digits.
5. The symbol “=” represents.
a) Comparison operator
b) Assignment operator
c) Equal-to operator
d) None of these
Explanation: = is used as an assignment operator to set a variable’s value.
6. Which of the following operators has the lowest precedence?
a) !
b) +
c) =
d) *
Explanation: The assignment operator = has the lowest precedence compared to other operators.
7. Relational operators are used to.
a) Establish a relationship among variables
b) Compare two values
c) Construct compound conditions
d) Perform arithmetic operations
Explanation: Relational operators compare two values to determine their relationship.
8. C is a 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) Sufficient data types are available to manipulate each type of data
d) The variable declaration also defines the variable type
Explanation: In a strongly typed language like C, every variable must be declared with its type before it can be used.
9. The logical not operator, denoted by !, is a.
a) Ternary operator
b) Unary operator
c) Binary operator
d) Bitwise operator
Explanation: The logical not operator! is a unary operator because it operates on a single operand.
10. a + b is equivalent to.
a) b += a
b) a =+ b
c) a = a + b
d) b = b + a
Explanation: a + b is equivalent to a = a + b, which adds b to a and assigns the result back to a.
Leave a Reply