Direct Execution

Direct Execution

University

9 Qs

quiz-placeholder

Similar activities

OS(UNIT-I) QUIZ

OS(UNIT-I) QUIZ

University

10 Qs

OS S9 18-1-23

OS S9 18-1-23

University

10 Qs

Understanding Operating Systems

Understanding Operating Systems

University

10 Qs

OS Introduction

OS Introduction

University

12 Qs

[Quiz] Chapter 1 - Intro to OS

[Quiz] Chapter 1 - Intro to OS

University

10 Qs

Reflection Quiz

Reflection Quiz

University

10 Qs

Keywords Quiz

Keywords Quiz

University

11 Qs

A level Computer Science Fetch Decode Execute

A level Computer Science Fetch Decode Execute

10th Grade - University

11 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.