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

Multiple choice technology databases
  1. The cursor is moved to another row

  2. The row the cursor is on is deleted by the application

  3. The row the cursor is on is deleted by another application

  4. The row the cursor is on needs to be updated by another application

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Under Cursor Stability isolation level, a lock is held only while the cursor remains on the current row. When the application deletes that row, the lock must be released as the row no longer exists for the cursor to point to. Option A describes normal cursor movement, option C and D involve operations by other applications which would require different locking behaviors.

Multiple choice technology databases
  1. The cursor is moved to another row

  2. The row the cursor is on is deleted by the application

  3. The row the cursor is on is deleted by another application

  4. The row the cursor is on needs to be updated by another application

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Under the Cursor Stability (CS) isolation level, DB2 acquires a lock on the row currently positioned by the cursor. When the application deletes the row, the lock is held until a commit or rollback occurs to ensure transaction integrity.

Multiple choice technology databases
  1. Uncommitted Read

  2. Cursor Stability

  3. Read Stability

  4. Repeatable Read

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Repeatable Read (RR) isolation level locks all rows that are scanned to build the result set, preventing other transactions from modifying those rows. Uncommitted Read (UR) doesn't lock rows, Cursor Stability (CS) locks only the current row, and Read Stability (RS) locks only rows that are actually returned, not all scanned rows.

Multiple choice technology databases
  1. Uncommitted Read

  2. Cursor Stability

  3. Read Stability

  4. Repeatable Read

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Repeatable Read is the strictest standard isolation level that prevents phantom reads by locking all rows scanned during query execution. Unlike Read Stability (which locks only rows actually returned) or Cursor Stability (which locks only the current row), Repeatable Read locks the entire row set used to build the result. This ensures that if the same query is re-executed within the transaction, it returns identical results because no other transaction can modify, insert, or delete rows that would affect that result set.

Multiple choice technology databases
  1. Tablespaces

  2. Buffer pools

  3. Tables

  4. Rows

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

DB2 locking mechanisms can lock tables, rows, and other database objects at various granularities. Buffer pools are memory cache areas used for data page storage and are not database objects that can be locked - locking applies to logical data structures (tables, rows), not memory management structures.

Multiple choice technology operating systems
  1. grep '\' filename

  2. grep \\ filename

  3. grep '\\' filename

  4. grep "\" filename

Reveal answer Fill a bubble to check yourself
A,B,D Correct answer
Explanation

To search for a literal backslash character with grep, you need proper escaping. Single quotes (A) need 4 backslashes, single quotes with escape (B) need 8 backslashes due to shell processing, and double quotes (D) need 3 backslashes. Option C with 6 backslashes is incorrect.

Multiple choice technology programming languages
  1. SYS1.LINKLIB

  2. SYS1.SOTREPROC

  3. SYS1.CATPROC

  4. SYS1.PROCLIB

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

SYS1.LINKLIB contains the load modules (executable programs) for IBM system utilities and commonly-used programs. Option B appears to be a typo for SYS1.SYSPROC which contains cataloged procedures. SYS1.PROCLIB contains JCL procedure definitions, not load modules.

Multiple choice technology programming languages
  1. EXEC

  2. SYSABEND

  3. JOBLIB

  4. SYSPRINT

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

JOBLIB is a job-level statement that defines a private library for the entire job and cannot appear within a PROC. PROCs can contain EXEC statements (for steps), DD statements (like SYSPRINT for output, SYSABEND forabend dumps), and other step-level elements. JOBLIB must precede the first EXEC statement in a job.

Multiple choice technology programming languages
  1. TYPRUN=COMPILE

  2. TYPRUN=ERRFREE

  3. TYPRUN=HOLD

  4. TYPRUN=SCAN

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

TYPRUN=SCAN performs syntax checking without executing the job, useful for validating JCL before production submission. COMPILE compiles and executes the program. HOLD holds the job in the input queue without execution. ERRFREE is not a valid TYPRUN parameter value.

Multiple choice technology mainframe
  1. DFHEIBDK, DFHCOMMAREA

  2. DFHEIBLK, DFHCOMNAREA

  3. DFHEEBLK, DFHCOMMAREA

  4. DFHEIBLK, DFHCOMMAREA

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The CICS translator inserts the EXEC Interface Block (DFHEIBLK) and the Communication Area (DFHCOMMAREA) into the Linkage Section of a COBOL program to handle CICS system communication and data passing.

Multiple choice technology operating systems
  1. Multi user

  2. Multi tasking

  3. Open source

  4. All of the above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Linux embodies all three characteristics: it is a multi-user operating system that allows multiple users to interact simultaneously, a multitasking system that can execute multiple processes concurrently, and open-source software with freely available source code. These features are fundamental to Linux's design philosophy. The correct answer is D because it encompasses all these aspects, not just one.

Multiple choice technology operating systems
  1. A combination of a free software kernel with Linux apps

  2. A fancy way of identifying new distros

  3. Official name of the complete Linux OS according to Richard Stallman

  4. Linux distro meant for beginners

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

GNU/Linux is the official name promoted by Richard Stallman and the Free Software Foundation to emphasize that the complete operating system consists of the GNU system utilities combined with the Linux kernel.