Quiz Space

Operating Systems End Term: 1 September 2024 (May 2024 term)

Question 1

+2 marksOne correct option

Consider the code segment (for xv6) given below.

c
1 #define UART_BASE 0xB0005000
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 are the base address and the end address of the RX register?

  1. A

    The base address is 0xB0005008, and end address is 0xB000500C.

  2. B

    The base address is 0xB0005008, and end address is 0xB000500B.

  3. C

    The base address is 0xB0005008, and end address is 0xB0005012.

  4. D

    The base address is 0xB0005000, and end address is 0xB0005004.

Question 2

+2 marksOne correct option

If the memory map of the DMA controller starts from the offset 0x30001000 and has an address range of 256 bytes in a 32-bit addressing scheme, what will be the final address in the memory map?

  1. A

    0x30001100

  2. B

    0x300012FF

  3. C

    0x300010FF

  4. D

    0x30001300

Question 3

+2 marksOne correct option

Consider the following program snippet:

c
1 void exampleFunction(int x, int y)
2 {
3 char smallBuffer[4];
4 char largeBuffer[8];
5 }
6 void main
7 {
8 exampleFunction(1, 2);
9 }

When largeBuffer[8] = smallBuffer[0] occurs, the situation is known as ___.

  1. A

    Heap overflow

  2. B

    Buffer overflow

  3. C

    Frame overflow

  4. D

    Stack overflow

17 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 1 Sept 2024 paper

The IIT Madras BS Operating Systems (Operating Systems) End Term paper sat on 1 Sept 2024, in the May 2024 term: 20 questions for 50 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 1 Sept 2024 at a glance
TermMay 2024 term
SubjectOperating Systems
Course codeBSCS4022
Questions20
Marks50
Duration180 min
MCQ13
MSQ2
Numerical5
Official paperIIT M DEGREE FN EXAM QDB1 01 Sep 2024
Negative markingNo negative marking.
Updated

Same End Term, other subjects

More Operating Systems