Quiz Space

Programming in C · Quiz 1 · 29 Oct 2023 · September 2023 term

Question 5: What is the primary function of the Program Counter in a …

Question 5

+2 marksOne correct option

What is the primary function of the Program Counter in a CPU?

  1. A

    Execute arithmetic operations

  2. B

    Keep track of the currently executing instruction

  3. C

    To control the input/output devices

  4. D

    Manage memory access

Show answer

Correct answer

  • B

    Keep track of the currently executing instruction

Question 5 of 18 in the IIT Madras BS Programming in C (Programming in C) Quiz 1 paper sat on 29 Oct 2023, in the September 2023 term (IIT M DEGREE AN2 EXAM QPE2 29 Oct 2023). It carries 2 marks.

More questions from this paper

  1. Q1Which of the following is/are false statement(s) regarding C programming language?
  2. Q2Which of the following statement(s) is/are true regarding ASCII and Unicode?
  3. Q3Which of the following is/are valid identifiers in C language?
  4. Q4In split memory architecture, what is the purpose of cache memory?
  5. Q6Suppose you have a document which contains 58 unique characters. What is the minimum number of bits required to encode …
  6. Q7Consider the following equation: If all the variables are float, which of the following is a correct way to write the g…
  7. Q8Consider the following steps to compute the minimum among three numbers. Load the three numbers from memory locations M…
  8. Q9Consider the below C program. The above C program is used to calculate the sum of individual digits of a number. For ex…
  9. Q10Compute the 9-bit binary representation of the decimal number 468.
  10. Q11Find the 8-bit binary representation of (− 50)10 using 2’s complement notation.
  11. Q12(764)10 = ()8\ Identify the appropriate option to fill in the above blank.
  12. Q13Given two integer variables, x and y, which of the following expressions ensures that both x and y are distinct positiv…
  13. Q14Consider the following code snippet. What will be the value of x, y and z after executing the given code snippet?
  14. Q15Consider the below C program. What will be the output of above given code?
  15. Q16Consider the below C program. What would be the output of the given code?
  16. Q17Consider the following assembly program (assume anything after “;” is a comment). What will be the final value stored i…
  17. Q18Consider the below C program. What would be the output of the given code?\ Note: The answer input must be an integer. F…