Quiz
Systems Software
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (50)
1The logical address is:
- Agenerated by the CPU
- Bthe address seen by the memory unit
- Cgenerated by the user
2 Memory Management Unit (MMU) is a
- Ahardware device that at run time maps virtual to physical address
- Bsoftware device that at run time maps virtual to physical address
- Chardware device that at the compilation time maps virtual to physical address
- Dsoftware device that at the compilation time maps virtual to physical address
3Virtual Memory is
- Aseparation of user logical memory from physical memory
- Buser logical memory
- Cphysical memory
- Dkernel memory
4 Copy-on-Write (COW) allows...
- Aboth parent and child processes to initially share the same pages in memory
- Bthe child process to initially share the same pages in memory
- Cthe parent process to initially share the same pages in memory
- Dto write a new file
5Mutual exclusion means
- Aonly one process at a time can use a resource
- Ba resource can be released only voluntarily by the process holding it, after that process has
completed its task - Ca process holding at least one resource is waiting to acquire additional resources held by
other processes
6 If a system is in safe state then
- Ano deadlocks will occur
- Bpossibility of deadlock
- Cdeadlocks will occur
7In the readers-writers problem
- AReaders can only read the dataset and writers can only write.
- BReaders can read/write the dataset and writers can read/write.
- CReaders can only read the dataset and writers can read/write.
- DReaders can read/write the dataset and writers can only write.
8In Java synchronization, describe what happens when a thread calls notify()
- AAn arbitrary thread T is selected from the wait set
- BStart a new thread T
- CT is moved from the wait set to the entry set
- DSet the state of T from blocked to runnable.
- EFinishes thread T
9 A Mutex is a
- Amutual exclusion lock
- BCPU scheduler algorithm
- Ctype of kernel
10 A Semaphore, in the OS context, is...
- Aan integer variable used to solve the critical section problem by using two atomic operations,
wait and signal that are used for process synchronization - Bis a traffic light system
- Cthe name given to the critical section of code that can only be accessed by only one thread.
- Aan integer variable used to solve the critical section problem by using two atomic operations,
11 Preemptive scheduling is used when a process
- Aswitches from running state to ready state or from the waiting state to ready state.
- Bterminates, or a process switches from running to the waiting state
- Cstarts the execution
12 In Round Robin (RR) scheduling
- AEach process gets the same amount of CPU time
- BThe CPU is allocated to the process with the highest priority
- CThe CPU is allocated to the process with the lowest priority
13 In the Many-to-One thread model
- AMany user-level threads mapped to single kernel thread
- BOne user-level thread is mapped to many kernel threads
- CMany user-level threads mapped to many kernel threads
14 Signals are used in UNIX/Linux systems to notify
- Aa process that a particular event has occurred.
- Ba thread that a particular event has occurred.
- Cthe user that a particular event has occurred.
- Dthe OS that a particular event has occurred.
15 A process is
- Aa program in execution
- Bis text editor
- Ca spreadsheet
- Da browser
16 Select all the valid states for a process.
- ANew
- BRunning
- CWaiting
- DReady
- EPaused
- FTerminated
- GAborted
- HIn progress
- IKilled
- JBlocked
17Select the services offered by Operating Systems
- AUser Interface
- BProgram execution
- CI/O Operations
- DFile-system manipulation
- ECommunication
- FError Detection
- GResource Allocation
- HLogging
- IProtection and Security
- JAnti-virus
18 All Operating Systems offer ...
- Aa User Interface (UI)
- Ba Graphical User Interface (GUI)
- Ca touch screen capability
19What do all the devices (from a smart watch to a cluster HPC) share in common?
- AKernel
- BWindows
- CMac
- DLinux
20 Linux is …
- Aan Operating System
- Ba Kernel
- Can Application
21Masquerading (breach authentication) refers to
- APretending to be an authorized user to escalate privileges
- Bmessage modification
- CIntruder sits in data flow, masquerading as sender to receiver and vice versa
- DIntercept an already-established session to bypass authentication
- ECommon attack type with access beyond what a user or resource is supposed to have
22 Malware refer to
- ASoftware designed to exploit, disable, or damage computer
- BProgram frequently installed with legitimate software to display adds, capture user data
- CIntruder sits in data flow, masquerading as sender to receiver and vice versa
- Da data lock via encryption, demanding payment to unlock it
23 Rings of protection
- Aseparate functions into domains and order them
- Bjoin functions into domains
- Cseparate processes into domains and order them
- Djoin processes into domains
24 An Access matrix
- Ais a table that defines access permissions between specific subjects and objects.
- Bis a table that defines access restrictions between specific subjects and objects.
- Cis a table that defines access permissions between specific users and objects.
25Type 0 hypervisors are ...
- AHardware-based solutions that provide support for virtual machine creation and management
via firmware - BOperating-system-like software built to provide virtualization
- CApplications that run on standard operating systems but provide VMM features to guest
operating systems
- AHardware-based solutions that provide support for virtual machine creation and management
26Paravirtualization
- Ais a technique in which the guest operating system is modified to work in cooperation with
the Virtual Machine Manager to optimize performance - Bis where the Virtual Machine Manager does not virtualize real hardware but instead create an
optimizer virtual system - Cenable applications written for one hardware environment to run on a very different
hardware environment, such as a different type of CPU
- Ais a technique in which the guest operating system is modified to work in cooperation with
27 In the context of cryptography, brute-Force Attack...
- AInvolves trying every possible key until an intelligible translation of the ciphertext into
plaintext is obtained - BInvolves replacing the letters of plaintext by other letters or by numbers or symbols
- Cis best-known multiple-letter encryption cipher
- DImproves on the simple monoalphabetic technique by using different monoalphabetic
substitutions as one proceeds through the plaintext message
- AInvolves trying every possible key until an intelligible translation of the ciphertext into
28The Caesar Cipher
- AInvolves replacing each letter of the alphabet with the letter standing N places further down
the alphabet - BInvolves replacing each letter of the alphabet with a number standing N places further down
the alphabet - CInvolves replacing each letter of the alphabet with the letter standing N places further up the
alphabet
- AInvolves replacing each letter of the alphabet with the letter standing N places further down
29 UDP stands for...
- AUser Datagram Protocol and is an Unreliable data transport protocol
- BUser Data Protocol and is an Unreliable data transport protocol
- CUser Datagram Protocol and is a Reliable data transport protocol
- DUser Data Protocol and is a Reliable data transport protocol
30 TCP stands for...
- ATransmission Control Protocol and is a Reliable data transport protocol
- BTransmission Communication Protocol and is a Reliable data transport protocol
- CTransmission Control Protocol and is an Unreliable data transport protocol
- DTransmission Communication Protocol and is an Unreliable data transport protocol
31TLS stands for...
- ATransport Layer Security
- BTransfer Layer Security
- CTransport Library Security
- DTransfer Library Secure
32 Secure Shell (SSH) is
- AA protocol for secure network communications designed to be relatively simple and
inexpensive to implement - BA protocol for network communications designed to be relatively complex and difficult to
implement - CA protocol for secure network communications designed to be very complex to implement
- AA protocol for secure network communications designed to be relatively simple and
33 A container is ...
- Aan abstraction at the app layer that packages code and dependencies together.
- Ban abstraction of physical hardware turning one server into many servers.
- Can operating system architecture where the entire operating system is working in kernel
space - Dthe near-minimum amount of software that can provide the mechanisms needed to
implement an operating system (OS)
34Microservices are ...
- AHighly maintainable and testable
- BLoosely coupled
- CIndependently deployable
- DOrganized around business capabilities
- EOwned by a small team
- FHighly coupled
- GIdeal for small projects that do not require scalability
- HDifficult to manage
- IMonolithic
35Vulnerabilities, in containers, can possibly exist in...
- AContainer configurations
- BContainer packages
- CApplication Libraries
- DVirtual Machines
- EMain Operating System
36Select the steps that help to keep your containers ecosystems secure …
- ACheck the integrity of the images
- BSign to validate pipeline phases
- CConsume only trusted content for tagged Docker builds
- DEnsure that the container was generated by a trusted publisher
- EConsume any content for tagged Docker builds
- FIgnore the integrity of images
- GUse any container
37In the context of Cloud Computing, the properties and characteristics are
- AHigh scalability and elasticity
- BHigh availability and reliability
- CHigh manageability and interoperability
- DHigh accessibility and portability
- EHigh performance and optimization
- FLow scalability and elasticity
- GLow availability and reliability
- HLow manageability and interoperability
- ILow accessibility and portability
- JLow performance and optimization
38Fault-tolerance is
- Athe property that enables a system to continue operating properly in the event of the failure
of some of its components. - Ba subfield of control engineering which concerns itself with monitoring a system, identifying
when a fault has occurred and pinpoint the type of fault and its location. - Cthe ability to provide and maintain an acceptable level of service in the face of faults and
challenges to normal operation - Dthe process, policies and procedures related to preparing for recovery or continuation of
technology infrastructure critical to an organization after a natural or human-induced disaster.
- Athe property that enables a system to continue operating properly in the event of the failure
39In heterogeneous computing, domain decomposition involves ...
- ADeciding how data elements should be divided among processors
- BDeciding which tasks each processor should be doing
- CDividing tasks among processors
- DDeciding which data elements are going to be accessed (read and/or written) by which
processor
40Why are race conditions so difficult to manage?
- APrograms with race conditions exhibit non-deterministic behaviour
- BSometimes the result is incorrect
- CPrograms work correctly on trivial data sets and small number of threads
- DErrors more likely to occur when number of threads or execution time increases
- EPrograms with race conditions exhibit deterministic behaviour.
- FThe result is always incorrect
- GErrors more likely to occur when number of threads or execution time decreases
41Edge Computing devices are
- Adevices like sensors and machines can be outfitted to work in edge computing.
- Bspecialized software that processes data in edge devices, which is opposite to thin client,
which hardly transfers data. - Cregular laptops used in the day-to-day activities.
42 Advantages of Enabling Edge Computing.
- ASpeed is increased
- BReliability is increased
- CRandom issues are reduced
- DCompliance issues are reduced
- EHacking issues are reduced
- FSpeed is reduced
- GReliability is reduced
- HRandom issues are increased
- ICompliance issues are increased
- JHacking issues are increased
43 What output is produced by the following?
System.out.println("X: " + 25);
System.out.println("Y: " + (15 + 50));
System.out.println("Z: " + 300 + 50);- AX: 25
- BY: 65
- CZ: 30050
- DZ: 350
- EY: 1550
- FX: 7
44Which of the following println statements produces the following output:
"Thank you all for coming to my home tonight,"
he said mysteriously.- ASystem.out.println("\"Thank you all for " + "coming to my home tonight,\"\n he said " +
"mysteriously."); - BSystem.out.println("Thank you all for coming to my home\n tonight, he said mysteriously.");
- CSystem.out.println("\"Thank you all for " + "coming to my home tonight,\" he said " +
"mysteriously.");
- ASystem.out.println("\"Thank you all for " + "coming to my home tonight,\"\n he said " +
45 How many bits would you need to represent each of the 50 United States using a unique permutation of bits?
- A6 bits
- B8 bits
- C2 bits
- D1 bit
46Which of the following are valid Java identifiers?
- Agrade
- BquizGrade
- CNetworkConnection
- Dframe2
- E3rdTestScore
- FMAXIMUM
- GMIN_CAPACITY
- Hrstudent#
- IShelves1&2
- JMIN-CAPACITY
47What is the output of the following code:
String var_a="c";
String var_b="c";
if (var_a.equals(var_b)){
System.out.println("A and B have the same value!");
}
else{
System.out.println("A and B do not have the same value!");- AA and B have the same value!
- BA and B do not have the same value!
- CNot possible to run the code
48 What is the output of the following code:
for(int i=10;i>-1;--i)
{
System.out.print((i+1)+" ");
}- A1 2 3 4 5 6 7 8 9 10
- B11 10 9 8 7 6 5 4 3 2 1
- C10 9 8 7 6 5 4 3 2 1
- D1 2 3 4 5 6 7 8 9 10 11
- ENot possible to run the code
49 What is the output of the following code:
for(int i=0;I<=0;I++)
{
Console.writeline((i+1)+" ");
}- A1 2 3 4 5 6 7 8 9 10
- B11 10 9 8 7 6 5 4 3 2 1
- C10 9 8 7 6 5 4 3 2 1
- D1 2 3 4 5 6 7 8 9 10 11
- ENot possible to run the code
50 What is the output generated by the following code:
import java.io.FileWriter; // Import the FileWriter class
import java.io.IOException; // Import the IOException class to handle errors
public class WriteToFile {
public static void main(String[] args) {
try {
FileWriter myWriter = new FileWriter("filename.txt");
myWriter.write("Files in Java might be tricky, but it is fun enough!");
myWriter.close();
System.out.println("Successfully wrote to the file.");
} catch (IOException e) {
System.out.println("An error occurred.");
e.printStackTrace();
}
}
}- Awrites "Files in Java might be tricky, but it is fun enough!" in the terminal and "Successfully
wrote to the file." Into the file name.txt. - Bwrites "Files in Java might be tricky, but it is fun enough!" In the terminal and "Successfully
wrote to the file." Into the file file.txt. - Cdoes not write anything in the terminal and "Successfully wrote to the file." Into the file
filename.txt. - Dwrites "Files in Java might be tricky, but it is fun enough!" in the terminal and "Successfully
wrote to the file." Into the file filename.txt. - Ewrites "Successfully wrote to the file." in the terminal and "Files in Java might be tricky, but it
is fun enough!" Into the file filename.txt.
- Awrites "Files in Java might be tricky, but it is fun enough!" in the terminal and "Successfully
Information
- Description
- Quiz on Systems Software, created by Nii Wellington-Appiah on 28/03/2023.
- Author
- Nii Wellington-Appiah
- Language
- English
- Views
- 60
- Tags
- Rating
- No ratings yet Rate this quiz