Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Midterm Examination in Operating Systems and PL

Total questions: 67

Worksheet time: 33mins

Name
Class
Date
1.

Is a program in execution.

(a)  

2.

A stack of these activation records at run is called (a)   .

3.

What scheduling algorithm assigns the CPU

to the process with the highest priority?

a)

FIFO

b)

SJF non preemptive

c)

SJF preemptive

d)

priority

4.

Which Scheduling algorithm allocates the

CPU first to the process that requests CPU first?

a)

First Come First serve scheduling

b)

shortest job scheduling

c)

priority scheduling

d)

none of the mentioned

5.

The interval from the line of submission of a process to the time of completion is termed as ____

a)

waiting time

b)

throughput

c)

turnaround time

d)

response time

6.

The processes that are residing in main memory and are ready and waiting to execute are kept on a list called:

a)

job queue

b)

ready queue

c)

execution queue

d)

process queue

7.

In priority scheduling algorithm:

a)

CPU is allocated to the process with highest priority

b)

CPU is allocated to the process with lowest priority

c)

equal priority processes can not be scheduled

d)

none of the mentioned

8.

CPU scheduling is the basis of ___________

a)

multiprocessor systems

b)

multiprogramming operating systems

c)

larger memory sized systems

d)

none of the mentioned

9.

Scheduling is done so as to ____________

a)

increase CPU utilization

b)

decrease CPU utilization

c)

keep the CPU more idle

d)

none of the mentioned

10.

What is Turnaround time?

a)

the total waiting time for a process to finish execution

b)

the total time spent in the ready queue

c)

the total time spent in the running queue

d)

the total time from the completion till the submission of a process

11.

What is Waiting time?

a)

the total time in the blocked and waiting queues

b)

the total time spent in the ready queue

c)

the total time spent in the running queue

d)

the total time from the completion till the submission of a process

12.

What is Scheduling?

a)

allowing a job to use the processor

b)

making proper use of processor

c)

all of the mentioned

d)

none of the mentioned

13.

In multilevel feedback scheduling algorithm ____________

a)

a process can move to a different classified ready queue

b)

classification of ready queue is permanent

c)

processes are not classified into groups

d)

none of the mentioned

14.

Which one of the following can not be scheduled by the kernel?

a)

kernel level thread

b)

user level thread

c)

process

d)

none of the mentioned

15.

Process are classified into different groups in ____________

a)

shortest job scheduling algorithm

b)

shortest job scheduling algorithm

c)

priority scheduling algorithm

d)

multilevel queue scheduling algorithm

16.

In priority scheduling algorithm, when a process arrives at the ready queue, its priority is compared with the priority of ____________

a)

all process

b)

currently running process

c)

parent process

d)

init process

17.

Provide an environment for execution of programs and services to programs and users

a)

Operating Systems

b)

User Interface

c)

Program Execution

d)

I/O Operations

18.

Almost all operating systems have a user interface (UI).

a)

True

b)

False

19.

3 Types of User Interface

a)

Command-Line (CLI)

b)

Graphics User Interface (GUI)

c)

Batch

d)

Automation

20.

The system must be able to load a program into memory and to run that program, end execution, either normally or abnormally (indicating error).

a)

User Interface

b)

Program Execution

c)

I/O Operations

21.

A running program may require I/O, which may involve a file or an I/O device.

a)

User Interface

b)

Program Execution

c)

I/O Operations

22.

The file system is of particular interest.

Programs need to read and write files and directories, create and delete them, search them, list file Information, permission management.

a)

File-system manipulation

b)

Communications

c)

Error detection

23.

Processes may exchange information, on the same computer or between computers over a network.

a)

File-system manipulation

b)

Communications

c)

Error detection

24.

Communications may be via _____________ or through message passing (packets moved by the OS)

a)

Shared memory

b)

Virtual memory

c)

Communications memory

25.

OS needs to be constantly aware of possible errors.

For each type of error, OS should take the appropriate action to ensure correct and consistent computing.

a)

File-system manipulation

b)

Communications

c)

Error detection

26.

When multiple users or multiple jobs running concurrently, resources must be allocated to each of them.

a)

Resource allocation

b)

Accounting

c)

Protection & Security

27.

To keep track of which users use how much and what kinds of computer resources.

a)

Resource allocation

b)

Accounting

c)

Protection & Security

28.

The owners of information stored in a multiuser or networked computer system may want to control use of that information, concurrent processes should not interfere with each other.

a)

Protection & Security

b)

Protection

c)

Security

29.

Involves ensuring that all access to system resources is controlled.

a)

Protection & Security

b)

Protection

c)

Security

30.

Requires user authentication, extends to defending external I/O devices from invalid access attempts.

a)

Protection & Security

b)

Protection

c)

Security

31.

Allows direct command entry.

Sometimes multiple flavors implemented (called shells).

a)

CLI or command interpreter

b)

GUI or graphical user interface

c)

Batch

32.

User-friendly desktop metaphor interface..

a)

CLI or command interpreter

b)

GUI or graphical user interface

c)

Batch

33.

Represent files, programs, actions, etc.

a)

Icons

b)

Folder

c)

Shells

34.

Touchscreen devices does not require new interfaces.

a)

True

b)

False

35.

Choose which of these are touchscreen devices new interfaces:

a)

Mouse not possible or not desired

b)

Actions and selection based on gestures

c)

Virtual keyboard for text entry

d)

Voice commands

e)

Physical keyboard

36.

Programming interface to the services provided by the OS.

Typically written in a high-level language (C or C++).

a)

System call

b)

GUI

c)

CLI

37.

System calls are mostly accessed by programs via a high-level _____________________ rather than direct system call use.

a)

API (Application Programming Interface)

b)

Programming Language

c)

IDE

38.

System call implementation has a number associated with each call.

This maintains a table indexed according to these numbers.

a)

System-call interface

b)

System-call program

c)

System-call table

39.

For determining bugs, single step execution.

a)

Debugger

b)

Locks

c)

System Call

40.

For managing access to shared data between processes.

a)

Debugger

b)

Locks

c)

System Call

41.

Some ask the system for info - date, time, amount of available memory, disk space, number of users

Typically, these programs format and print the output to the terminal or other output devices.

a)

Status Information

b)

File Management

c)

System Program

42.

Used to store and retrieve configuration information.

a)

Registry

b)

Command Line Interface

c)

System Program

43.

Provide the mechanism for creating virtual connections among processes, users, and computer systems.

a)

File modification

b)

Programming-language support

c)

Program loading and execution

d)

Communications

44.

Launch at boot time.

Known as services, subsystems, daemons.

a)

Background services

b)

Bootloader

c)

System Programs

45.

Operating system should be convenient to use, easy to learn, reliable, safe, and fast.

a)

User goals

b)

System goals

46.

Operating system should be easy to design, implement, and maintain, as well as flexible, reliable, error-free, and efficient.

a)

User goals

b)

System goals

47.

"What will be done?"

a)

Policy

b)

Mechanism

48.

"How to do it?"

a)

Policy

b)

Mechanism

49.

Objective-C API for developing apps.

a)

Cocoa Touch

b)

Media Services

c)

Core Services

50.

iOS Layer for graphics, audio, video.

a)

Cocoa Touch

b)

Media Services

c)

Core Services

51.

Provides cloud computing, databases.

a)

Cocoa Touch

b)

Media Services

c)

Core Services

52.

Structured on Mac OS X, added functionality.

 Does not run OS X applications natively.

a)

iOS

b)

Android

53.

Developed by Open Handset Alliance (mostly Google).

Based on Linux kernel but modified.

Runtime environment includes core set of libraries and Dalvik virtual machine.

a)

iOS

b)

Android

54.

Debugging is finding and fixing errors, or ______.

a)

Bugs

b)

Red flags

c)

Faults

55.

OS generate log files containing error information.

a)

True

b)

False

56.

Failure of an application can generate ___________ file capturing memory of the process

a)

Core dump

b)

Crash dump

57.

Operating system failure can generate _________ file containing kernel memory.

a)

Core dump

b)

Crash dump

58.

Is a performance analysis tool in Solaris, FreeBSD, Mac OS X allows live instrumentation on production systems.

a)

DTrace

b)

PTrace

c)

BTrace

59.

Program obtains information concerning the specific configuration of the hardware system.

a)

SYSGEN

b)

SYSCON

c)

SYSTEM

60.

Small piece of code, stored in ROM or EFROM, that locates the kernel, loads it into memory, and starts it.

a)

Bootstrap loader

b)

ROM loader

c)

Kernel loader

61.

Allows selection of kernel from multiple disks, versions, kernel options.

a)

GRUB

b)

HUB

c)

GLUB

62.

Multiple flavors implemented in CLI are called:

a)

shells

b)

clams

c)

CLI flavors

d)

command interpreter

63.

6 Types of System Calls:

1. Process Control

2 - 6. ???????????????????????

a)

File Management

b)

Device Management

c)

Information Maintenance

d)

Communications

e)

Protection

64.

Absolute loaders, relocatable loaders, linkage editors, and overlay-loaders, debugging systems for higher-level and machine language.

a)

Program loading and execution

b)

Communications

c)

Programming-language support

d)

File modification

65.

The separation of policy from mechanism is a very important principle, it allows maximum flexibility if policy decisions are to be changed later (example – timer).

a)

True

b)

False

66.

Written to provide the most functionality in the least space.

a)

MS-DOS

b)

Linux

c)

Mac

d)

Windows

67.

Which of these doesn't SYSGEN ask?

a)

What CPU is to be used?

b)

How much memory is available?

c)

What devices are available?

d)

What operating-system options are desired?

e)

What application options are desired?