Unit 2 - Practice Quiz

CSE111

1 What is the primary definition of an Operating System?

A. A hardware component that stores data
B. An interface between the user and the computer hardware
C. A program that performs specific tasks like photo editing
D. A device driver for printers

2 Which of the following is NOT a primary function of an Operating System?

A. Memory Management
B. Processor Management
C. Website Design
D. File Management

3 The core component of an Operating System that interacts directly with the hardware is called the:

A. Shell
B. Kernel
C. Compiler
D. Bootloader

4 In the context of Operating System architecture, what is the 'Shell'?

A. The hard outer casing of the CPU
B. A program that interprets user commands
C. The memory management unit
D. The lowest level of the kernel

5 Which type of Operating System allows multiple users to access the system concurrently?

A. Single-user OS
B. Multi-user OS
C. Batch Processing OS
D. Real-time OS

6 What characterizes a Real-Time Operating System (RTOS)?

A. It processes data in large batches
B. It focuses on a beautiful user interface
C. It requires strict adherence to time constraints for processing
D. It is designed only for single-tasking

7 Which architecture places typically all operating system services in the kernel space?

A. Microkernel
B. Monolithic Kernel
C. Hybrid Kernel
D. Exokernel

8 What is the main advantage of a Microkernel architecture?

A. It is faster than a Monolithic kernel
B. It is larger in size
C. It offers better system stability and security by running services in user space
D. It includes all device drivers in the kernel space

9 Which program is responsible for loading the Operating System into memory when the computer is turned on?

A. Compiler
B. Bootloader
C. Assembler
D. Linker

10 The process of starting a computer and loading the operating system is known as:

A. Compiling
B. Booting
C. Linking
D. Debugging

11 In a directory hierarchy, what is the topmost directory called?

A. Stem directory
B. Branch directory
C. Root directory
D. Leaf directory

12 Which structure best represents the arrangement of directories and subdirectories in an OS?

A. Linear List
B. Tree Structure
C. Circular Queue
D. Stack

13 Machine language is composed of:

A. English-like sentences
B. Mnemonics
C. Binary digits (0s and 1s)
D. Mathematical formulas

14 Which language uses mnemonics (like ADD, SUB, MOV) to represent instructions?

A. High-level language
B. Machine language
C. Assembly language
D. Scripting language

15 A program written in a high-level language is known as:

A. Object code
B. Source code
C. Machine code
D. Binary code

16 Which tool translates Assembly language into Machine language?

A. Compiler
B. Interpreter
C. Assembler
D. Linker

17 What is the primary function of a Compiler?

A. To execute the program line by line
B. To translate the entire source code into machine code at once
C. To edit the text of the program
D. To load the program into memory

18 How does an Interpreter differ from a Compiler?

A. It translates code line-by-line and executes immediately
B. It is faster than a compiler
C. It produces an object code file
D. It is used only for Assembly language

19 Which of the following is an example of a High-Level Language?

A. Binary
B. Assembly
C. Python
D. Microcode

20 Which system software combines multiple object files into a single executable file?

A. Loader
B. Linker
C. Debugger
D. Editor

21 What is the role of the 'Loader'?

A. To write the code
B. To debug syntax errors
C. To load the executable code from disk into memory for execution
D. To compile source code

22 Which type of error is detected during the compilation phase?

A. Logical error
B. Runtime error
C. Syntax error
D. Hardware error

23 Which operating system type processes jobs in groups without user interaction?

A. Distributed OS
B. Batch Processing OS
C. Time-sharing OS
D. Real-time OS

24 What is 'Time-Sharing' in an Operating System?

A. Sharing files between users
B. Sharing the CPU time among multiple users/processes
C. Sharing the keyboard between users
D. Sharing the hard drive space

25 A distributed operating system is characterized by:

A. Running on a single computer
B. Running on multiple independent computers that appear as a single system
C. Being used only for calculators
D. Having no network connection

26 The output of a compiler is typically called:

A. Source Code
B. Object Code
C. Mnemonics
D. Algorithm

27 Which of the following is a sequence of program development?

A. Execute -> Compile -> Edit -> Link
B. Edit -> Compile -> Link -> Execute
C. Link -> Edit -> Compile -> Execute
D. Compile -> Execute -> Edit -> Link

28 What does portability mean in the context of High-Level Languages?

A. The code can run on different types of hardware with minimal changes
B. The code can be carried on a USB drive
C. The code is very small in size
D. The code executes extremely fast

29 Which of the following is NOT a language processor/translator?

A. Compiler
B. Interpreter
C. Assembler
D. Editor

30 In a path name, what does the '..' symbol typically represent?

A. Current directory
B. Parent directory
C. Root directory
D. Home directory

31 What is a System Call?

A. A phone call made via the computer
B. A mechanism for an application to request a service from the kernel
C. A hardware error signal
D. A type of virus

32 Which OS function manages the allocation and deallocation of RAM?

A. File Management
B. Memory Management
C. Device Management
D. Security Management

33 BIOS stands for:

A. Binary Input Output System
B. Basic Input Output System
C. Basic Internal Operating System
D. Binary Internal Output System

34 Which type of language is closest to the hardware?

A. High-level language
B. Assembly language
C. Machine language
D. Query language

35 The process of finding and fixing errors in a program is called:

A. Compiling
B. Linking
C. Debugging
D. Loading

36 Which component acts as a traffic controller for Input/Output devices?

A. I/O Manager / Device Driver
B. Compiler
C. Text Editor
D. Bootloader

37 Which of the following is a disadvantage of Machine Language?

A. It is slow to execute
B. It is difficult to write and understand for humans
C. It requires a translator
D. It cannot access hardware directly

38 In the context of files, what is an 'Extension'?

A. The physical length of the file on disk
B. A suffix at the end of a filename indicating the file type
C. A hardware cable
D. A type of directory

39 Multitasking refers to:

A. Using multiple monitors
B. Executing multiple tasks/processes concurrently
C. Using multiple keyboards
D. Connecting to the internet

40 Which part of the computer architecture executes the instructions provided by the OS?

A. Hard Disk
B. CPU (Central Processing Unit)
C. Monitor
D. Mouse

41 If a program works on one machine but not another due to hardware differences, it lacks:

A. Efficiency
B. Portability
C. Reliability
D. Security

42 A 'path' in an Operating System refers to:

A. The physical cable connecting devices
B. The route/location of a file or directory in the file system
C. The speed of the processor
D. The booting sequence

43 Which is faster to develop software in?

A. Machine Language
B. Assembly Language
C. High-Level Language
D. Binary Code

44 The Master Boot Record (MBR) is usually located at:

A. The last sector of the hard disk
B. The first sector of the hard disk
C. In the RAM only
D. In the CD-ROM drive

45 What is a 'Process' in OS terminology?

A. A program in execution
B. A static file on the hard drive
C. A hardware component
D. A type of compiler

46 Which type of interface relies on graphical elements like icons and windows?

A. CLI (Command Line Interface)
B. GUI (Graphical User Interface)
C. Assembly Interface
D. Punch Card Interface

47 Java uses a two-step translation process involving:

A. Assembler and Linker
B. Compiler and Interpreter
C. Loader and Debugger
D. Editor and Shell

48 Which of the following is true about Assembly Language?

A. It is machine-independent
B. It is a high-level language
C. It is machine-dependent
D. It does not require a translator

49 Cold Booting refers to:

A. Restarting a computer that is already on
B. Starting a computer from a powered-off state
C. Cooling down the CPU
D. Installing a new OS

50 The 'User Mode' and 'Kernel Mode' distinguish between:

A. Different types of keyboards
B. Privilege levels for executing instructions
C. Screen brightness settings
D. Internet connection speeds