Quiz Space

Programming in C · Quiz 1 · 23 Feb 2025 · January 2025 term

Programming in C Quiz 1 23 Feb 2025 — Question 5

Question 5

+4 marksOne correct option
  1. A

    Subtract values from R1 until R2 is zero

  2. B

    Increment R1 by the sum of values from R2 to 1

  3. C

    Multiply R1 by R2

  4. D

    Divide R1 by R2

Show answer

Correct answer

  • B

    Increment R1 by the sum of values from R2 to 1

Question 5 of 16 in the IIT Madras BS Programming in C (Programming in C) Quiz 1 paper sat on 23 Feb 2025, in the January 2025 term (IIT M DEGREE AN EXAM QDB2 23 Feb 2025). It carries 4 marks.

More questions from this paper

  1. Q1What is the role of the Program Counter (PC) in the CPU?
  2. Q2What is the correct order of memory levels based on size (smallest to largest)?
  3. Q3Which of the following operators in C have right-to-left associativity?
  4. Q4Consider the generalized computation given below:\ R[0] ← M[0]\ R[1] ← M[1]\ R[2] = R[1] - R[0]\ If R[2] != 0, set R[1]…
  5. Q6Figure question
  6. Q7Figure question
  7. Q8Figure question
  8. Q9Convert the binary number 10101010 to its decimal equivalent.
  9. Q10Convert the hexadecimal number 0x7C5D to its equivalent decimal representation:
  10. Q11Figure question
  11. Q12Which of the following is true for an 8-bit 2's complement representation?
  12. Q13Select all the valid variable names in C:
  13. Q14Consider the generalized computation given below:\ R[0] ← M[0]\ R[1] ← M[1]\ R[1] = R[1] - R[0]\ R[0] = R[0] + R[1]\ R[…
  14. Q15Find the minimum number of bits required to represent an instruction set where there are 16 unique instructions, and ea…
  15. Q16Figure question