Direct Execution

Direct Execution

University

9 Qs

quiz-placeholder

Similar activities

Understanding Operating Systems

Understanding Operating Systems

University

10 Qs

Platform Technologies_Topic1_Quiz1

Platform Technologies_Topic1_Quiz1

University

13 Qs

Operating Systems Quick Quiz Module 1

Operating Systems Quick Quiz Module 1

11th Grade - University

10 Qs

Basic Linux Commands

Basic Linux Commands

University

10 Qs

ITBP301_Chapter 05

ITBP301_Chapter 05

University

10 Qs

OS Introduction

OS Introduction

University

12 Qs

OS structure & architecture

OS structure & architecture

University

10 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 allocates memory for a program

The OS creates an entry for a process list

The OS clears registers

The OS sets up the stack with argc/argv

The OS loads a program into memory

2.

REORDER QUESTION

1 min • 3 pts

Reorder the next five steps of a basic direct execution.

The program runs main()

The OS calls main()

The OS removes the entry from the process list

The OS frees the memory of a process

The program returns from main()

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.