OS MCQ
1. Punch card is used in which operating system?
- Distributed Operating System
- Batch Operating System
- Time-Sharing Operating Systems
- Network Operating System
Correct Answer
In Batch operating system, the user cannot access or interact with the computer directly. Each user prepares their job offline using a punch card or other device, then submits the job to the computer operator. Jobs with similar functions are grouped together in the batch operating system. The batch systems can be shared by multiple users. For eg. Payroll System, Bank Statements, etc.
A Punch card is a straightforward piece of paper stock that can store data in the form of small punched holes that are placed strategically so that computers or other equipment can read them. It is a legacy of early computer programming that was in use before the various modern data storage innovations.
2. DMA in operating system stands for ________
- Direct Memory Allocation
- Direct Module Access
- Direct Memory Access
- Distinct Memory Access
Correct Answer
DMA in operating system stands for Direct Memory Access. It is a feature that is provided by the computer bus architecture and allows some hardware parts to access the main memory without using the (CPU) (central processing unit). DMA allows sending the data directly to the computer motherboard memory from the attached devices.
Without DMA, while using programmed input/output, the CPU is typically completely occupied for the duration of read and write operation, making the CPU unavailable to complete other tasks. Whereas, With DMA, the CPU begins the transfer first, does other operations during an ongoing transfer, and then waits for an interrupt from the DMAC (DMA controller) after the operation is finished.
3. Which is not a basic function of operating system?
- Job Scheduling
- Data Management
- Memory Management
- Job Control
Correct Answer
Job Control is not a basic function of an operating system. Job scheduling, data management, and memory management are the most important functions of the operating system. Job control is not a capability of the operating system. An Operating System (OS) acts as an interface between computer hardware and computer user. It handles the execution of all types of programs.
An operating system is a software that handles all of the basic functions like:
- Memory Management: Management of the Primary Memory or Main Memory.
- Security: Prevents unauthorized access to data and programs.
- Device Management: Decides which process gets the device when and for how long.
- Job accounting: Keeping track of time and resources for various users and jobs.
- File Management: Keeps track of location, information, status, uses etc.
- Processor Management: Keeps track of the processor and the status of a process.
- Error detecting aids: Production of traces, dumps, error messages, and other aids.
- Control over system performance: Monitors the health of the entire system to improve performance.
- Coordination between other software and users: Coordinate and assign compilers, interpreters, assemblers, etc to the various users.
4. What are the two basic types of operating system?
- Batch and Timesharing
- Batch and Interactive
- Memory Management
- Sequential and Direct
Correct Answer
The two basic types of operating system are Batch operating system and Interactive operating system. In Batch operating system, the user cannot access or interact with the computer directly. Each user prepares their job offline using a punch card or other device, then submits the job to the computer operator. Jobs with similar functions are grouped together in the batch operating system. The execution of these job groups is done simultaneously and as a batch. In an Interactive operating system, the user and the computer are in direct communication with one another. In general, Interactive operating systems are used by all personal computers. In this type of operating system, the user inputs a command, and the system executes the command as instructed.
5. What operating system did Google develop?
- Android operating system
- HarmonyOS
- IOS operating system
- None of the above
Correct Answer
The Android operating system is a mobile operating system that was developed by Google that is widely used for touchscreen devices, mobile phones, and tablets. Android Inc., a Silicon Valley-based software startup, developed this operating system, before being acquired by Google in 2005. Android is packaged with proprietary software when sold on cell devices, despite the fact that its source code is made available in an open-source format to help push open standards across mobile devices. Google's ecosystem is used by about 70% of Android-powered handsets; other Android ecosystems and forks include Fire OS (created by Amazon) and LineageOS. After Android, iOS is the second-most popular and widely used mobile operating system which is apple’s mobile operating system developed by Apple Inc.
6. Which company developed the mac operating system?
- Microsoft
- IBM
- Apple
Correct Answer
The Macintosh (Mac) operating system is developed by Apple Inc.. The family of Mac operating systems produced by Apple Inc. has a lot of operating systems based on the graphical user interface that the company has created since 1984 for use with the Macintosh series of PCs (Person Computers) and all the related system software Apple developed for the compatibility of third-party systems.
Macintosh os is based on UNIX and only compatible with Apple computer devices. Mac Operating system was founded by Steve Jobs, Ronald Wayne, and Steve Wozniak in April 1976. After Windows, Mac os is the second-most popular and widely used operating system.
7. Which software performs prime task of loading the operating system?
- Compiler
- Loader
- Linker
- None of the above
Correct Answer
A loader is the major component of an operating system in a computer that is responsible for loading programs and libraries, which is the most essential part during the startup phase of running a program. It prepares the libraries and programs for execution by loading them into the main memory. Depending on the size of the program that needs to run, loading involves reading the contents of the executable file, which contains the program's instructions, and then performing other preparations that are necessary to get the executable ready to run. This entire process can take a few seconds to several minutes. Once loading is finished, the operating system starts the program by giving control to the loaded program code.
8. Which operating system raspberry pi has?
- OpenBSD
- NetBSD
- Linux
- All of the above
Correct Answer
There are many operating systems that are available for the Raspberry Pi. The Raspbian OS is the most well-known of all the Raspberry Pi compatible operating systems, despite the majority of them being Linux distributions, taking into consideration community support, architecture, and reliability. Raspberry Pi operating system (formerly known as Raspbian) is a Debian-based operating system for Raspberry Pi. Raspbian was the first version of the Raspberry Pi operating system that is developed by Peter Green and Mike Thompson. Some widely used operating system that runs on Raspberry Pi is:
- Ubuntu
- Manjaro
- Kano OS
- Kali Linux
- OpenELEC, and many more.
9. Name any one multi user operating system.
- MS-DOS
- LINUX
- PC-DOS
- None of the above
Correct Answer
Linux is a multiuser operating system as several users can simultaneously use system resources like memory and RAM at the same time.An operating system that allows several users to access a single system running by a single operating system is known as a multi-user operating system. they must manage the tasks that the multiple users connected to them require, which is sometimes a very complex task because their operating systems are responsible for allocating resources to multiple processes in a controlled environment.
10. Max priority of thread is
- 11
- 10
- 12
- 24
Correct Answer
The User-defined property will be in the range of 1 to 10.So the answer will be 10.There are 3 properties of the Thread class in Java-
- NORM_PRIORITY- It is the default property of the thread. The normal priority of a thread is 5.
- MAX_PRIORITY- It is the maximum property of the thread. The max priority of a thread is 10.
- MIN_PRIORITY- It is the minimum property of the thread. The min priority of a thread is 1.
11. Page faults are said to occur in__________________
- a deadlock situation
- the case when a page is in the system’s RAM
- the case when a page is not in the system’s RAM
- the case when the segmentation starts
Correct Answer
Page faults are said to occur in the case when a page is not in the system’s RAM.A page fault is an interruption that occurs when a system software tries to access the information or data in its address space but not in the system’s random access memory.If the requested page is not available in the main memory, or if it is a dirty page (pages that were updated, need to be rewritten to disc), then the page fault exception occurs.Pages in primary memory that have been updated while writing data to the system’s memory are known as “dirty” pages, the changes must be pushed to the system’s memory before being released.It’s a page hit if the required page is present in the main memory and it’s not a dirty page.
12. Every process in an operating system has its own____
- address space and global variables
- open files
- pending alarms, signals and signal handlers
- all of the above
Correct Answer
Correct answer is 4. Each process in an operating system has a unique address space that contains code, data, stack, and heap segments. Each process also keeps track of all pending alarms, signals, and signal handlers, as well as the files that the process opens.
13. Operating system is an example of which software?
- application
- system
- communication
- user created
Correct Answer
System software is a software that acts as a interface between user application and hardware. System softwares manages hardware and provide user applications a platform to run and use hardware if needed.
14. Operating system maintains the page table for____
- each process
- each thread
- each instruction
- each address
Correct Answer
Each process has a page table which contains mapping between page number and frame number. Page table is used in converting logical address generated by the CPU to the physical address in the RAM.
15. Operating system is a collection of____
- Input-output devices
- Hardware components
- Software routines
- All of these
Correct Answer
Operating system is a collection of software routines that manages computer hardware and provide a platform for the user applications to run and use the hardware if needed.
16. Core of linux operating system is____
- Application program
- Shells
- Hardware
- Kernel
Correct Answer
Kernel is the heart of operating system which has direct access to the hardware and it performs most important tasks.
17. The multiprogramming operating system's logical extension is____
- Time-sharing
- Multi-tasking
- Individual programming
- Both a and b
Correct Answer
In multi-programming, context switch happens when current process goes to wait state but in multi-tasking context switch depends on the time quantum which is good extension from multi-programming.
18. Network operating system runs on____
- server
- every system in the network
- both server and every system in the network
- none of the mentioned
Correct option is a.
Correct Answer
Network Operating System runs on a server and gives the server the capability to run network functions like manage data and applications. Network Operating System also manages users connected across a network and provide them access to shared files and other resources.
19. Macintosh operating system is a product of____
- IBM
- Apple
- Samsung
- Microsoft
Correct Answer
Macintosh operating system is a product of Apple.
20. MAC operating system is developed by which company?
- IBM
- Apple
- Samsung
- Microsoft
Correct Answer
MAC operating system is developed by Apple.
21. Resource management task of the operating system can be done via____
- time division multiplexing
- space division multiplexing
- both a) and b)
- none of the above
Correct Answer
Resource management means managing computer resources like CPU cores, memory etc and its purpose is to effectively use the resources and increase their utilisation. Resource management can be done through scheduling algorithms which are based on time and space division multiplexing.
22. Which type of software is an operating system?
- application
- system
- communication
- user created
Correct Answer
System software is a software that acts as a interface between user application and hardware. System softwares manages hardware and provide user applications a platform to run and use hardware if needed.
23. For real time operating system interrupt latency should be____
- minimal
- maximum
- zero
- dependent on the scheduling.
Correct Answer
Real time OS should offer error free computations within tight-time boundaries because they are used in areas like Air Traffic control system, etc where response should be accurate and quick, therfore latency should be minimal.
24. The operating system unix is a trademark of____
- Motorola
- Aplle
- Microsoft
- BELL laboratories
Correct Answer
The operating system unix is a trademark of BELL laboratories.
25. Which of the following operating system runs on the server?
- Distributed OS
- Batch OS
- Real-time OS
- Network OS
Correct Answer
Network Operating System runs on a server and gives the server the capability to run network functions like manage data and applications. Network Operating System also manages users connected across a network and provide them access to shared files and other resources.
26. The operating system work between _____
- User and Computer
- Network and User
- One user to another user
- All of the these
Correct Answer
Operating system is a system software that acts as a interface between user application and hardware.
27. Which operating system is non interactive?
- Multi-tasking OS
- Multi-user OS
- Batch processing OS
- Multi-programming OS
Correct Answer
In Batch processing OS, there is an operator who sort the similar jobs together into batches and assigns them to the CPU, therefore this OS does interact with the computer directly.
28. What is called the starting up on operating system?
- Starting
- Entering
- Formatting
- Booting
Correct Answer
Booting is a process of loading OS into main memory i.e RAM.
29. Operating system kernel must be located in____
- /
- /boot
- either in / or in /boot
- none of the mentioned
Correct Answer
Kernel is also called the heart of OS that resides in the memory to facilitate software and hardware interaction.
30. Which of the following is not a multitasking operating system?
- MS-DOS
- Windows 7
- Unix
- Linux
Correct Answer
MS-DOS is not a multitasking operating system.
31. Which bird is used as the official mascot to the linux operating system?
- Penguin
- Sparrow
- Eagle
- Owl
Correct Answer
A penguin named Tux is used as the official mascot of the linux operating system.
32. Aging in operating system means____
- tracking the contents of the cache
- tracking the pages that are currently in memory
- tracking the number of times a certain page is referenced
- increasing the priority of jobs to ensure their completion in a limited amount of time
Correct Answer
Aging ensures that all the jobs should terminate in a finite time, therefore no starvation takes place.
33. What is the maximum amount of memory supported by a 32-bit windows operating system?
- 32 bytes
- 2^32 bytes (4 GB)
- 32 GB
- 4 MB
Correct Answer
1bit can reference 1byte in the memory, therefore, 32 bits can reference 2^32 bytes or 4GB in the memory.
:::