Computer Knowledge
Operating Systems
1,344 Questions
Test your computer knowledge with these questions on operating systems. The content covers various platforms including Unix, Linux, Windows, Android, and Macintosh. These questions are commonly asked in the computer knowledge sections of banking and government exams.
Unix emulatorsLinux distributionsAndroid software stackMacintosh operating systemsWindows OS versionsSymbian OS history
Operating Systems Questions
-
1 A dummy device to represent memory
-
2 A dummy device to represent the processor
-
3 A dummy device to provide infinite number of zeros
-
4 None
C
Correct answer
Explanation
/dev/zero is a special device file that provides an infinite stream of null (zero) bytes when read. It is commonly used for initializing files with zeros, testing buffer operations, or creating memory dumps. The device always returns zeros and never reaches end-of-file.
-
1 A memeory shared between kernel & devices
-
2 A memory shared between root user and ordinary user
-
3 A memory shared across processes
-
4 Harddisk
C
Correct answer
Explanation
Shared memory is an Inter-Process Communication (IPC) mechanism that allows multiple processes to access the same segment of physical memory, providing a fast way to exchange data without copying it between processes.
-
1 They never releases the memory utilized
-
2 They release the memory but kernel does not use them
-
3 Since they are running
-
4 It’s a false statement
B
Correct answer
Explanation
Process virtual memory size can grow due to heap allocation and memory-mapped files, but the kernel does not typically shrink a process's virtual memory space even when memory is freed. This is because memory is released back to the process's internal free list, not necessarily to the system. Option B captures this concept.
-
1 Use getmemory()
-
2 Use sysctl()
-
3 Use freemem()
-
4 Use malloc()
B
Correct answer
Explanation
In Unix-like systems, sysctl() is a system call used to examine and modify kernel parameters, including hardware information like total physical memory. getmemory and freemem are not standard POSIX system calls for this purpose.
A
Correct answer
Explanation
In SAP environments using an Oracle database, the default listener port is often configured as 1527. This differs from the standard Oracle default of 1521 to avoid conflicts and follow SAP's specific installation standards.
-
Ken Thompson
-
Dennis Ritchie
-
John Crosswhite
-
Douglas McIlroy
C
Correct answer
Explanation
The original Unix operating system was developed at Bell Labs by Ken Thompson, Dennis Ritchie, Douglas McIlroy, and others. John Crosswhite was not part of this core development team, making him the correct answer.
-
System V at AT&T lab
-
BSD (Berkeley Software Distribution)
-
Solaris at Sun Microsystems
-
MAC OS X at Apple
-
All of the above
E
Correct answer
Explanation
System V (AT&T), BSD (Berkeley), Solaris (Sun), and macOS are all Unix or Unix-like operating systems. System V and BSD represent the two main historical Unix lineages that influenced most modern variants.
-
Putty
-
Secure CRT
-
Telnet
-
Exceed
-
Only First and Second
-
First,Second and Third
A,B,C,D
Correct answer
Explanation
Putty, SecureCRT, Telnet clients, and Exceed are all tools used to connect to and interact with Unix systems. They provide terminal emulation or X server capabilities for accessing Unix environments from other platforms.
-
Putty
-
Secure CRT
-
Telnet Connection
-
Exceed
-
First,Third,Fourth
-
First Two only
A,B,C,D
Correct answer
Explanation
PuTTY is a terminal emulator for SSH/Telnet. SecureCRT is another terminal emulator. Telnet is a protocol with terminal clients. Exceed is an X Window System emulator. All four are terminal-related software used to connect to Unix systems or display Unix applications.
-
System V at AT&T lab.
-
BSD (Berkeley Software Distribution)
-
Solaris at Sun Microsystems
-
MAC OS X at Apple
-
Only first two
-
First Three only
A,B,C,D
Correct answer
Explanation
System V (AT&T) and BSD (Berkeley) are the two main historical Unix lineages. Solaris is a Unix operating system derived from System V. macOS is Unix-certified and based on BSD. All four are Unix or Unix-based operating systems.
B
Correct answer
Explanation
Linux is an operating system kernel with many distributions. There are hundreds of Linux distributions including Ubuntu, Fedora, Debian, Red Hat, Arch, and many more. Each distribution packages the Linux kernel with different software, configuration, and package management systems.
-
Create a job schedule that runs every Sunday. Assign weekly tasks to this schedule. Create a
-
Create a job for each task that runs once a day. Use a Transact-SQL statement to check the
-
Create a job schedule that runs once a day. Assign jobs to this job schedule. If the day is
-
Create a job for each task that runs once a week on Sunday. Add a second job schedule that
A
Correct answer
Explanation
SQL Server Agent supports reusable job schedules. Create separate schedules for different frequencies (weekly Sundays, monthly start), then assign jobs to appropriate schedules. This is more efficient than creating individual schedules for each job.
-
RESTORE LABELONLYFROM DISK = N\Server1\Backup\DB_Backup.bak
-
RESTORE HEADERONLYFROM DISK = N\Server1\Backup\DB_Backup.bak
-
RESTORE VERIFYONLYFROM DISK = N\Server1\Backup\DB_Backup.bak
-
RESTORE DATABASE MSDBFROM DISK = N\Server1\Backup\DB_Backup.bak
B
Correct answer
Explanation
RESTORE HEADERONLY reads backup file metadata without restoring. It lists all database backups contained in a backup set, including database names - perfect for identifying which backup file contains msdb when filenames are unclear.
-
Execute DBCC CHECKFILEGROUP for each filegroup.
-
Execute DBCC CHECKCATALOG.
-
Execute DBCC CHECKDB.
-
Execute DBCC CHECKTABLE for each table.
C
Correct answer
Explanation
DBCC CHECKDB is the most comprehensive integrity check command for SQL Server databases. It verifies allocation, structural, and logical integrity of all database objects including system catalogs in a single operation, making it the right choice after a SAN failure that could affect the entire database storage.
-
Standard
-
Web
-
Enterprise
-
Datacenter
A,B,C,D
Correct answer
Explanation
Windows Server 2003 was available in multiple editions to serve different market needs. Standard Edition for general server use, Web Edition optimized for web serving, Enterprise Edition for larger organizations with advanced features, and Datacenter Edition for high-end server consolidation and critical applications.