Direct Execution

Direct Execution

University

9 Qs

quiz-placeholder

Similar activities

CEA201 - Quiz 3

CEA201 - Quiz 3

University

10 Qs

Uni 1

Uni 1

University

13 Qs

C-21 IV Sem OS Quiz-1 Jan2024

C-21 IV Sem OS Quiz-1 Jan2024

University

10 Qs

Operating-System Operations

Operating-System Operations

University

10 Qs

OS structure & architecture

OS structure & architecture

University

10 Qs

Sistem Operasi

Sistem Operasi

6th Grade - University

10 Qs

FE-Practice Unit 21, 22, 34

FE-Practice Unit 21, 22, 34

12th Grade - University

13 Qs

Operating Systems - Processes

Operating Systems - Processes

University

8 Qs

Direct Execution

Direct Execution

Assessment

Quiz

Computers

University

Easy

Created by

Anfernee NG

Used 17+ times

FREE Resource

9 questions

Show all answers

1.

REORDER QUESTION

1 min • 3 pts

Reorder the first five steps of a basic direct execution.

The OS creates an entry for a process list

The OS allocates memory for a program

The OS loads a program into memory

The OS sets up the stack with argc/argv

The OS clears registers

2.

REORDER QUESTION

1 min • 3 pts

Reorder the next five steps of a basic direct execution.

The OS calls main()

The program runs main()

The program returns from main()

The OS frees the memory of a process

The OS removes the entry from the process list

3.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

___________ mode allows code to perform privileged operations. This is where the OS runs.

4.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

_________ mode limits the capabilities of the programs that run in this mode.

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is a way for a user program to request privileged services from the kernel?

System Calls

Trap Tables

Trap Instructions

LDE Protocols

6.

DROPDOWN QUESTION

1 min • 3 pts

​ A​ (a)   tells the hardware what code to run when specific events occur. A​ (b)   jumps into the kernel and raises the privilege level to​ (c)   , and calls​ (d)   to go back into​ (e)   .

trap table
trap instruction
kernel-mode
return-from-trap
user-mode

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

In a cooperative system, how does the OS regain control of the CPU?

The OS regains control of the CPU every five seconds.

The OS does not need control of the CPU; it can perform any task while other processes are running.

The OS regains control of the CPU when the user program attempts unauthorized activity.

The OS regains control of the CPU when the user program makes a system call.

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following describes a timer interrupt?

It jumps into the kernel to raise privilege level.

It requires a system reboot to regain control.

It assumes that processes will behave reasonably

It is programmed to raise an interrupt every period of milliseconds.

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does the OS retain state as it switches processes?

The OS saves the information on the hard disk.

The OS cannot save state when switching processes.

The OS saves the information to RAM.

The OS saves the information to the kernel stack.