COMPUTER SCIENCE (Advanced) & DATABASE Top 100 Most Repeated MCQs
FORWARD: Securing a high score in specialized technical exams—such as FPSC/PPSC Lecturer positions, Subject Specialist slots, or the CSS/PMS Computer Science optional papers—requires a deep conceptual understanding of core computing fields. Among these, Database Management Systems (DBMS), Data Structures, Operating Systems, and Advanced Software Engineering hold the maximum weightage. Standard textbook questions are rarely enough to crack these highly competitive exams.
To give your preparation a competitive edge, we have compiled the ultimate list of the Top 100 Most Repeated Advanced Computer Science and Database MCQs. This high-yield question bank is meticulously extracted from the past 15 years of official public service commission papers, university-level entry tests, and international competitive exam patterns. It covers critical advanced concepts including Relational Algebra, SQL Queries, Normalization (1NF to 5NF), Transaction Concurrency Control (ACID properties), Indexing (B/B+ Trees), and System Architecture. Scroll down to access the fully solved MCQs with detailed explanations and boost your tech exam prep today!
RECOMMENDED READINGS 📚:
>> INFORMATION TECHNOLOGY (IT)
Part 1 (Q1 to Q25)
📌 Section A: Database Management Systems (DBMS) & MS Access
Q1. In a database, which key uniquely identifies each record/row in a table?
A) Foreign Key
B) Primary Key
C) Composite Key
D) Alternate Key
Answer: B) Primary Key (Primary key kabhi bhi khali (null) nahi ho sakti aur na hi repeat ho sakti hai, jaise Roll Number ya CNIC)
Q2. Which architectural key is used to establish a relationship between two different database tables?
A) Primary Key
B) Foreign Key
C) Super Key
D) Candidate Key
Answer: B) Foreign Key (Jab ek table ki Primary Key doosre table mein use ho to woh Foreign Key kehlati hai)
Q3. What does "SQL" stand for in database programming?
A) Structured Query Language
B) Sequential Query Language
C) Standard Query List
D) Statistical Query Language
Answer: A) Structured Query Language (Yeh databases se data nikalne aur manage karne ki standard zabaan hai)
Q4. In MS Access, what is the default data type assigned to a new field?
A) Number
B) Short Text (ya Text)
C) AutoNumber
D) Memo
Answer: B) Short Text (MS Access mein iski limit 255 characters tak hoti hai)
Q5. Which of the following SQL commands is used to modify or update existing data within a table?
A) ALTER
B) UPDATE
C) MODIFY
D) SAVE
('ALTER' table ka structure badalne ke liye hota hai, jabki 'UPDATE' table ke andar ke data ko badalny ke liye use hota hai)
📌 Section B: Networking & Internet Architecture
Q6. What does "IP" stand for in computer networking terms?
A) Internet Protocol
B) Internal Process
C) Information Path
D) Inter-connection Protocol
Answer: A) Internet Protocol (Yeh har computer ka ek makhsoos network address hota hai)
Q7. How many bits are there in an IPv4 (Internet Protocol version 4) address?
A) 16 bits
B) 32 bits
C) 64 bits
D) 128 bits
Answer: B) 32 bits (IPv6 address mein 128 bits hote hain, yeh dono paper mein bohot aate hain)
Q8. Which network topology connects all computers/nodes in a single continuous cable loop?
A) Star Topology
B) Bus Topology
C) Ring Topology
D) Mesh Topology
Answer: C) Ring Topology
Q9. Which device is used to connect two completely different network architectures or protocols?
A) Hub
B) Switch
C) Router
D) Gateway
Answer: D) Gateway (Router same protocols wale networks ko jorta hai, jabki Gateway do mukhtalif kism ke networks ko jorta hai)
Q10. What is the standard port number used for secure web browsing (HTTPS)?
A) Port 80
B) Port 21
C) Port 443
D) Port 25
Answer: C) Port 443 (Sada HTTP ke liye Port 80 hota hai aur FTP ke liye Port 21)
📌 Section C: Data Structures & Binary Logic
Q11. A Data Structure that follows the "LIFO" (Last In First Out) principle is called:
A) Queue
B) Stack
C) Tree
D) Graph
Answer: B) Stack (Jaise ek ke upar ek rakhi hui plates—jo aakhir mein aayegi woh pehle uthai jayegi. Queue 'FIFO' yaani First In First Out par kaam karti hai)
Q12. What is the binary equivalent (Base 2) of the decimal number 10?
A) 1001
B) 1010
C) 1100
D) 1111
Answer: B) 1010
Q13. In computer logic, which logic gate produces an output of 1 (True) ONLY if both of its inputs are 1?
A) OR Gate
B) AND Gate
C) NOT Gate
D) NAND Gate
Answer: B) AND Gate (OR gate mein koi ek input bhi 1 ho to output 1 ho jata hai)
Q14. How many Megabytes (MB) make up exactly 1 Gigabyte (GB) in standard binary computing?
A) 1000 MB
B) 1024 MB
C) 1050 MB
D) 1200 MB
Answer: B) 1024 MB
Q15. The process of finding and fixing errors or bugs in a software program code is called:
A) Compiling
B) Debugging
C) Executing
D) Scanning
Answer: B) Debugging
📌 Section D: Operating Systems & System Architecture
Q16. Which of the following is considered the core/heart of an Operating System, managing system resources and hardware interaction?
A) Shell
B) Kernel
C) BIOS
D) Drivers
Answer: B) Kernel (Shell user ke sath interact karta hai, jabki Kernel hardware ke sath direct kaam karta hai)
Q17. What type of memory is Cache memoptimisede a computer system?
A) Secondary Memory
B) Volatile High-Speed Memory
C) Non-Volatile Memory
D) Permanent Storage
Answer: B) Volatile High-Speed Memory (Yeh CPU aur RAM ke darmiyan speed gap ko kam karne ke liye istemal hoti hai)
Q18. What does "BIOS" stand for in computerthe hardware initialization?
A) Basic Input Output System
B) Binary Integrated Operating System
C) Bureau of Information Systems
D) Boot Internal Operating Software
Answer: A) Basic Input Output System
Q19. Which system software translates a high-level programming language code into machine code line-by-line?
A) Compiler
B) Interpreter
C) Assembler
D) Linker
Answer: B) Interpreter (Compiler poore program ko aik sath convert karta hai, jabki Interpreter line-by-line chalta hai)
Q20. What is the term used for the permanent software programmed into a read-only memory (ROM) chip?
A) Shareware
B) Firmware
C) Malware
D) Freeware
Answer: B) Firmware
📌 Section E: Advanced Database Concepts & SQL Commands
Q21. Which normal form (Normalisation step) deals with removing partial dependencies in a database design?
A) First Normal Form (1NF)
B) Second Normal Form (2NF)
C) Third Normal Form (3NF)
D) BCNF
Answer: B) Second Normal Form (2NF) (1NF repeating groups ko hatata hai aur 2NF partial dependency ko)
Q22. The SQL clause used to sort the fetched data results in ascending or descending order is:
A) SORT BY
B) GROUP BY
C) ORDER BY
D) ARRANGE BY
Answer: C) ORDER BY
Q23. Which database property ensures that either a complete transaction happens or nothing happens at all?
A) Isolation
B) Durability
C) Atomicity
D) Consistency
Answer: C) Atomicity (Ise ACID properties ka 'A' kehte hain)
Q24. In MS Access, which object is specifically used to enter or view data in a user-friendly layout?
A) Table
B) Query
C) Form
D) Report
Answer: C) Form (Reports data ko print karne ke liye aur Queries data filter karne ke liye hoti hain)
Q25. Which SQL constraint ensures that no duplicate values are entered in a specific column, but allows one NULL value?
A) PRIMARY KEY
B) UNIQUE
C) DEFAULT
D) CHECK
Answer: B) UNIQUE (Primary Key duplicate aur null dono allow nahi karti, jabki UNIQUE constraint ek null allow kar deta hai)
Part 2: OSI Model, SQL Joins & Cyber Security (Q26 to Q50)
📌 Section A: OSI Model & Network Layers
Q26. How many layers are there in the standard OSI (Open Systems Interconnection) reference model?
A) 4 Layers
B) 5 Layers
C) 7 Layers
D) 8 Layers
Answer: C) 7 Layers (Inke naam Physical, Data Link, Network, Transport, Session, Presentation, aur Application layers hain)
Q27. Which layer of the OSI model is responsible for routing packets across different networks (Logical Addressing)?
A) Data Link Layer
B) Transport Layer
C) Network Layer
D) Physical Layer
Answer: C) Network Layer (Is layer par Routers kaam karte hain aur IP addresses handle hote hain)
Q28. In the OSI model, end-to-end connection control and error recovery (Reliability) is managed by which layer?
A) Network Layer
B) Transport Layer
C) Session Layer
D) Application Layer
Answer: B) Transport Layer (Is layer par TCP (Transmission Control Protocol) aur UDP protocols kaam karte hain)
Q29. What is the unit of data used at the Data Link Layer of the OSI model?
A) Packets
B) Frames
C) Segments
D) Bits
Answer: B) Frames (Physical layer par 'Bits', Data Link par 'Frames', Network par 'Packets', aur Transport par 'Segments' hote hain)
Q30. Which device works primarily at the Physical Layer of the OSI model to amplify or regenerate signals?
A) Router
B) Switch
C) Repeater / Hub
D) Gateway
Answer: C) Repeater / Hub (Switch Data Link layer par aur Ro, withouttttttwork layer par kaam karta hai)
📌 Section B: Advanced Database Management & SQL Joins
Q31. Which type of SQL JOIN returns all records from the left table, and the matched records from the right table?
A) INNER JOIN
B) LEFT JOIN (ya LEFT OUTER JOIN)
C) RIGHT JOIN
D) FULL JOIN
Answer: B) LEFT JOIN (Agar right table mein match na ho, to result mein NULL show hota hai)
Q32. In database normalization, 3NF (Third Normal Form) is violated if there is a:
A) Partial Dependency
B) Transitive Dependency
C) Multi-valued Dependency
D) Repeating Group
Answer: B) Transitive Dependency (Transitive dependency ka matlab hota hai ke ek non-prime field doosri non-prime field par depend kar rahi ho)
Q33. Which SQL command is used to completely remove a table along with its structure and data from the database?
A) DELETE
B) TRUNCATE
C) DROP
D) REMOVE
Answer: C) DROP ('DELETE' sirf rows hatata hdecentralised' data khali karta hai par structure chhor deta hai, jabki 'DROP' poora table hi mita deta hai)
Q34. What does the "D" stand for in the ACID properties of database transactions?
A) Data
B) Dependency
C) Durability
D) Deletion
Answer: C) Durability (Durability ka matlab hai ke jab transaction complete ho jaye to system crash hone par bhi data safe rahe)
Q35. In MS Access, which tool allows you to link data from two tables based on a common field?
A) Validation Rule
B) Relationships Window
C) Expression Builder
D) Input Mask
Answer: B) Relationships Window
📌 Section C: Cyber Security & Cryptography
Q36. What type of cyber attack involves tricking users into revealing sensitive information like passwords through fake emails or websites?
A) Phishing (فشنگ)
B) Ransomware
C) DDoS Attack
D) SQL Injection
Answer: A) Phishing
Q37. A type of malicious software (Malware) that encrypts a user's files and demands money to unlock them is called:
A) Trojan Horse
B) Spyware
C) Ransomware
D) Worm
Answer: C) Ransomware
Q38. In cryptography, an eatryption method that uses the SAME key for both encryption and decryption is called:
A) Asymmetric Encryption
B) Symmetric Encryption
C) Public Key Cryptography
D) Hashing
Answer: B) Symmetric Encryption (Agar alag keys hon to use Asymmetric kehte hain)
Q39. What is a "Firewall" used for in computer security?
A) To protect the computer from physical fire
B) To filter and monitor unauthorized incoming/outgoing network traffic
C) To increase the speed of the internet
D) To backup database files
Answer: B) To filter and monitor unauthorized incoming/outgoing network traffic
Q40. Which cyber security concept ensures that a user can only access the specific data and resources required for their job role?
A) Authentication
B) Principle of Least Privilege (Authorization)
C) Encryption
D) Non-repudiation
Answer: B) Principle of Least Privilege
📌 Section D: Advanced Data Structures & Logic Gates
Q41. Which of the following data structures is non-linear and hierarchical in nature?
A) Array
B) Linked List
C) Tree
D) Stack
Answer: C) Tree (Array, Stack, aur Linked List linear hote hain, jabki Tree aur Graph non-linear hote hain)
Q42. In computer arithmetic, a "Half Adder" circuit can add how many binary bits at a time?
A) 1 bit
B) 2 bits
C) 3 bits
D) 4 bits
Answer: B) 2 bits (3 bits ko add karne ke liye Full Adder circuit chahiye hota hai)
Q43. Which logic gate is called a "Universal Gate" because it can be used to implement any other logic gate?
A) AND Gate
B) OR Gate
C) NAND Gate (ya NOR Gate)
D) NOT Gate
Answer: C) NAND Gate
Q44. What is the 1's complement of the binary number 10110?
A) 01001
B) 11001
C) 01010
D) 10111
Answer: A) 01001 (1's complement nikalne ke liye har 1 ko 0 aur har 0 ko 1 mein badal dete hain)
Q45. Which memory mapping technique directly links main memory blocks to cache memory blocks in a fixed manner?
A) Associative Mapping
B) Direct Mapping
C) Set-Associative Mapping
D) Random Mapping
Answer: B) Direct Mapping
📌 Section E: Systems Analysis & Cloud Computing
Q46. In Software Engineering, what does "SDLC" stand for?
A) System Design Logic Cycle
B) Software Development Life Cycle
C) Secure Data Transmission Control
D) Standard Digital Language Compiler
Answer: B) Software Development Life Cycle
Q47. Which testing phase is conducted by the actual end-users before a software is officially launched?
A) Unit Testing
B) Integration Testing
C) Beta Testing (Acceptance Testing)
D) System Testing
Answer: C) Beta Testing
Q48. What type of cloud computing service model provides virtualized computing resources over the internet, such as servers and storage (e.g., AWS EC2)?
A) SaaS (Software as a Service)
B) PaaS (Platform as a Service)
C) IaaS (Infrastructure as a Service)
D) DaaS (Data as a Service)
Answer: C) IaaS
Q49. In database architecture, what is a "View"?
A) A physical table stored in the hard drive
B) A virtual table based on the result-set of an SQL statement
C) A backup file of the database
D) A reporting chart
Answer: B) A virtual table based on the result-set of an SQL statement
Q50. Which HTTP status code represents that the requested webpage or resource was "Not Found" on the server?
A) 200 OK
B) 403 Forbidden
C) 404 Not Found
D) 500 Internal Server Error
Answer: C) 404 Not Found
Part 3: OOP Concepts, Data Structures & Web Logic (Q51 to Q75)
📌 Section A: Object-Oriented Programming (OOPs)
Q51. Which core OOP concept allows a new class to adopt the properties and behaviors of an existing class?
A) Polymorphism
B) Inheritance (وراثت)
C) Encapsulation
D) Abstraction
Answer: B) Inheritance (Jis class se properties li jayein use Parent/Super class aur jo nayi class bane use Child/Sub class kehte hain)
Q52. Wrapping up data members and methods together into a single unit (like a Class) is known as:
A) Abstraction
B) Inheritance
C) Encapsulation (پیکنگ / بند کرنا)
D) Polymorphism
Answer: C) Encapsulation (Yeh data ko bahar ke ghair-zaroori access se mehfooz rakhne ke liye kiya jata hai)
Q53. What is "Polymorphism" in Object-Oriented Programming?
A) Hiding the background details
B) The ability of a message or function to be displayed in more than one form
C) Creating multiple copies of a class
D) Destroying an object after use
Answer: B) The ability of a message or function to be displayed in more than one form (Jaise ek hi function name alag alag parameters ke sath alag tarah kaam kare)
Q54. A special method that is automatically called when an object of a class is created is called:
A) Destructor
B) Constructor
C) Virtual Function
D) Static Method
Answer: B) Constructor (Iska naam bilkul class ke naam jaisa hota hai)
Q55. Which access specifier makes class members accessible ONLY within the same class and nowhere else?
A) Public
B) Private
C) Protected
D) Internal
Answer: B) Private (Public members ko kahin se bhi access kiya ja sakta hai aur Protected members sirf child classes mein ja sakte hain)
📌 Section B: HTML, CSS & Web Development Basics
Q56. What does "HTML" stand for in web designing?
A) High Text Markup Language
B) Hyper Text Markup Language
C) Hyper Tabular Management Language
D) Hybrid Technology Modern Language
Answer: B) Hyper Text Markup Language (Yeh kisi bhi web page ka buniyaadi dhancha/structure banane ke kaam aati hai)
Q57. Which HTML tag is used to create a hyperlink to another webpage or website?
A) <link>
B) <a> (Anchor Tag)
C) <href>
D) <url>
Answer: B) <a> (Jaise: <a href="url">Click Here</a>)
Q58. In web development, what is the primary purpose of "CSS" (Cascading Style Sheets)?
A) To handle database connections
B) To design, style, and layout the visual appearance of a webpage
C) To execute backend software logic
D) To compile high-level server languages
Answer: B) To design, style, and layout the visual appearance of a webpage
Q59. Which programming language is universally used to add interactivity and dynamic behavior to a webpage on the client-side?
A) HTML
B) JavaScript (JS)
C) CSS
D) PHP
Answer: B) JavaScript
Q60. What is the correct HTML tag used to insert a line break (naya line shuru karna)?
A) <break>
B) <br>
C) <lb>
D) <newline>
Answer: B) <br> (Yeh ek empty tag hota hai jiska closing tag nahi hota)
📌 Section C: Core Data Structures & Search Algorithms
Q61. Which sorting algorithm works on the "Divide and Conquer" strategy, splitting an array into two halves repeatedly?
A) Bubble Sort
B) Insertion Sort
C) Merge Sort
D) Selection Sort
Answer: C) Merge Sort (Quick Sort bhi divide and conquer par kaam karta hai)
Q62. What is the time complexity of searching an element in a balanced Binary Search Tree (BST) in the worst case?
A) O(1)
B) O(n)
C) O(\log n)
D) O(n \log n)
Answer: C) O(\log n)
Q63. A linear data structure where elements are not stored in contiguous memory locations, but each element points to the next via a pointer is a:
A) Array
B) Queue
C) Linked List
D) Stack
Answer: C) Linked List
Q64. In a Queue data structure, if an element is removed, from which end does the deletion take place?
A) Rear
B) Front
C) Middle
D) Top
Answer: B) Front (Queue mein naya element 'Rear' end se add hota hai aur purana element 'Front' end se delete hota hai)
Q65. Which graph traversal algorithm uses a "Queue" data structure to explore vertices level-by-level?
A) Depth First Search (DFS)
B) Breadth First Search (BFS)
C) Linear Search
D) Binary Search
Answer: B) Breadth First Search (BFS) (DFS hamesha 'Stack' ka istemal karta hai)
📌 Section D: Advanced Database Concepts & NoSQL
Q66. What is a "Data Warehouse"?
A) A backup drive used for personal computers
B) A central repository of integrated data from multiple sources, used for reporting and analysis
C) A specific software tool used to design web forms
D) A small database containing only text tables
Answer: B) A central repository of integrated data from multiple sources, used for reporting and analysis
Q67. Which of the following is a non-relational (NoSQL) database system?
A) MySQL
B) Oracle
C) MongoDB
D) MS Access
Answer: C) MongoDB (NoSQL databases tabular data ke bajaye documents, graphs ya key-value pairs mein data store karte hain)
Q68. In an ER Diagram (Entity-Relationship), what shape is used to represent an "Attribute" (Property of an entity)?
A) Rectangle
B) Diamond
C) Oval / Ellipse
D) Line
Answer: C) Oval / Ellipse (Rectangle 'Entity' ke liye aur Diamond 'Relationship' ke liye hota hai)
Q69. Which type of database backup copies ONLY the data that has changed since the last full or incremental backup?
A) Full Backup
B) Incremental Backup
C) Differential Backup
D) Dynamic Backup
Answer: B) Incremental Backup
Q70. The SQL aggregate function used to find the total number of rows that match a specific criteria is:
A) SUM()
B) TOTAL()
C) COUNT()
D) ADD()
Answer: C) COUNT() ('SUM' numeric fields ko jama karne ke liye hota hai jabki 'COUNT' rows ginne ke liye)
📌 Section E: Cryptography & Malicious Codes
Q71. A malicious program that hides itself inside a useful software or game and damages the system once executed is a:
A) Worm
B) Trojan Horse
C) Spyware
D) Adware
Answer: B) Trojan Horse (Yeh aam worm ki tarah khud ko replicate nahi karta, balki dhoke se system mein ghusta hai)
Q72. What is the process of converting unreadable ciphertext back into readable plain text called?
A) Encryption
B) Decryption (ڈیکرپشن)
C) Hashing
D) Steganography
Answer: B) Decryption
Q73. Which type of malware continuously records every key struck on your keyboard to steal passwords and credit card info?
A) Ransomware
B) Keylogger (کی لاگر)
C) Rootkit
D) Virus
Answer: B) Keylogger (Yeh Spyware ki ek qism hai)
Q74. In networking, "SQL Injection" is a type of attack where malicious SQL statements are inserted into:
A) Network routers
B) Entry fields of a website form for execution (Database compromise)
C) Email attachments
D) Computer RAM directly
Answer: B) Entry fields of a website form for execution
Q75. What is the main objective of a "DDoS" (Distributed Denial of Service) attack?
A) To steal user passwords
B) To crash or overwhelm a website/server by flooding it with massive fake traffic
C) To encrypt database files for money
D) To monitor user browsing habits
Answer: B) To crash or overwhelm a website/server by flooding it with massive fake traffic
Part 4: Computer Architecture, Linux & Software Models (Q76 to Q100)
📌 Section A: Computer Architecture & Processor Logic
Q76. Which component inside the CPU is responsible for performing mathematical calculations and logical comparisons?
A) Control Unit (CU)
B) Arithmetic Logic Unit (ALU)
C) Register Array
D) Cache Memory
Answer: B) Arithmetic Logic Unit (ALU) (Control Unit CPU ke tamam parts ko instructions bhejta hai aur unhein control karta hai)
Q77. What is the fastest and smallest storage zone inside the computer architecture, located directly inside the CPU?
A) RAM
B) Cache
C) Registers (رجسٹرز)
D) Hard Disk
Answer: C) Registers (Speed ke hisab se sabse tez Registers hote hain, phir Cache memory, phir RAM, aur aakhir mein Hard Drive aati hai)
Q78. The bus that is used to specify the physical memory address location of a data block inside the system is called:
A) Data Bus
B) Address Bus
C) Control Bus
D) System Bus
Answer: B) Address Bus (Data Bus actual data le jane ke liye hoti hai aur Address Bus bata ti hai ke data kahan bhejna ya kahan se lana hai)
Q79. Which CPU architecture style uses a small, highly optimized set of instructions to increase processing speed?
A) CISC (Complex Instruction Set Computer)
B) RISC (Reduced Instruction Set Computer)
C) MISC
D) EPIC
Answer: B) RISC (Modern mobile processors jaise ARM, RISC technology par kaam karte hain)
Q80. What is the term used for execution of multiple instructions simultaneously by splitting them into different processing stages?
A) Multitasking
B) Pipelining (پائپ لائننگ)
C) Multithreading
D) Caching
Answer: B) Pipelining
📌 Section B: Software Engineering & Development Models
Q81. Which software engineering model is a linear, sequential approach where each phase must be finished before the next begins?
A) Spiral Model
B) Waterfall Model
C) Agile Model
D) Prototype Model
Answer: B) Waterfall Model (Isme piche jana bohot mushkil hota hai, isiliye ise chote aur fixed projects ke liye use kiya jata hai)
Q82. Which modern software development methodology focuses on continuous iterative development, flexibility, and quick team collaboration?
A) Waterfall Model
B) Agile Methodology (ایجل)
C) V-Model
D) Big Bang Model
Answer: B) Agile Methodology
Q83. In Software Engineering, what does "QA" stand for?
A) Question Answer
B) Quality Assurance (کوالٹی اشورنس)
C) Quick Analysis
D) Quantum Architecture
Answer: B) Quality Assurance (Iska kaam software ke standard aur quality ko check karna aur bugs pakadna hota hai)
Q84. What type of software testing focuses on testing individual units or pieces of code to ensure they work properly?
A) System Testing
B) Integration Testing
C) Unit Testing
D) Acceptance Testing
Answer: C) Unit Testing (Yeh aam tor par software developers khud karte hain)
Q85. In Software design, "Coupling" refers to:
A) The degree of interdependence between software modules
B) The internal strength of a single module
C) The time taken to compile the code
D) The database link structure
Answer: A) The degree of interdependence between software modules (Aik ache software design mein "Low Coupling" (kam dependence) aur "High Cohesion" honi chahiye)
📌 Section C: Linux Operating System & Basic Commands
Q86. Linux is considered what type of software distribution model?
A) Closed Source / Proprietary
B) Open Source Operating System
C) Shareware
D) Freeware
Answer: B) Open Source Operating System (Iska source code har kisi ke liye free aur open hota hai jise badla bhi ja sakta hai)
Q87. In the Linux Command Line interface, which command is used to display the current working directory path?
A) cd
B) pwd (Print Working Directory)
C) ls
D) mkdir
Answer: B) pwd ('ls' files ki list dekhne ke liye aur 'cd' directory badalne ke liye use hota hai)
Q88. Which command in Linux is used to create a new, empty directory/folder?
A) rmdir
B) touch
C) mkdir (Make Directory)
D) create
Answer: C) mkdir ('touch' command nayi empty file banane ke liye hoti hai)
Q89. In Linux permissions, what do the letters "rwx" stand for?
A) Read, Write, Execute
B) Run, Wire, Extension
C) Redirect, Wipe, Exit
D) Release, Warn, Export
Answer: A) Read, Write, Execute
Q90. Who is famously known as the creator and main developer of the Linux Kernel?
A) Bill Gates
B) Linus Torvalds
C) Steve Jobs
D) Dennis Ritchie
Answer: B) Linus Torvalds (Dennis Ritchie ne C programming language banayi thi)
📌 Section D: Advanced SQL Queries & Functions
Q91. Which SQL constraint prevents the deletion of records from a primary table if linked data exists in a child table?
A) CHECK Constraint
B) Referential Integrity (Foreign Key)
C) DEFAULT Constraint
D) NOT NULL Constraint
Answer: B) Referential Integrity
Q92. The SQL statement used to remove all data rows from a table quickly WITHOUT destroying the table structure is:
A) DROP
B) REMOVE
C) TRUNCATE
D) ALTER
Answer: C) TRUNCATE
Q93. Which command in SQL is used to save all transaction changes permanently into the database?
A) ROLLBACK
B) COMMIT (کمٹ)
C) SAVEPOINT
D) FLASHBACK
Answer: B) COMMIT ('ROLLBACK' transaction mein ghalati hone par purani state par wapas jaane ke liye hota hai)
Q94. In SQL, what operator is used to search for a specific wild-card pattern in a text column?
A) IN
B) BETWEEN
C) LIKE
D) EXISTS
Answer: C) LIKE (Jaise agar kisi ka naam 'A' se shuru hota ho to find karne ke liye: WHERE Name LIKE 'A%')
Q95. Which type of database join returns only the rows that have matching values in both tables?
A) LEFT JOIN
B) RIGHT JOIN
C) INNER JOIN (ya Natural Join)
D) FULL OUTER JOIN
Answer: C) INNER JOIN
📌 Section E: Emerging Technologies & Miscellaneous
Q96. What is the fundamental decentralized, distributed ledger technology that powers cryptocurrencies like Bitcoin?
A) Cloud Storage
B) Blockchain Technology (بلاک چین)
C) Big Data Analytics
D) Virtual Reality
Answer: B) Blockchain Technology
Q97. In internet computing, what does "URL" stand for?
A) Uniform Resource Locator
B) Unique Routing Link
C) Universal Register Language
D) User Request Line
Answer: A) Uniform Resource Locator (Yeh kisi bhi web page ka mukammal web address hota hai)
Q98. What type of system uses a set of rules and a base of knowledge to mimic human expertise in a narrow field?
A) Operating System
B) Expert System
C) Database System
D) Graphics Engine
Answer: B) Expert System
Q99. What does "SaaS" stand for in modern cloud-based software delivery models?
A) System as a Service
B) Software as a Service
C) Security as a System
D) Storage as an Architecture
Answer: B) Software as a Service (Jaise Microsoft 365 ya Gmail, jahan app browser par chalti hai install nahi karni parti)
Q100. In database architecture, the capability to modify the database schema in one level without affecting the schema at another level is called:
A) Data Redundancy
B) Data Data Independence (ڈیٹا انڈیپینڈنس)
C) Data Integrity
D) Data Isolation
Answer: B) Data Independence
FREQUENTLY ASKED QUESTIONS (FAQs)
Q1: Which technical modules are prioritized in these Advanced Computer Science MCQs?
Answer: This compilation heavily prioritizes core advanced areas including Relational Database Management Systems (RDBMS), SQL queries & joins, Database Normalization, Data Structures & Algorithms, Operating System internals (Deadlocks & Memory Management), and Network Security concepts.
Q2: Are these Database MCQs relevant for Lecturer and Subject Specialist exams?
Answer: Yes, absolutely. Public service commissions (like PPSC, FPSC, KPPSC, and SPSC) frequently repeat core architectural questions regarding database schemas, file indexing, and transaction management in their Lecturer (BPS-17) and IT Officer exam papers.
Q3: Why is Normalization and SQL targeted so heavily in advanced computing tests?
Answer: Examiners focus on Normalization (1NF, 2NF, 3NF, BCNF) and SQL queries because they directly test a candidate's practical logical-thinking ability regarding data redundancy reduction and complex data retrieval, which are fundamental skills for any database professional or educator.
📚 PREPARED BY:
Universal Academy of Notes and MCQs
🌐 OFFICIAL WEBSITE:

Comments
Post a Comment