Exam 1 assignment questions Flashcards

1
Q

In what way is an operating system like a government?

  • It seldom functions correctly.
  • It creates an environment within which other programs can do useful work.
  • It performs most useful functions by itself.
  • It is always concerned primarily with the individual’s needs.
A

It creates an environment within which other programs can do useful work.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
\_\_\_\_ operating systems are designed primarily to maximize resource utilization.
PC
Handheld computer
Mainframe
Network
A

Mainframe

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The most common secondary storage devices are ____ (choose two).

  • magnetic disk
  • random access memory
  • solid state disks
  • tape drives
  • magnetic disk
A

solid state disks, magnetic disk

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which of the following would lead you to believe that a given system is an SMP-type system?
Each processor is assigned a specific task.
There is a boss–worker relationship between the processors.
Each processor performs all tasks within the operating system.
None of the above

A

Each processor performs all tasks within the operating system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A ____ can be used to prevent a user program from never returning control to the operating system.

  • portal
  • program counter
  • firewall
  • timer
A

timer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Embedded computers typically run on a ____ operating system.

  • real-time
  • Windows XP
  • network
  • clustered
A

real-time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Bluetooth and 802.11 devices use wireless technology to communicate over several feet, in essence creating a ____.

  • local-area network
  • wide-area network
  • person-area network
  • metropolitan-area network
A

person-area network

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A clustered system ____.

  • gathers together multiple CPUs to accomplish computational work
  • is an operating system that provides file sharing across a network
  • is used when rigid time requirements are present
  • can only operate one application at a time
A

gathers together multiple CPUs to accomplish computational work

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which of the following is a property of peer-to-peer systems?

  • Clients and servers are not distinguished from one another.
  • Separate machines act as either the client or the server but not both.
  • They do not offer any advantages over traditional client-server systems.
  • They suffer from the server acting as the bottleneck in performance.
A

Clients and servers are not distinguished from one another.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
Two important design issues for cache memory are \_\_\_\_.
speed and volatility
-size and replacement policy
-power consumption and --reusability
-size and access privileges
A

size and replacement policy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are some other terms for kernel mode?

  • supervisor mode
  • system mode
  • privileged mode
  • All of the above
A

All of the above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which of the following statements concerning open source operating systems is true?

  • Solaris is open source.
  • Source code is freely available.
  • They are always more secure than commercial, closed systems.
  • All open source operating systems share the same set of goals.
A

Source code is freely available.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which of the following operating systems is not open source?

  • Windows
  • BSD UNIX
  • Linux
  • PCLinuxOS
A

Windows

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

A _____ provides a file-system interface that allows clients to create and modify files.

  • compute-server system
  • file-server system
  • wireless network
  • network computer
A

file-server system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

A(n) ____ is a custom build of the Linux operating system.

  • LiveCD
  • installation
  • distribution
  • VMWare Player
A

distribution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

__________ is a set of software frameworks that provide additional services to application developers.

  • System programs
  • Virtualization
  • Cloud computing
  • Middleware
A

Middleware

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Which statement concerning privileged instructions is considered false?

  • They may cause harm to the system.
  • They can only be executed in kernel mode.
  • They cannot be attempted from user mode.
  • They are used to manage interrupts.
A

They cannot be attempted from user mode.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Which of the following statements is false?

  • Mobile devices must be concerned with power consumption.
  • Mobile devices can provide features that are unavailable on desktop or laptop computers.
  • The difference in storage capacity between a mobile device and laptop is shrinking.
  • Mobile devices usually have fewer processing cores than a standard desktop computer.
A

The difference in storage capacity between a mobile device and laptop is shrinking.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

A(n) ________ is the unit of work in a system.

  • process
  • operating system
  • timer
  • mode bit
A

process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

The two separate modes of operating in a system are

  • supervisor mode and system mode
  • kernel mode and privileged mode
  • physical mode and logical mode
  • user mode and kernel mode
A

user mode and kernel mode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

(true/false)The operating system kernel consists of all system and application programs in a computer.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

(true/false)Flash memory is slower than DRAM but needs no power to retain its contents.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

(true/false)A system call is triggered by hardware.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

(true/false)UNIX does not allow users to escalate privileges to gain extra permissions for a restricted activity.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

(true/false)Processors for most mobile devices run at a slower speed than a processor in a desktop PC.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

(true/false)Interrupts may be triggered by either hardware of software.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

(true/false)A dual-core system requires that each core has its own cache memory.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

(true/false)Virtually all modern operating systems provide support for SMP.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

(true/false)All computer systems have some sort of user interaction.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

(true/false)Solid state disks are generally faster than magnetic disks.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

(true/false)Solid state disks are considered volatile storage.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

(true/false)There is no universally accepted definition of an operating system.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q
A \_\_\_\_\_ is an example of a systems program.
command interpreter
web browser
text formatter
database system
A

command interpreter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

If a program terminates abnormally, a dump of memory may be examined by a ____ to determine the cause of the problem.

  • module
  • debugger
  • shell
  • control card
A

debugger

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

A message-passing model is ____.

  • easier to implement than a shared memory model for intercomputer communication
  • faster than the shared memory model
  • a network protocol, and does not apply to operating systems
  • only useful for small, simple operating systems
A

easier to implement than a shared memory model for intercomputer communication

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

Policy ____.

  • determines how to do something
  • determines what will be done
  • is not likely to change across places
  • is not likely to change over time
A

determines how to do something

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

The major difficulty in designing a layered operating system approach is ____.

  • appropriately defining the various layers
  • making sure that each layer hides certain data structures, hardware, and operations from higher-level layers
  • debugging a particular layer
  • making sure each layer is easily converted to modules
A

appropriately defining the various layers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

A microkernel is a kernel ____.

  • containing many components that are optimized to reduce resident memory size
  • that is compressed before loading in order to reduce its resident memory size
  • that is compiled to produce the smallest size possible when stored to disk
  • that is stripped of all nonessential components
A

that is stripped of all nonessential components

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

To the SYSGEN program of an operating system, the least useful piece of information is _____.

  • the CPU being used
  • the amount of memory available
  • which applications to install
  • operating-system options such as buffer sizes or CPU scheduling algorithms
A

which applications to install

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

A boot block ____.

  • typically only knows the location and length of the rest of the bootstrap program
  • typically is sophisticated enough to load the operating system and begin its execution
  • is composed of multiple disk blocks
  • is composed of multiple disk cylinders
A

typically only knows the location and length of the rest of the bootstrap program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
41
Q

_____ provide(s) an interface to the services provided by an operating system.

  • Shared memory
  • System calls
  • Simulators
  • Communication
A

System calls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
42
Q

_____ is not one of the major categories of system calls.

  • Process control
  • Communications
  • Protection
  • Security
A

Security

43
Q

_____ allow operating system services to be loaded dynamically.

  • Virtual machines
  • Modules
  • File systems
  • Graphical user interfaces
A

Modules

44
Q

Microkernels use _____ for communication.

  • message passing
  • shared memory
  • system calls
  • virtualization
A

message passing

45
Q

The close() system call in UNIX is used to close a file. What is the equivalent system call in Windows?

  • CloseHandle()
  • close()
  • CloseFile()
  • Exit()
A

CloseHandle()

46
Q

The Windows CreateFile() system call is used to create a file. What is the equivalent system call in UNIX?

  • ioctl()
  • open()
  • fork()
  • createfile()
A

open()

47
Q

Android runs Java programs _____________.

  • in the Dalvik virtual machine
  • natively
  • in the Java virtual machine
  • Android does not run Java programs
A

in the Dalvik virtual machine

48
Q

______ is a mobile operating system designed for the iPhone and iPad.

  • Mac OS X
  • Android
  • UNIX
  • iOS
A

iOS

49
Q

The ________ provides a portion of the system call interface for UNIX and Linux.

  • POSIX
  • Java
  • Standard C library
  • Standard API
A

-Standard C library

50
Q

Which of the following statements is incorrect?

  • An operating system provides an environment for the execution of programs.
  • An operating system manages system resources.
  • Operating systems provide both command line as well as graphical user interfaces.
  • Operating systems must provide both protection and security.
A

Operating systems provide both command line as well as graphical user interfaces.

51
Q

_____ is/are not a technique for passing parameters from an application to a system call.

  • Cache memory
  • Registers
  • Stack
  • Special block in memory
A

Cache memory

52
Q

(true/false)KDE and GNOME desktops are available under open-source licenses.

A

True

53
Q

(true/false)Many operating systems merge I/O devices and files into a combined file because of the similarity of system calls for each.

A

True

54
Q

(true/false)An initial bootstrap program is in the form of random-access memory (RAM).

A

False

55
Q

(true/false)System calls can be run in either user mode or kernel mode.

A

False

56
Q

(true/false)Application programmers typically use an API rather than directory invoking system calls.

A

True

57
Q

(true/false)In general, Windows system calls have longer, more descriptive names, and UNIX system calls use shorter, less descriptive names.

A

True

58
Q

(true/false)Mac OS X is a hybrid system consisting of both the Mach microkernel and BSD UNIX.

A

True

59
Q

(true/false)iOS is open source, Android is closed source.

A

False

60
Q

With round robin scheduling algorithm in a time shared system:
-using very large time slices converts it into First come First served scheduling
algorithm
-using very small time slices converts it into First come First served scheduling
algorithm
-using extremely small time slices increases performance
-using very small time slices converts it into Shortest Job First algorithm

A

using very large time slices converts it into First come First served scheduling
algorithm

61
Q

The portion of the process scheduler in an operating system that dispatches processes is
concerned with:
-assigning ready processes to CPU
-assigning ready processes to waiting queue
-assigning running processes to blocked queue
-all of the mentioned

A

assigning ready processes to CPU

62
Q

Complex scheduling algorithms:

  • are very appropriate for very large computers
  • use minimal resources
  • use many resources
  • all of the mentioned
A

are very appropriate for very large computers

63
Q

The FIFO algorithm:

  • first executes the job that came in last in the queue
  • first executes the job that came in first in the queue
  • first executes the job that needs minimal processor
  • first executes the job that has maximum processor needs
A

first executes the job that came in first in the queue

64
Q

The strategy of making processes that are logically runnable to be temporarily suspended is called:

  • Non preemptive scheduling
  • Preemptive scheduling
  • Shortest job first
  • First come First served
A

-Preemptive scheduling

65
Q

Scheduling is :

  • allowing a job to use the processor
  • making proper use of processor
  • all of the mentioned
  • none of the mentioned
A

allowing a job to use the processor

66
Q

There are 10 different processes running on a workstation. Idle processes are waiting for an
input event in the input queue. Busy processes are scheduled with the Round-Robin timesharing
method. Which out of the following quantum times is the best value for small response times, if
the processes have a short runtime, e.g. less than 10ms?
-tQ = 15ms
-tQ = 40ms
-tQ = 45ms
-tQ = 50ms

A

tQ = 45ms

67
Q

Orders are processed in the sequence they arrive if _______ rule sequences the jobs.

  • earliest due date
  • slack time remaining
  • first come, first served
  • critical ratio
A

first come, first served

68
Q

Which of the following statements are true? I. Shortest remaining time first scheduling may
cause starvation. II. Preemptive scheduling may cause starvation. III. Round robin is better than
FCFS in terms of response time
-I only
-I and III only
-II and III only
-I, II and III

A

I, II and III

69
Q

The most optimal scheduling algorithm is:

  • FCFS – First come First served
  • SJF – Shortest Job First
  • RR – Round Robin
  • None of the mentioned
A

SJF – Shortest Job First

70
Q

The real difficulty with SJF in short term scheduling is:

  • it is too good an algorithm
  • knowing the length of the next CPU request
  • it is too complex to understand
  • none of the mentioned
A

knowing the length of the next CPU request

71
Q

The FCFS algorithm is particularly troublesome for ____________

  • time sharing systems
  • multiprogramming systems
  • multiprocessor systems
  • operating systems
A

-multiprogramming systems

72
Q

Preemptive Shortest Job First scheduling is sometimes called:

  • Fast SJF scheduling
  • EDF scheduling – Earliest Deadline First
  • HRRN scheduling – Highest Response Ratio Next
  • SRTN scheduling – Shortest Remaining Time Next
A

SRTN scheduling – Shortest Remaining Time Next

73
Q

An SJF algorithm is simply a priority algorithm where the priority is:

  • the predicted next CPU burst
  • the inverse of the predicted next CPU burst
  • the current CPU burst
  • anything the user wants
A

the predicted next CPU burst

74
Q

One of the disadvantages of the priority scheduling algorithm is that:

  • it schedules in a very complex manner
  • its scheduling takes up a lot of time
  • it can lead to some low priority process waiting indefinitely for the CPU
  • none of the mentioned
A

-it can lead to some low priority process waiting indefinitely for the CPU

75
Q

‘Aging’ is:

  • keeping track of cache contents
  • keeping track of what pages are currently residing in memory
  • keeping track of how many times a given page is referenced
  • increasing the priority of jobs to ensure termination in a finite time
A

increasing the priority of jobs to ensure termination in a finite time

76
Q

A solution to the problem of indefinite blockage of low – priority processes is:

  • Starvation
  • Wait queue
  • Ready queue
  • Aging
A

-Aging

77
Q

Which of the following statements are true? i) Shortest remaining time first scheduling may
cause starvation. ii) Preemptive scheduling may cause starvation. iii) Round robin is better than
FCFS in terms of response time.
-i only
-i and iii only
-ii and iii only
-i, ii and iii

A

i, ii and iii

78
Q

Which of the following scheduling algorithms gives minimum average waiting time?

  • FCFS
  • SJF
  • Round – robin
  • Priority
A

-SJF

79
Q

Restricting the child process to a subset of the parent’s resources prevents any
process from :
-overloading the system by using a lot of secondary storage
-under-loading the system by very less CPU utilization
-overloading the system by creating a lot of sub-processes
-crashing the system by utilizing multiple resources

A

overloading the system by creating a lot of sub-processes

80
Q
A parent process calling \_\_\_\_\_ system call will be suspended until children
processes terminate.
-wait
-fork
-exit
-exec
A

-wait

81
Q

With _____________ only one process can execute at a time; meanwhile all other
process are waiting for the processor. With ______________ more than one
process can be running simultaneously each on a different processor.
-Multiprocessing, Multiprogramming
-Multiprogramming, Uniprocessing
-Multiprogramming, Multiprocessing
-Uniprogramming, Multiprocessing

A

Multiprogramming, Multiprocessing

82
Q

In UNIX, each process is identified by its :

  • Process Control Block
  • Device Queue
  • Process Identifier
  • None of the mentioned
A

Process Identifier

83
Q
In UNIX, the return value for the fork system call is \_\_\_\_\_ for the child process
and \_\_\_\_\_ for the parent process.
-A Negative integer, Zero
-Zero, A Negative integer
-Zero, A nonzero integer
-A nonzero integer, Zero
A

-Zero, A nonzero integer

84
Q

The child process can:

  • be a duplicate of the parent process
  • never be a duplicate of the parent process
  • cannot have another program loaded into it
  • never have another program loaded into it
A

be a duplicate of the parent process

85
Q

A Process Control Block(PCB) does not contain which of the following:

  • Code
  • Stack
  • Bootstrap program
  • Data
A

-Bootstrap program

86
Q
The number of processes completed per unit time is known as \_\_\_\_\_\_\_\_\_\_
Output
Throughput
Efficiency
Capacity
A

Throughput

87
Q

The state of a process is defined by:

A

The current activity of the process

88
Q
Which of the following is not the state of a process?
New
Old
Waiting
Running
A

Old

89
Q
The Process Control Block is:
Process type variable
Data Structure
A secondary storage section
A Block in memory
A

Data Structure

90
Q

The degree of multi-programming is:

  • the number of processes executed per unit time
  • the number of processes in the ready queue
  • the number of processes in the I/O queue
  • the number of processes in memory
A

-the number of processes in memory

91
Q
A single thread of control allows the process to perform:
only one task at a time
multiple tasks at a time
only two tasks at a time
all of the mentioned
A

only one task at a time

92
Q

The objective of multi-programming is to:

A

Have some process running at all times

93
Q
Which of the following do not belong to queues for processes?
Job Queue
PCB queue
Device Queue
Ready Queue
A

PCB queue

94
Q
When the process issues an I/O request :
It is placed in an I/O queue
It is placed in a waiting queue
It is placed in the ready queue
It is placed in the Job queue
A

It is placed in an I/O queue

95
Q

What is a long-term scheduler ?
It selects which process has to be brought into the ready queue
It selects which process has to be executed next and allocates CPU
It selects which process to remove from memory by swapping
None of the mentioned

A

It selects which process has to be brought into the ready queue

96
Q

If all processes I/O bound, the ready queue will almost always be ______ and the
Short term Scheduler will have a ______ to do.
full,little
full,lot
empty,little
empty,lot

A

empty,little

97
Q

What is a medium-term scheduler?
It selects which process has to be brought into the ready queue
It selects which process has to be executed next and allocates CPU
It selects which process to remove from memory by swapping
None of the mentioned

A

It selects which process to remove from memory by swapping

98
Q

What is a short-term scheduler ?
It selects which process has to be brought into the ready queue
It selects which process has to be executed next and allocates CPU
It selects which process to remove from memory by swapping
None of the mentioned

A

It selects which process has to be executed next and allocates CPU

99
Q
The primary distinction between the short term scheduler and the long term
scheduler is :
The length of their queues
The type of processes they schedule
The frequency of their execution
None of the mentioned
A

The frequency of their execution

100
Q

In a time-sharing operating system, when the time slot given to a process is
completed, the process goes from the running state to the :
Blocked state
Ready state
Suspended state
Terminated state

A

Ready state

101
Q

In a multi-programming environment :
the processor executes more than one process at a time
the programs are developed by more than one person
more than one process resides in the memory
a single user can execute many programs at the same time

A

more than one process resides in the memory

102
Q

Suppose that a process is in “Blocked” state waiting for some I/O service. When
the service is completed, it goes to the :
Running state
Ready state
Suspended state
Terminated state

A

Ready state

103
Q
The context of a process in the PCB of a process does not contain :
the value of the CPU registers
the process state
memory-management information
context switch time
A

context switch time