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
-
a) They never releases the memory utilized
-
b) They release the memory but kernel does not use them
-
c) Since they are running
-
d) It’s a false statement
B
Correct answer
Explanation
Processes can release memory back to the kernel, but the released memory remains within the process's address space for potential reuse rather than being returned to the system. This is due to how memory allocators work - they keep freed memory for future allocations by the same process to avoid system call overhead.
-
a) select() and poll() have no differences
-
b) poll() is event driven while select() is not
-
c) select() is event driven while poll() is not
-
d) None
B
Correct answer
Explanation
While both monitor multiple file descriptors, poll() is event-driven and scales better because it uses a structure array instead of bitmasks, whereas select() requires rebuilding the descriptor sets every time.
-
a) Use getmemory()
-
b) Use sysctl()
-
c) Use freemem()
-
d) Use malloc()
B
Correct answer
Explanation
sysctl() is the system call used to query and modify kernel parameters in BSD-derived systems including macOS. It can retrieve memory information through hardware parameters (e.g., HW_PHYSMEM). On modern Linux, reading /proc/meminfo is more common, but sysctl() remains valid. The other functions are not standard system calls for memory queries.
-
Debian
-
Fedora
-
SUSE
-
Yellow Devil
D
Correct answer
Explanation
Debian, Fedora, and SUSE are all well-known Linux distributions. Yellow Devil is not a real Linux distribution - it's either made up or refers to something else entirely (possibly a confused reference to Yellow Dog Linux, which was a PPC distribution).
-
a) Use getmemory()
-
b) Use sysctl()
-
c) Use freemem()
-
d) Use malloc()
B
Correct answer
Explanation
On Unix-like systems (such as BSD and macOS), the sysctl() system call or command is used to retrieve system hardware and kernel configuration parameters, including the total physical memory.
-
The official name of the complete Linux OS according to Richard Stallman
-
Collection of open softwares and Linux kernel
-
Registered trade mark of linux
-
None of above all
A
Correct answer
Explanation
Richard Stallman and the Free Software Foundation advocate using 'GNU/Linux' to refer to the complete operating system, emphasizing that the GNU project provides most of the userland tools while Linux is just the kernel. This naming reflects the philosophical stance about giving credit to the GNU project's contribution.
C
Correct answer
Explanation
XUL (XML User Interface Language) is a markup language developed by Mozilla for building user interfaces, not a Linux GUI desktop environment. Motif, KDE, and GNOME are actual Linux GUI systems.
B
Correct answer
Explanation
The statement is false. Linux can absolutely be installed on a system that already has MS Windows Vista. The most common approach is dual-booting, where the hard drive is partitioned and both operating systems coexist - the user chooses which to boot at startup. Alternatively, Linux can be installed within Windows using WSL (Windows Subsystem for Linux) on newer Windows versions, though Vista is quite old. Another option is replacing Vista entirely with Linux. The claim that it's "not possible" is incorrect.
A
Correct answer
Explanation
Windows XP Service Pack 3 (SP3) was the final service pack released for Windows XP. It included all previous updates and security patches, and was the last major update before Microsoft ended support for the operating system.
-
chpasswd
-
passwd
-
chpass
-
password
B
Correct answer
Explanation
The 'passwd' command is the standard Unix utility for changing user passwords and related finger information. chpasswd exists but is for batch password changes by root, chpass is BSD-specific, and 'password' is not a valid command.
A
Correct answer
Explanation
tar can write to any device or file, including floppy disks. The command 'tar cvf /dev/fd0 files' writes files to floppy drive 0. tar treats devices as files, making it suitable for backups to removable media like floppies or tapes.
A
Correct answer
Explanation
The tar command creates archives that can be written to any storage medium including floppy disks, hard drives, or tapes. While floppies are obsolete technology, tar is fundamentally capable of writing archives to block devices including floppies. The claimed answer is technically correct though the context is dated.
C
Correct answer
Explanation
Android's runtime environment originally used the Dalvik Virtual Machine, designed specifically for mobile devices with limited resources. Dalvik uses register-based architecture (unlike JVM's stack-based architecture) and runs dex (Dalvik Executable) bytecode. Modern Android versions have replaced Dalvik with ART (Android Runtime), but the question reflects the historical architecture.