Main Subjects
Main Subjects MCQs With Answers
0 Main Subjects MCQs for CSS, PPSC, FPSC, NTS and entry-test preparation. Take a scored quiz instead →
Computer (595)
Current Affairs (1548)
English (1530)
Everyday Science (741)
General Knowledge (1134)
Islamic Studies (1113)
Mathematics (1624)
Pakistan Studies (941)
Which linear data structure operates strictly on a Last-In, First-Out (LIFO) access mechanism?
AQueue
BLinked List
CStack
DBinary Tree
In the OSI (Open Systems Interconnection) reference model, which layer is responsible for end-to-end packet delivery and logical IP addressing?
AData Link Layer
BNetwork Layer
CTransport Layer
DSession Layer
What is the worst-case time complexity of the standard QuickSort algorithm when selecting a poor pivot element on an already sorted array?
AO(n log n)
BO(n)
CO(n²)
DO(log n)
Which network protocol automatically assigns IP addresses, subnet masks, and default gateways to devices on a network?
ADNS
BDHCP
CFTP
DSNMP
In Object-Oriented Programming (OOP), what term describes the ability of a single interface or method name to take multiple forms based on the object context?
AEncapsulation
BInheritance
CPolymorphism
DAbstraction
What default port number is used by the secure HTTP protocol (HTTPS) encrypted via SSL/TLS?
APort 80
BPort 21
CPort 443
DPort 25
Which search algorithm requires data to be sorted beforehand and repeatedly divides the search interval in half?
ALinear Search
BBinary Search
CDepth-First Search (DFS)
DBreadth-First Search (BFS)
Which IP address range represents the standard Class C private IPv4 address space defined by RFC 1918?
A10.0.0.0 to 10.255.255.255
B172.16.0.0 to 172.31.255.255
C192.168.0.0 to 192.168.255.255
D127.0.0.0 to 127.255.255.255
Which programming language paradigm uses mathematical functions and avoids changing state or mutable data?
AImperative Programming
BFunctional Programming
CProcedural Programming
DObject-Oriented Programming
What topology connects every network device to a central hub or switch using individual cables?
ABus Topology
BRing Topology
CStar Topology
DMesh Topology
