What is the result of dividing two integers in most programming languages, 5 divided by 2?
A) 2.5
B) 2
C) 3
D) 1
Answer: B
In floating-point arithmetic, what is the result of 5.0 divided by 2.0?
A) 2
B) 2.5
C) 3
D) 1
Answer: B
Which of the following is an issue with floating-point arithmetic?
A) Inaccuracy due to rounding
B) Overflow errors
C) Division by zero
D) All of the above
Answer: D
Which type of number has higher precision in most modern computing systems?
A) Integer
B) Floating-point
C) Decimal
D) Binary
Answer: B
How many bits does a standard IEEE 754 single-precision floating-point number use?
A) 16
B) 32
C) 64
D) 128
Answer: B
What is the result of adding 3.0 and 1.75 in floating-point arithmetic?
A) 4.75
B) 4
C) 5
D) 4.5
Answer: A
Which of the following can cause loss of precision in floating-point arithmetic?
A) Adding very large and very small numbers
B) Multiplying integers
C) Modulus operation
D) Bitwise shifts
Answer: A
Which of the following is true for integer division in most programming languages?
A) It produces a floating-point result
B) It produces a quotient without a remainder
C) It throws an error when a remainder exists
D) It always rounds up
Answer: B
What is the result of 7 % 3 in integer arithmetic?
A) 0
B) 1
C) 2
D) 3
Answer: B
In floating-point arithmetic, the result of subtracting 2.5 from 7.5 is:
A) 5.0
B) 4.0
C) 4.5
D) 5.5
Answer: A
Which of the following is the primary difference between integer and floating-point arithmetic?
A) Integers can represent larger numbers
B) Floating-point numbers can represent fractional values
C) Integers are stored using more bits
D) Floating-point numbers are faster to compute
Answer: B
What is the result of multiplying two integers, 3 and 4?
A) 7
B) 12
C) 11
D) 10
Answer: B
Which of the following is true for floating-point division?
A) It always returns an integer
B) It can produce an exact fractional result
C) It causes overflow errors in large numbers
D) It does not round
Answer: B
Which of the following is true about floating-point overflow?
A) It happens when the result is too large for the floating-point format
B) It occurs only in integer arithmetic
C) It causes division by zero
D) It leads to rounding errors
Answer: A
What is the result of dividing an integer by zero in most programming languages?
A) Zero
B) Undefined
C) Infinity
D) NaN
Answer: B
The result of 9.2 % 2.1 in floating-point arithmetic is approximately:
A) 1
B) 2
C) 0.7
D) 0
Answer: C
Which of the following is more likely to suffer from rounding errors?
A) Integer arithmetic
B) Floating-point arithmetic
C) Binary operations
D) Bitwise operations
Answer: B
How many bits are used to represent a double-precision floating-point number in the IEEE 754 standard?
A) 16
B) 32
C) 64
D) 128
Answer: C
What is the integer result of 10 divided by 3 in programming?
A) 3.33
B) 3
C) 4
D) 0
Answer: B
In floating-point arithmetic, the result of 10.0 / 4.0 is:
A) 2.5
B) 2
C) 3
D) 4
Answer: A
Which of the following results in an overflow in integer arithmetic?
A) Adding two large integers
B) Dividing two small integers
C) Multiplying a small integer and a large integer
D) Subtracting a smaller number from a larger number
Answer: A
What is the result of 2.1 + 2.9 in floating-point arithmetic?
A) 4.9
B) 5.0
C) 5.1
D) 5
Answer: B
Which arithmetic operation is more accurate in floating-point representation?
A) Addition
B) Multiplication
C) Division
D) Subtraction
Answer: A
What happens when an integer overflows in most programming languages?
A) It throws an error
B) It wraps around to the lowest value
C) It returns NaN
D) The program terminates
Answer: B
What is the result of multiplying two floating-point numbers, 1.5 and 2.5?
A) 3.25
B) 4.0
C) 3.75
D) 5.0
Answer: C
Which of the following is a challenge with floating-point multiplication?
A) Overflow
B) Underflow
C) Rounding errors
D) All of the above
Answer: D
Which of the following is true for integer modulus operation?
A) It always returns a floating-point result
B) It returns the remainder of the division
C) It returns the quotient of the division
D) It is undefined in most languages
Answer: B
In floating-point arithmetic, what is the result of 7.5 – 5.5?
A) 3.0
B) 2.0
C) 1.0
D) 1.5
Answer: B
What is the difference between integer and floating-point division?
A) Integer division always returns a whole number
B) Floating-point division returns the remainder
C) Integer division returns a floating-point number
D) Floating-point division causes an overflow
Answer: A
What is the result of 12 % 5 in integer arithmetic?
A) 0
B) 2
C) 3
D) 1
Answer: B
In floating-point arithmetic, what is the result of 12.0 % 5.0?
A) 0.5
B) 2.0
C) 3.0
D) 1.0
Answer: B
What is the result of adding two large floating-point numbers that exceed the format’s range?
A) Rounding error
B) Overflow
C) Underflow
D) Zero
Answer: B
What is the value of 5.0 raised to the power of 2.0 in floating-point arithmetic?
A) 10.0
B) 20.0
C) 25.0
D) 15.0
Answer: C
Which of the following is used to store fractional values?
A) Integer
B) Floating-point
C) Boolean
D) Character
Answer: B
What is the result of dividing 7 by 3 in floating-point arithmetic?
A) 2
B) 3
C) 2.3333
D) 2.5
Answer: C
What is the result of dividing 9.0 by 3.0 in floating-point arithmetic?
A) 2.0
B) 3.0
C) 4.0
D) 6.0
Answer: B
Which of the following operations can lead to underflow in floating-point arithmetic?
A) Adding two large numbers
B) Subtracting a small number from a large number
C) Multiplying two small numbers
D) Dividing two large numbers
Answer: C
In integer arithmetic, what is the result of 8 divided by 3?
A) 2
B) 3
C) 2.5
D) 1
Answer: A
Which of the following is an example of floating-point arithmetic overflow?
A) 1.0e+308 + 1.0e+308
B) 100 – 50
C) 3.0 / 2.0
D) 0.1 * 0.2
Answer: A
Which of the following is a correct representation of 10 in floating-point format?
A) 1.0 * 10^1
B) 10.0 * 10^0
C) 0.1 * 10^2
D) 0.1 * 10^1
Answer: A
In integer arithmetic, which of the following produces a result of zero?
A) 10 divided by 5
B) 5 % 5
C) 10 % 5
D) 5 % 10
Answer: B
What is the result of 10.5 * 3.2 in floating-point arithmetic?
A) 32.0
B) 33.6
C) 31.0
D) 30.5
Answer: B
Which of the following can occur in floating-point arithmetic when subtracting very close values?
A) Overflow
B) Underflow
C) Loss of precision
D) Division by zero
Answer: C
What is the result of subtracting 1.1 from 2.5 in floating-point arithmetic?
A) 1.3
B) 1.4
C) 1.2
D) 1.5
Answer: B
In floating-point arithmetic, multiplying 2.0 by 0.5 gives:
A) 0.5
B) 2.5
C) 1.0
D) 1.5
Answer: C
What is the main cause of rounding errors in floating-point arithmetic?
A) Limited precision of floating-point numbers
B) Incorrect use of modulus operator
C) Inaccurate integer calculations
D) Overflow in integer division
Answer: A
Which of the following is the correct result of 6.2 + 4.3 in floating-point arithmetic?
A) 10.5
B) 10.2
C) 10.1
D) 10.0
Answer: C
Read More Computer Architecture MCQs
- SET 1: Computer Architecture MCQs
- SET 2: Computer Architecture MCQs
- SET 3: Computer Architecture MCQs
- SET 4: Computer Architecture MCQs
- SET 5: Computer Architecture MCQs
- SET 6: Computer Architecture MCQs
- SET 7: Computer Architecture MCQs
- SET 8: Computer Architecture MCQs
- SET 9: Computer Architecture MCQs
- Introduction to Computer Architecture MCQs
- Basic Components of a Computer System MCQs
- CPU Organization MCQs
- Instruction Set Architecture (ISA) MCQs
- Microarchitecture MCQs
- Memory Hierarchy MCQs
- Cache Memory MCQs
- Input/Output Organization MCQs
- Bus Architecture MCQs
- Performance Metrics MCQs
- Parallelism in Computer Architecture MCQs
- Multicore and Multiprocessor Systems MCQs
- Control Unit Design MCQs
- Pipeline Hazards MCQs
- Branch Prediction and Speculation MCQs
- Arithmetic and Logic Operations MCQs
- Memory Management MCQs
- Power and Energy Efficiency MCQs
- Advanced Topics MCQs
- Emerging Trends