Introduction to Computing MCQs with Answers
Practice important Introduction to Computing MCQs with answers and explanations.
Multiple Choice Questions
Q1791: Which operator is used to find the remainder after division in C?
- A: +
- B: -
- C: *
- D: %
View Answer
D
Q1792: Fill in the blank: The modulus operator (%) in C gives the _______ after division.
- A: Quotient
- B: Remainder
- C: Product
- D: Difference
View Answer
B
Q1793: What is the result of 5 % 2 in C?
- A: 2
- B: 1
- C: 0
- D: 5
View Answer
B
Q1794: If x and y are both integers in C, what is the result of x / y if x = 7 and y = 3?
- A: 2
- B: 2.33
- C: 3
- D: 1
View Answer
A
Q1795: Fill in the blank: If one operand of / in C is a decimal and the other is an integer, the result is ________.
- A: Always an integer
- B: Always a decimal
- C: The integer part of the result
- D: The decimal part of the result
View Answer
B
Q1796: Which arithmetic operator in C would give you a result that includes only the whole number part of a division?
- A: +
- B: *
- C: /
- D: %
View Answer
C
Q1797: What is the difference between 5 / 2 and 5.0 / 2.0 in C?
- A: 5 / 2 returns a decimal
- B: 5.0 / 2.0 returns an integer
- C: 5 / 2 returns an integer
- D: 5.0 / 2.0 returns a decimal
View Answer
C
Q1798: Fill in the blank: To obtain the integer part of the division of two integers in C, use the ________ operator.
- A: +
- B: *
- C: /
- D: %
View Answer
C
Q1799: In C, what operator would you use to obtain the remainder of 17 / 4?
- A: +
- B: *
- C: /
- D: %
View Answer
D
Q1800: What is the result of 17 % 4 in C?
- A: 1
- B: 4
- C: 3
- D: 2
View Answer
C