Information Technology Tools and Network Basics Theory Question
Introduction to Operating System
What is the primary purpose of an operating system (OS) in a computer system ?
Displaying advertisements
Managing hardware resources
Providing internet connectivity
Running video games
Answer : B
Explain: An O.S is the core software components of computer system, that manages the hardware and applications.
Which of the following is NOT a function of an operating system ?
Memory management
File management
Application development
Process scheduling
Answer : C
Explain: An operating system is a software which performs all the basic tasks like file management, memory management, process management, handling input and output.
The layer between hardware and user-level software in an operating system is called :
Application layer
Kernel
User layer
Shell
Answer : B
Explain: Kernel is central component of an operating system that manages operations of computer and hardware. It is like a bridge between user and application.
The core of linux operating system is ?
Shell
Hardware
Kernel
Application Program
Answer : C
Explain: The Linux kernel is the software that interfaces directly with the computer hardware.
Which type of operating system allows multiple users to run programs at the same time and provides multi-user support ?
Single-user operating system
Multi-user operating system
Batch operating system
Real-time operating system
Answer : B
Explain: A multi-user operating system is an operating system that allows multiple users to access underlying hardware resources simultaneously.
What is the purpose of virtual memory in an operating system ?
Increase the physical size of RAM
Create virtual machines for testing
Manage system files
Extend the available memory by using disk space
Answer : D
Explain: Virtual Memory is a storage allocation method in which secondary memory can be used as it is the part of the main memory which increase the capacity of main memory.
An interpreter converts the high-level programming code into machine code :
All at once before execution
Line by line during execution
After the program is compiled
Only for debugging purposes
Answer : B
Explain: Interpreter converts the program in line by line, if error occur in line it stop on it.
After a program is compiled, the resulting machine code is executed by :
The CPU directly
compiler
interpreter
operating system
Answer : A
Explain: After program comiple with the help of interpreter or compiler it goes to CPU.
The language that can be understood by a computer ?
Machine language
High Level Language
Low Level Language
Assembly Language
Answer : A
Explain: Machine language is directly understand by computer which is in for of 0 or 1.
Which of the following operating system reads and reacts in actual time ?
Batch O.S.
Quick Response O.S.
Real Time O.S.
Time Sharing
Answer : C
Explain: Real-time operating systems is an O.S with deadline. It completes it task in a given time. Example : Airline traffic control systems, Command Control Systems, Airlines reservation system, Heart Pacemaker etc.
In Unix, what command is used to display the current directory ?
showdir
pwd
dir
cd
Answer : B
Explain: pwd stands for Print Working Directory.The pwd command writes to standard output the full path name of your current directory.
In operating system, each process has its own _______
pending alarms, signals, and signal handlers
open files
address space and global variables
All of above
Answer : D
Explain: In Operating Systems, each process has its own address space which contains code, data, stack, and heap segments or sections.
What is Linux ?
multi user, multitasking
single user, multitasking
single user, single tasking
multi user, single tasking
Answer : A
Explain: Linux is a free, open source operating system, released under the GNU General Public License (GPL)
Which is not an operating system service given to users ?
I/O
Process management
Compilation
File mangement
Answer : C
Explain: Compilation is the process the computer takes to convert a high-level programming language into a machine language that the computer can understand.
Ready queue in OS is maintained by ___
Array
Stack
Linked List
Tree
Answer : C
Explain: In an operating system, a "ready queue" is a data structure used to manage and organize processes that are ready to be executed by the CPU. A linked list is a collection of nodes, where each node contains two components: the actual data (in this case, a process) and a reference (or pointer) to the next node in the list.