Computer Science MCQS

Computer Science MCQ with detailed explanations for students & freshers preparing for entrance exams, various tests, interviews, competitive exams like GATE exam, interview, competitive examination and entrance exam.

To access the services of the operating system, the interface is provided by the _

A. a) Library
B. b) System calls
C. c) Assembly instructions
D. d) API
Correct answer is: B. b) System calls
System calls are the interface between an application and the operating system. They are essentially functions provided by the OS that can be called by programs to request services like file access, memory allocation, process creation, etc. Think of them as the gateway to the OS's core functionalities.

In Operating Systems, which of the following is/are CPU scheduling algorithms?

A. a) Priority
B. b) Round Robin
C. c) Shortest Job First
D. d) All of the mentioned
Correct answer is: C. c) Shortest Job First
An operating system (OS) is the fundamental software that manages a computer's hardware and software resources. It serves as an intermediary between the user and the computer, providing a user interface and controlling the execution of applications.

Core Functions of an Operating System:

Resource Management:

Manages the CPU, memory, storage, and input/output devices efficiently.

Allocates resources to different processes and applications.

Handles resource sharing and conflict resolution.

Process Management:

Controls the creation, execution, and termination of processes.

Manages the process lifecycle, including states like running, waiting, and ready.

Implements scheduling algorithms to determine which process gets the CPU.

Memory Management:

Allocates and deallocates memory to processes.

Handles memory protection to prevent unauthorized access.

Implements memory swapping and paging techniques.

File Management:

Organizes and stores data on storage devices.

Provides file creation, deletion, reading, and writing operations.

Implements file systems to structure and manage files.

Input/Output (I/O) Handling:

Manages communication between the computer and external devices.

Handles data transfer and device control.

Provides buffering and caching mechanisms for efficient I/O operations.

User Interface:

Provides a way for users to interact with the computer.

Can be command-line, graphical, or touch-based.

Handles user input and displays system information.

In essence, the operating system acts as the conductor of a complex orchestra, ensuring that all hardware and software components work together seamlessly to deliver the desired functionality to the user.

What is the main function of the command interpreter?

A. a) to provide the interface between the API and application program
B. b) to handle the files in the operating system
C. c) to get and execute the next user-specified command
D. d) none of the mentioned
Correct answer is: C. c) to get and execute the next user-specified command
A command interpreter translates user commands into actions for the operating system. It's the bridge between the user and the computer, allowing users to interact with the system directly.

What is an operating system?

A. a) interface between the hardware and application programs
B. b) collection of programs that manages hardware resources
C. c) system service provider to the application programs
D. d) all of the mentioned
Correct answer is: D. d) all of the mentioned
An operating system is the core software that manages a computer's hardware and software resources, acting as an intermediary between users and the machine.

Which of following is HTML tag

A. (A) # and #
B. (B) { and }
C. (C) ! and ?
D. (D) < and >
Correct answer is: D. (D) < and >

HTML is used to create _

A. (A) web page
B. (B) machine language program
C. (C) both
D. (D) None
Correct answer is: A. (A) web page

[expand title=”View Answer”]Correct Answer is A. web page
[/expand]

A program written in a high level languageis referred to as :

A. (A) Machine program
B. (B) Assembly program
C. (C) Source code
D.
Correct answer is: C. (C) Source code

What enables a computer to worksmoothly with printers

A. A. Drivers
B. B. ROM
C. C. RAM
D. D. None
Correct answer is: B. B. ROM
The answer is A. Drivers.

Here's why:

Drivers act as translators between the computer and the printer. They take the data the computer sends (like a document you want to print) and convert it into a format the printer understands, allowing it to translate the digital information into a physical printout.

ROM (Read-Only Memory) stores permanent data the computer needs to function but cannot be altered by the user. It wouldn't be involved in ongoing communication with a printer.

RAM (Random Access Memory) stores temporary data the computer is currently working on. While RAM might be used to hold the print job data temporarily, it's not the key component enabling smooth operation.

Errors from computer hardware and software can be identified and removed by process:

A. Interface
B. Debugging
C. Formatting
D. Flip Flop
Correct answer is: B. Debugging
null

With which of the following all formulas in excel starts ?

A. A) /
B. B) *
C. C) $
D. D) =
Correct answer is: D. D) =
In Microsoft Excel, all formulas must begin with an equal sign (=). This symbol tells Excel that the following content is a formula, not just plain text or data you've entered into the cell.

Here's why the other options are not used to start formulas:

A) /: This forward slash is often used as a division operator within formulas, but it cannot initiate them.

**B) **: Asterisk () is another operator, typically used for multiplication within formulas. It also cannot start a formula.

**C) ∗∗:Dollarsign() is used for various purposes in Excel, including absolute cell references. However, it's not used to initiate formulas.

Remember, the equal sign (=) signals to Excel that you're about to provide a calculation or instruction, making it the essential starting point for all formulas.

Scroll to Top