Quiz Space

Operating Systems End Term: 28 April 2024 (January 2024 term)

Question 1

+2 marksOne correct option

Consider the code segment (for xv6) given below.

c
1 #define UART_BASE 0xA0004000
2 void init_uart(){
3 u16 *baud_reg = (u16*)UART_BASE;
4 *baud_reg = 0x7D;
5 }
6 u32 read_uart(){
7 u32 *rx_reg = (u32*)(UART_BASE + 8);
8 u8 *status_reg = (u8*)(UART_BASE + 12);
9 while((*status_reg & 0x4) == 0);
10 return *rx_reg;
11 }

What is the base address and the end address of the RX register?

  1. A

    The base address is 0xA0004008, and end address is 0xA000400B.

  2. B

    The base address is 0xA0004008, and end address is 0xA000400C.

  3. C

    The base address is 0xA0004008, and end address is 0xA0004012.

  4. D

    The base address is 0xA0004000, and end address is 0xA0004004.

Question 2

+2 marksOne correct option

If the memory map of the interrupt controller starts from the offset 0x20000000 and has an address range 128 bytes in a 32-bit addressing scheme then what will be the final address in the memory map?

  1. A

    0x2000007F

  2. B

    0x20000080

  3. C

    0x200001FF

  4. D

    0x20000200

Question 3

+2 marksOne correct option

Assume that process A (parent) is (voluntarily) trying to create a daemon process B (child). Statement 1: exit system call must be called by process A.
Statement 2: wait system call must be called by process B. Choose the correct answer from below.

  1. A

    Statement 1 is correct but Statement 2 is incorrect

  2. B

    Statement 2 is correct but Statement 1 is incorrect

  3. C

    Both statements are correct

  4. D

    Both statements are incorrect

22 more questions in this paper

Sign in with Google — it is free — to see every question with its answer and explanation, practise it in learning mode, or take it as a timed mock test.

More on the Operating Systems End Term 28 Apr 2024 paper

The IIT Madras BS Operating Systems (Operating Systems) End Term paper sat on 28 Apr 2024, in the January 2024 term: 25 questions for 60 marks in 180 minutes. The first 3 questions are below. Sign in with Google — it is free — to see the whole paper with its answers and explanations, in learning mode or as a timed mock test.

FeatureOperating Systems End Term 28 Apr 2024 at a glance
TermJanuary 2024 term
SubjectOperating Systems
Course codeBSCS4022
Questions25
Marks60
Duration180 min
MCQ14
MSQ6
Numerical5
Official paperIIT M DEGREE AN EXAM QDB3 28 Apr 2024
Negative markingNo negative marking.
Updated

Same End Term, other subjects

More Operating Systems