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
  1. Mindows

  2. Linux

  3. Lindows

  4. Windowes

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

Lindows was a Linux distribution created in 2001 that aimed to combine Linux with Windows-like interface and application compatibility. It was designed as a Windows clone before being renamed Linspire due to legal issues with Microsoft.

Multiple choice technology
  1. name=

  2. name=''

  3. name=""

  4. all of the above

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

All three methods set a variable to null/empty: name= (no value), name='' (empty single quotes), name="" (empty double quotes). In shell scripting, these all result in an empty string value, effectively NULL.

Multiple choice technology programming languages
  1. Longhorn

  2. Monad

  3. Cairo

  4. Whistler

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

To answer this question, the user needs to have knowledge about the pre-release history of Windows PowerShell.

The correct answer is:

B. Monad

Explanation:

Before its formal announcement, Windows PowerShell was code-named "Monad." Monad was a project that Microsoft had been working on for several years. It was designed to be a task-based command-line shell and scripting language that would make it easier to automate system administration tasks. In 2006, Microsoft announced Monad as Windows PowerShell, which became its official name. Option B is the correct answer.

A. Longhorn: Longhorn was the code name for Windows Vista, which was released in 2006, the same year PowerShell was formally announced.

C. Cairo: Cairo was a code name for a project that Microsoft worked on in the early 1990s. It was intended to be a future version of Windows NT with an advanced object-oriented user interface and a new file system. However, the project was cancelled, and its technologies were incorporated into other Microsoft products.

D. Whistler: Whistler was the code name for Windows XP, which was released in 2001. It was the successor to Windows 2000 and was the first version of Windows to use the Windows NT kernel for both consumer and business versions of the operating system.

Multiple choice technology programming languages
  1. True

  2. False

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

PowerShell's redirection operators (like > and >>) can create new files but will not automatically generate non-existent parent directories. Attempting to write to a path without the directory already existing will fail and result in a directory not found exception.

Multiple choice technology testing
  1. 2

  2. 3

  3. 1

  4. Syntax Error

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

The batch script contains a syntax error on the line '%var%+=1'. This is not valid batch syntax - arithmetic operations require 'set /a var=%var%+1'. Additionally, 'set var = 1' creates a variable with a space in the name, and 'echo var' prints the literal string 'var' rather than the variable's value.

Multiple choice technology testing
  1. Prints numbers from 6 to 9 into c:\test.txt

  2. Prints numbers from 5 to 10 into c:\test.txt

  3. Prints only 10 to c:\test.txt

  4. Infinite loop

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

The loop initializes number=5, then increments it before each check. When number becomes 6 through 9, it echoes these values to the file. When number reaches 10, the condition is true and execution jumps to :label, exiting the loop. Thus only numbers 6, 7, 8, and 9 are written to c:\test.txt.

Multiple choice technology
  1. External Tables

  2. Database Tables

  3. System Tables

  4. Virtual tables

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

JIT statistics are automatically generated by Netezza during query execution on regular database tables to help the optimizer make better decisions. External tables, system tables, and virtual tables do not have JIT statistics generated for them.

Multiple choice technology architecture
  1. True

  2. False

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

IIS (Internet Information Services) is a web server software developed by Microsoft exclusively for Windows operating systems. It cannot be installed on Linux as it is tightly integrated with Windows architecture. On Linux, alternative web servers like Apache HTTP Server or Nginx are used instead.

Multiple choice technology operating systems
  1. Hello World!Hello World!

  2. Hello World!

  3. World!Hello

  4. error

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

fork() creates a child process that duplicates the parent. Both processes continue execution from after the fork() call, so each executes the printf statement. The output appears twice: "Hello World!Hello World!". The order may vary but both processes print.