0% found this document useful (0 votes)
24 views15 pages

Quiz 1

The document contains a series of questions and answers related to cloud computing, operating systems, and their functionalities. Key topics include cloud computing definitions, characteristics of memory hierarchy, differences between physical and virtual memory, and the role of operating systems in resource management. It also covers system calls, APIs, and various operating system structures with examples.

Uploaded by

Ksososos
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views15 pages

Quiz 1

The document contains a series of questions and answers related to cloud computing, operating systems, and their functionalities. Key topics include cloud computing definitions, characteristics of memory hierarchy, differences between physical and virtual memory, and the role of operating systems in resource management. It also covers system calls, APIs, and various operating system structures with examples.

Uploaded by

Ksososos
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

• Question 1

What is cloud computing and how does it deliver its functionality?

Correct
Answer: Cloud computing is a type of computing that delivers computing, storage, and
application services across a network. Cloud computing often uses virtualization to
provide its functionality.

• Question 2
1 out of 1 points
In _____________ multiprocessing all processors work in parallel and share resources.

Selected Answer:
symmetric
Answers: mix

symmetric
asymmetric
simple
• Question 3
Needs Grading
What are the three (3) characteristics that distinguish the various elements of a memory
hierarchy?

Correct
Answer: Any three key characteristics of memory from capacity, and access time,
bandwidth, implementation technology, cost.

• Question 4
Needs Grading
Describe the differences between physical and virtual memory.

Correct
Answer: Physical memory is the memory available for machines to execute operations
(i.e., cache, random access memory, etc.).
Virtual Memory -To ensure reasonable response time, OS uses part of the disk
and makes it work as a memory called - Virtual memory - that allows
execution of processes not completely in memory

• Question 5
1 out of 1 points
Which of the following has the largest capacity?

Selected Answer:
Magnetic disk
Answers: Main memory
Register

Magnetic disk
Flash memory
• Question 6
1 out of 1 points
In cloud computing, _________ is a software stack ready for application use via the Internet.

Selected Answer:
PaaS
Answers: SaaS
NaaS
IaaS

PaaS
• Question 7
1 out of 1 points
One of the benefits of multi-processor system is:

Selected Answer:
Increased Reliability
Answers: Loadable Operating System modules
Easier Operating System design
Using a sinlge CPU effectively

Increased Reliability
• Question 8
1 out of 1 points
A process is:

Selected Answer:
A program in execution
Answers:
A program in execution
A program that is waiting to be executed
A program that has finished execution
Something that you do
• Question 9
1 out of 1 points
Which one of the following APIs are used in Mac operating system?

Selected Answer:
POSIX API
Answers:
POSIX API
Java API
Win32 API
Linux32 API
• Question 10
1 out of 1 points
Which mix of languages are typically used for implementing operating systems?

Selected Answer:
Assembly, C and C++
Answers: Perl, Python and Java+

Assembly, C and C++


C and HTML5
C++, Python and HTML
• Question 11
1 out of 1 points
Choose the false statement about Security from the options given below::
Selected Answer:
Cannot protect against external attacks
Answers: Can protect against unauthorized use of system
Can protect against internal attacks
Can protect against denial of service attacks

Cannot protect against external attacks


• Question 12
Needs Grading
Describe briefly three (3) of the desired features of an operating system.

Correct
Answer: • Process Management – creating, deleting, suspending, and resuming
processes; process synchronization and deadlock handling
• Memory Management – allocating and deallocating memory space
to running programs (processes) and optimize overall system
performance
• Storage Management – Free space management, storage allocation,
disk scheduling
• File System Management – creating and deleting files and
directories; access control; file backups
• Protection and Security – controlling access to resources, and
defend internal/external attacks
• Question 13
Needs Grading
How does the operating system support the computer systems two modes of operation?

Correct
Answer: When the computer system is executing on behalf of a user application, the system
is in user mode. However, when a user application requests a service from the
operating system (via a system call), it must transition from user to kernel mode
to fulfill the request. A mode bit is added to the hardware of the computer to
indicate the current mode: kernel (0) or user (1).

• Question 14
1 out of 1 points
________________ is used to run multiple operating systems at the same time as a guest
operating system, on a single computer system.

Selected Answer:
Virtualization
Answers: Scheduling
Interrupt
Emulation

Virtualization
• Question 15
1 out of 1 points
__________ allows execution of processes not completely in memory.

Selected Answer:
Virtual memory
Answers: Cache
Virtualization

Virtual memory
CPU scheduling
• Question 16
1 out of 1 points
Primary storage includes:
Selected Answer:
Processors L1 cache
Answers:
Processors L1 cache
Magnetic disk
Optical drive
Hard drive
• Question 17
1 out of 1 points
Which of the following statement is true about Protection:
Selected
Answer: Is a mechanism for controlling access of processes or users to resources
defined by the OS
Answers:
Is a mechanism for controlling access of processes or users to resources
defined by the OS
Reduces reliability
This is optional and is set up by the user when installing the OS
Is only available on some operating systems
• Question 18
1 out of 1 points
How does a system distinguish among users to determine their privileges?

Selected Answer:
Each user has a User ID associated with their name and number
Answers: Users can only belong to one group

Each user has a User ID associated with their name and number
None of the above
Each group has full access to all files on the system
• Question 19
1 out of 1 points
A cloud run by a company for the company's own use is an example of _______________ cloud.

Selected Answer:
private
Answers: public

private
hybrid
own
• Question 20
1 out of 1 points
A user program can request a service from the operating system's kernal using _______________.

Selected Answer:
system call
Answers: scheduling

system call
interrupt
process switching
• Question 21
1 out of 1 points
Which memory is the fastest from the following, in terms of access time?

Selected Answer:
registers
Answers: magnetic disk
solid state disk
main memory

registers
• Question 22
1 out of 1 points
Which of the following is used to prevent a process from hogging resources or prevent an
infinite loop?

Selected Answer:
Timer
Answers: Emulation
Virtualzation

Timer
VMM
• Question 23
Needs Grading
Explain why an operating system is viewed as a resource allocator.

Correct
Answer: A computer system has many resources that may be required to solve a problem:
CPU time, memory space, file-storage space, I/O devices, and so on. The operating
system acts as the manager of these resources. Facing numerous and possibly
conflicting requests for resources, the operating system must decide how to
allocate them to specific programs and users so that it can operate the computer
system efficiently and fairly.
• Question 24
1 out of 1 points
wait event, signal event are examples of system calls related to ____________.

Selected Answer:
process management
Answers: device management

process management
file management
protection
• Question 25
Needs Grading
List three (3) characteristics that can differentiate operating systems:

Correct Answer:
Multi-programming
Time-sharing
Real-time

• Question 26
Needs Grading
List three (3) key objectives of an operating system that are provided to a user.

Correct Answer:
• Execute user programs and make solving user problems easier
• Make the computer system convenient to use
• Use the computer hardware in an efficient manner

• Question 27
1 out of 1 points
Which data structures are used by OS?

Selected Answer:
Singly linked list
Answers: RAM memory
Variables

Singly linked list


ROM memory

• Question 28
1 out of 1 points
Memory management involves:

Selected Answer:
Keeping track of which parts of memory are currently being used
Answers:
Keeping track of which parts of memory are currently being used
Memory manages its own space
Not keeping track of who is using the memory
Installing the maximum memory
• Question 29
Needs Grading
Discuss how cloud computing delivers the database, storage, and application services across
a network?

Correct
Answer: Cloud computing uses virtualization to provide its functionality.
Cloud computing may offer applications using SaaS, storage as IaaS, and
database servers using PaaS.

• Question 30
Needs Grading
List three (3) most commonly used operating systems in today’s computing environment:

Correct Answer:
Windows 10
Linux
macOS

• Question 1
get time , set time are system calls related to ________________________.
Selected Answer:
information maintenance
Answers: process management

file management
device management

information maintenance

• Question 2
1 out of 1 points
Which one of the following APIs are used in Mac operating system?

Selected Answer:
POSIX API
Answers: Linux32 API
Win32 API
Java API

POSIX API
• Question 3
1 out of 1 points
wait event, signal event are examples of system calls related to ____________.

Selected Answer:
process management
Answers: protection
device management

process management
file management
• Question 4
1 out of 1 points
Firmware ROM is used to hold initial _________________________.
Selected Answer:
boot code
Answers: line code
firmware code
hardware components

boot code
• Question 5
1 out of 1 points
A common bootstrap loader is ____________________.

Selected Answer:
GRUB
Answers: Linux
Kernel

GRUB
Unix
• Question 6
1 out of 1 points
Riyaz was working in an application and suddenly this application failed. This will generate
________________ dump file capturing memory of the process.

Selected Answer:
core
Answers: log

core
crash
SYSGEN
• Question 7
1 out of 1 points
Which mix of languages are typically used for implementing operating systems?

Selected Answer:
Assembly, C and C++
Answers: Perl, Python and Java+

Assembly, C and C++


C++, Python and HTML
C and HTML5
• Question 8
1 out of 1 points
The System goal of an Operating System is easy to ___________________.

Selected Answer:
design
Answers:
design
use
learn
look

• Question 9
1 out of 1 points
Shafiq sees that the process which he was working exited without any error. What
error code he would have received?
Selected Answer:
0
Answers: -1

0
2
1
• Question 10
1 out of 1 points
Which mix of languages are typically used for implementing operating systems?

Selected Answer:
Assembly, C and C++
Answers:
Assembly, C and C++
Perl, Python and Java+
C++, Python and HTML
C and HTML5
• Question 11
1 out of 1 points
Wait event is an example of system call related to ____________.

Selected Answer:
process management

Answers:
process management

file management
device management
protection

• Question 12
1 out of 1 points
When multiple users or multiple jobs run concurrently, the OS must ensure efficient
______________________.

Selected Answer:
resource allocation
Answers:
resource allocation
accounting
user interface
communication
• Question 13
1 out of 1 points
Fathma is working In a UNIX operating system. Which system call she has to use to create a
process?

Selected Answer:
fork( )
Answers:
fork( )
open( )
wait( )
write( )
• Question 14
1 out of 1 points
Which of the following API is used in a systems call?

Selected Answer:
Win32
Answers: C++

Win32
C#
Python

• Question 15
1 out of 1 points
Ria was working with an Operating System which had an overhead for communication
between user and kernel space. Identify which OS Ria was using.

Selected Answer:
Microkernel Operating System
Answers: Modular Operating System
Loadable Operating System

Microkernel Operating System


Distributed Operating System
• Question 16
1 out of 1 points
Rebaya is a System Programmer and she writes different system calls in
_________________________ language.

Selected Answer:
high level
Answers: low level

high level
assembly level
middle level
• Question 17
Needs Grading
If you sent a skype message to your friend. Which service among the services provided by
the operating system is used on your behalf?

Correct Answer:
Service for Communications.
• Question 18
Needs Grading
If you opened a new spreadsheet (Excel) on your computer. Which service among the
services provided by the operating system is used to execute/run the spreadsheet (Excel).

Correct Answer:
file management / Program execution

• Question 19
Needs Grading
If the operating system crashed/failed and you want to identify the causes of this failure.
Explain what actions will you take which help you to identify the cause of this operating
system failure?

Correct
Answer:
The Operating system failure can generate a crash dump file containing kernel
memory. Investigating this crash dump file can help to identify the causes
of operating system failure.

• Question 20
Needs Grading
What is system call?

What is API?

What is the difference between system call and API?

Correct
Answer: The System calls are programming interface to the services provided by the OS.
Application Program Interface (API) is used by the programmers to request the
operating system service rather than system call.
Application developers often do not have direct access to the
system calls but can access them through an application
programming interface (API).

• Question 21
Needs Grading
What is a bootstrap loader and what is its purpose?
What type of memory is used to store a bootstrap loader?
What is the purpose of common bootstrap loader like GRUB ?

Correct
Answer: One mark for each part of the answer.
1. The bootstrap loader is a small piece of code. It locates the OS kernel, loads it
into computer memory and start the OS.
2. The bootstrap loader is stored in ROM/EEPROM which is read-only memory.
3. It allows selection of kernel from multiple disks

• Question 22
Needs Grading
Write down the four different Operating System Structure to design and implement the
operating systems? Give one example of the operating system implemented by each
structure.

Correct Answer:
2 marks for four structures, 1 marks for four examples
1. Simple Structure: MS-DOS
2. Beyond simple but not fully layered: Unix
3. Microkernel System Structure: Mach
4. Modular Structure : Linux, Solaris
• Question 23
Needs Grading
Write down and describe the operating system services which provide the functions that are
helpful to the users.

Correct
Answer: One marks for the name and 2 marks for the description.
1. Program execution - The system must be able to load a program into memory,
run that program, and end execution, (normally or abnormally).
2. /O operations - A running program may require I/O, which may involve a file
or an I/O device
3. File-system manipulation - Programs need to read and write files and
directories, create and delete them, search them, list file Information, permission
management.
4. Communications – Processes may exchange information, on the same
computer or between computers over a network
5. Error detection – OS needs to be constantly aware of possible errors that may
occur in the CPU and memory hardware, in I/O devices, in user program.

You might also like