Category Curriculum Hub
AI-assisted, automatically checked

Computer Science MCQs

Prepare for technical interviews and exams in DBMS, Operating Systems, Computer Networks, and Computer Architecture.

4 Core Topic Modules3 Practice Tests
Start Practicing DBMS
Curriculum Scope & Examination Objectives

The Computer Science library on MCQGuru is structured to prepare learners for campus placement examinations, engineering semester tests, competitive entrance exams, and professional technical certifications. Questions are AI-assisted and automatically checked, and we correct errors that readers report.

Target Assessments
Campus Recruitment, GATE, SSC & Technical Interviews
Pedagogical Method
Answers with written explanations
Editorial Standards
Automated Checks & Error Reports

Computer Science Topics & Modules

4 Available Topics

Database Management Systems MCQs covering ER modeling, relational algebra, normal forms, and transaction ACID properties.

Subtopics:

Operating Systems MCQs on CPU scheduling, memory management, paging, segmentation, deadlocks, and virtual memory.

Computer Networks MCQs covering the OSI 7-layer model, TCP/IP stack, routing algorithms, DNS, and HTTP/HTTPS.

Basic computer hardware, binary number system, CPU architecture, registers, and cache memory questions.

Interactive Quizzes in Computer Science

Interactive Quiz
10 questions•~8 min

Computer Fundamentals Quiz

Assess basic computer concepts, binary arithmetic, memory hierarchy, and hardware.

Interactive Quiz
10 questions•~8 min

Operating Systems Practice Test

Test your knowledge on deadlocks, memory management, Coffman conditions, and scheduling.

Interactive Quiz
10 questions•~8 min

Computer Networks & OSI Model Quiz

Quiz on OSI 7-layer architecture, TCP/IP protocols, ports, and networking fundamentals.

Sample Questions

Featured Computer Science Practice Questions

Interactive Preview
Q1

What is a candidate key in a relational database?

medium
View Answer & Explanation
Correct Answer: Any minimal set of attributes that can uniquely identify a row
Explanation:
A candidate key is a minimal super key, meaning no attribute can be removed from it without losing uniqueness. A table can have more than one candidate key, and one of them is chosen as the primary key.
Q2

In a database, what does referential integrity ensure?

medium
View Answer & Explanation
Correct Answer: That a foreign key value always matches an existing primary key value in the referenced table
Explanation:
Referential integrity prevents orphaned records by requiring that any foreign key value either matches a valid primary key in the parent table or is NULL. It is usually enforced through foreign key constraints.
Q3

What is the main difference between a process and a thread?

medium
View Answer & Explanation
Correct Answer: A process has its own memory space, while threads within the same process share memory
Explanation:
Each process gets its own isolated address space, while threads that belong to the same process share that memory space, which makes communication between threads faster but also introduces the risk of race conditions.
Q4

Which CPU scheduling algorithm can lead to starvation of longer processes?

hard
View Answer & Explanation
Correct Answer: Priority scheduling without aging
Explanation:
In priority scheduling, a low-priority process can wait indefinitely if higher-priority processes keep arriving. Aging is a technique used to gradually increase the priority of waiting processes to prevent this.
Q5

What is the main difference between TCP and UDP?

medium
View Answer & Explanation
Correct Answer: TCP is connection-oriented and guarantees reliable delivery, while UDP is connectionless and does not guarantee delivery
Explanation:
TCP establishes a connection through a handshake and ensures packets arrive in order and without loss, while UDP simply sends packets without such guarantees, making it faster but less reliable, which suits use cases like live video streaming.
Q6

What is the purpose of DNS in computer networking?

easy
View Answer & Explanation
Correct Answer: To translate human readable domain names into IP addresses
Explanation:
DNS acts like a phone book for the internet, allowing users to type a domain name such as example.com instead of memorizing the numeric IP address of the server hosting that website.

Explore Other Categories