All Subjects
NASTP Institute of Information Technology10 Questions

Computer Science MCQs

Practice Computer Science multiple-choice questions for NASTP Institute of Information Technology 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
Tree
ExplanationA stack operates on the LIFO principle, where the last element added is the first one removed.
9
11
13
15
Explanation1*2^3 + 0*2^2 + 1*2^1 + 1*2^0 = 8 + 0 + 2 + 1 = 11.
RAM
Cache
ROM
Registers
ExplanationROM (Read-Only Memory) retains its data even when power is turned off, unlike RAM.
Managing hardware resources
Creating documents
Compiling code
Connecting to the internet
ExplanationAn OS acts as an interface between hardware and software, managing CPU, memory, and devices.
Creating objects from classes
Hiding internal state and requiring all interaction through methods
Inheriting properties from a base class
The ability for a method to have different behaviors
ExplanationEncapsulation restricts direct access to data to prevent accidental modification.
Data Link Layer
Network Layer
Transport Layer
Physical Layer
ExplanationThe Network Layer is responsible for routing and logical addressing (IP addresses).
REMOVE
DROP
DELETE
CLEAR
ExplanationThe DELETE statement is used to remove existing rows from a table.
O(n)
O(log n)
O(n log n)
O(1)
ExplanationIn a balanced Binary Search Tree, the height of the tree is log n, making the search time proportional to the height.
HTTP
FTP
SFTP
SMTP
ExplanationSFTP (SSH File Transfer Protocol) provides secure, encrypted file transfers.
Total Control Protocol
Transmission Control Protocol
Transfer Connection Protocol
Technical Communication Protocol
ExplanationTCP is a core protocol of the Internet Protocol suite providing reliable, ordered delivery of data.

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 NASTP Institute of Information Technology 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.