All Subjects
Pakistan Institute of Engineering and Applied Sciences11 Questions

Computer Science MCQs

Practice Computer Science multiple-choice questions for Pakistan Institute of Engineering and Applied Sciences competitive exams. Each question includes the correct answer and a short explanation, and past-paper questions are marked so you can revise both repeated and fresh material in one place.

Queue
Stack
Linked List
Binary Tree
ExplanationA stack follows the LIFO principle where the last element added is the first one to be removed.
Data Link
Network
Transport
Session
ExplanationThe Network layer is responsible for logical addressing (like IP addresses) and routing.
O(n)
O(n log n)
O(log n)
O(1)
ExplanationBinary search repeatedly halves the search space, leading to logarithmic complexity.
RAM
Cache
ROM
Registers
ExplanationROM (Read-Only Memory) retains data even when power is turned off.
static
const
final
virtual
ExplanationThe 'final' specifier prevents a class from being inherited or a virtual function from being overridden.
Clears all data
Removes the table structure
Hides the table
Renames the table
ExplanationDROP TABLE deletes the entire table definition and all its data from the database.
O(n)
O(n log n)
O(n^2)
O(log n)
ExplanationQuickSort's worst case occurs when the pivot is consistently the smallest or largest element, leading to unbalanced partitions.
Immediate
Direct
Indirect
Indexed
ExplanationIn direct addressing, the operand field contains the memory address of the data.
Isolation
Integration
Indexing
Interoperability
ExplanationACID stands for Atomicity, Consistency, Isolation, and Durability.
Application
Network
Host-to-Host
Data Link
ExplanationThe Host-to-Host layer in the TCP/IP suite provides communication between end-user devices, mirroring the Transport layer of OSI.
1110
1100
0110
1011
ExplanationXOR results in 1 where bits are different: 1^0=1, 0^1=1, 1^0=1, 1^1=0, yielding 1110.

Frequently Asked Questions

Are these Computer Science MCQs free?

Yes. Every Computer Science MCQ on this page is free to practice, including the correct answer and explanation.

Do these include past-paper questions?

Yes — questions sourced from past papers are clearly marked with a "Past Paper" badge, alongside fresh practice questions.

Which exams do these Computer Science MCQs help with?

They are aimed at Pakistan Institute of Engineering and Applied Sciences and related Pakistani competitive exams that test Computer Science.

How should I practice subject-wise MCQs?

Attempt each question first, then reveal the answer and read the explanation. Short, focused sessions on one subject work better than long unstructured reading.

We use cookies

We use essential cookies to keep the platform running and analytics cookies to understand usage. You can accept or reject analytics and advertising cookies.