Result SummaryDetailed Review
Computer Networks & SecurityNot attempted

Q61. What is the total number of subnets created by applying a /27 subnet mask to a Class C IP address?

⚪ Status: You Skipped this question
Correct Answer: Option B (8 subnets)
A
4 subnets
B
8 subnets
Correct Answer
C
16 subnets
D
32 subnets

Why: A Class C network default mask is /24. A /27 mask borrows 3 subnet bits (27 - 24 = 3). Total subnets = 2³ = 8 subnets.

Computer Networks & SecurityNot attempted

Q62. How many usable host IP addresses are available per subnet in a /28 IPv4 subnet configuration?

⚪ Status: You Skipped this question
Correct Answer: Option A (14 host IP addresses)
A
14 host IP addresses
Correct Answer
B
16 host IP addresses
C
30 host IP addresses
D
62 host IP addresses

Why: For a /28 mask, host bits = 32 - 28 = 4 bits. Total IP addresses = 2⁴ = 16. Usable host IPs = 2⁴ - 2 (subtract Network & Broadcast ID) = 14.

Operating Systems & DeadlocksNot attempted

Q63. In Banker's Algorithm for deadlock avoidance, if Need[i][j] <= Available[j], what state is guaranteed?

⚪ Status: You Skipped this question
Correct Answer: Option A (Safe State)
A
Safe State
Correct Answer
B
Deadlock State
C
Starvation State
D
Unsafe State

Why: Banker's Algorithm tests if allocating requested resources leaves the system in a Safe State where all processes can execute sequentially without deadlock.

Operating Systems & DeadlocksNot attempted

Q64. What are Coffman's four necessary conditions for a deadlock to occur in an operating system?

⚪ Status: You Skipped this question
Correct Answer: Option A (Mutual Exclusion, Hold & Wait, No Preemption, Circular Wait)
A
Mutual Exclusion, Hold & Wait, No Preemption, Circular Wait
Correct Answer
B
Mutual Exclusion, Preemption, Circular Wait, Paging
C
Starvation, Hold & Wait, Preemption, Cache Miss
D
Segmentation, Fragmentation, Deadlock, Semaphore

Why: Deadlock can occur if and only if all 4 Coffman conditions hold simultaneously: Mutual Exclusion, Hold and Wait, No Preemption, and Circular Wait.

Computer Organization & PipelineNot attempted

Q65. What is the theoretical maximum speedup ratio of a k-stage instruction pipeline operating over n instructions?

⚪ Status: You Skipped this question
Correct Answer: Option C (Speedup S = (n * k) / (k + n - 1))
A
Speedup S = k
B
Speedup S = n * k
C
Speedup S = (n * k) / (k + n - 1)
Correct Answer
D
Speedup S = 1 / k

Why: Non-pipelined execution time = n * k cycles. Pipelined time = (k + n - 1) cycles. Speedup S = (n * k) / (k + n - 1). As n → ∞, S → k.

Computer Organization & PipelineNot attempted

Q66. In direct-mapped cache architecture, if main memory has 4096 blocks and cache has 64 lines, which cache line does memory block 135 map to?

⚪ Status: You Skipped this question
Correct Answer: Option A (Cache Line 7)
A
Cache Line 7
Correct Answer
B
Cache Line 15
C
Cache Line 64
D
Cache Line 135

Why: Direct mapping formula: Cache Line Index = (Memory Block Number) MOD (Number of Cache Lines) = 135 MOD 64 = 7 (since 135 = 64 × 2 + 7).

Database Systems & Relational AlgebraNot attempted

Q67. In Boyce-Codd Normal Form (BCNF), for every non-trivial functional dependency X → Y, what constraint must X satisfy?

⚪ Status: You Skipped this question
Correct Answer: Option A (X must be a Super Key)
A
X must be a Super Key
Correct Answer
B
X must be a Prime Attribute
C
Y must be a Super Key
D
X and Y must be atomic

Why: BCNF is a stricter version of 3NF requiring that for every functional dependency X → Y, the determinant X MUST be a candidate/super key.

Database Systems & Relational AlgebraNot attempted

Q68. Which relational algebra operation returns tuples present in Relation R but absent in Relation S?

⚪ Status: You Skipped this question
Correct Answer: Option B (Set Difference (R - S))
A
Cartesian Product (R × S)
B
Set Difference (R - S)
Correct Answer
C
Intersection (R ∩ S)
D
Natural Join (R ⋈ S)

Why: Set Difference (R - S) filters out any tuples from relation R that also appear in relation S. Both relations must be union-compatible.

Data Structures & Graph AlgorithmsNot attempted

Q69. What is the worst-case time complexity of Dijkstra's algorithm for single-source shortest path using Min-Heap priority queue?

⚪ Status: You Skipped this question
Correct Answer: Option B (O((V + E) log V))
A
O(V²)
B
O((V + E) log V)
Correct Answer
C
O(V * E)
D
O(E²)

Why: Using a binary min-heap priority queue, extracting min node takes O(log V) and decreasing keys takes O(log V) per edge, yielding O((V + E) log V).

Data Structures & Graph AlgorithmsNot attempted

Q70. In a connected undirected graph G with V vertices and E edges, how many edges does its Minimum Spanning Tree (MST) contain?

⚪ Status: You Skipped this question
Correct Answer: Option B (V - 1 edges)
A
V edges
B
V - 1 edges
Correct Answer
C
V + 1 edges
D
E - 1 edges

Why: A Minimum Spanning Tree connects all V vertices of a graph without forming any cycles, which strictly requires exactly (V - 1) edges.

Compiler Design & ParsingNot attempted

Q71. Which component of a compiler eliminates redundant computations and loop invariants to optimize execution speed?

⚪ Status: You Skipped this question
Correct Answer: Option C (Code Optimizer)
A
Lexical Analyzer
B
Semantic Analyzer
C
Code Optimizer
Correct Answer
D
Symbol Table Manager

Why: The Code Optimizer transforms intermediate code to run faster and consume less memory (e.g. dead code elimination, loop invariant code motion).

Compiler Design & ParsingNot attempted

Q72. What parsing conflict occurs in an SLR(1) parsing table when a state contains both A → α.aβ and B → γ.?

⚪ Status: You Skipped this question
Correct Answer: Option A (Shift-Reduce Conflict)
A
Shift-Reduce Conflict
Correct Answer
B
Reduce-Reduce Conflict
C
Shift-Shift Conflict
D
Syntax Error Conflict

Why: A Shift-Reduce conflict arises when the parser cannot decide whether to shift input token 'a' or reduce using rule B → γ.

Software Engineering & AgileNot attempted

Q73. Which software coupling type occurs when two modules share data via a global data structure?

⚪ Status: You Skipped this question
Correct Answer: Option B (Common Coupling)
A
Data Coupling
B
Common Coupling
Correct Answer
C
Control Coupling
D
Content Coupling

Why: Common Coupling (Global Coupling) happens when multiple modules read and write to shared global variables or shared memory regions.

Software Engineering & AgileNot attempted

Q74. In software engineering cohesion classification, which cohesion type represents the strongest and most desirable module structure?

⚪ Status: You Skipped this question
Correct Answer: Option B (Functional Cohesion)
A
Coincidental Cohesion
B
Functional Cohesion
Correct Answer
C
Logical Cohesion
D
Procedural Cohesion

Why: Functional Cohesion is the highest/best form where all elements inside a module cooperate to perform a single well-defined task.

Theory of ComputationNot attempted

Q75. Which language class can be recognized by a Nondeterministic Pushdown Automaton (NPDA)?

⚪ Status: You Skipped this question
Correct Answer: Option B (Context-Free Languages (CFL))
A
Regular Languages
B
Context-Free Languages (CFL)
Correct Answer
C
Context-Sensitive Languages (CSL)
D
Recursively Enumerable Languages

Why: NPDA is the exact machine model corresponding to Context-Free Grammars (CFG) and Context-Free Languages (CFL).

Theory of ComputationNot attempted

Q76. What is the Halting Problem of Turing Machines classified as in Automata Theory?

⚪ Status: You Skipped this question
Correct Answer: Option B (Undecidable Problem)
A
Decidable Problem
B
Undecidable Problem
Correct Answer
C
Context-Free Problem
D
Trivial Problem

Why: Proved by Alan Turing in 1936, no algorithm exists that can decide whether an arbitrary Turing machine will halt on a given input.

Object Oriented Programming (C++/Java)Not attempted

Q77. In C++, which keyword enables dynamic polymorphism and runtime late binding of member functions?

⚪ Status: You Skipped this question
Correct Answer: Option B (virtual)
A
static
B
virtual
Correct Answer
C
inline
D
friend

Why: The 'virtual' keyword creates a vtable pointer (vptr) that resolves overridden function calls dynamically at runtime based on the object's actual type.

Object Oriented Programming (C++/Java)Not attempted

Q78. In Java memory management, where are object instances allocated at runtime?

⚪ Status: You Skipped this question
Correct Answer: Option B (Heap Memory)
A
Method Stack Frame
B
Heap Memory
Correct Answer
C
CPU Registers
D
Static Code Area

Why: In Java, all objects created via 'new' are dynamically allocated in Heap Memory, while local primitives and object reference variables reside on the Stack.

Computer Networks & SecurityNot attempted

Q79. Which asymmetric key encryption algorithm relies on the mathematical difficulty of factoring large composite prime integers?

⚪ Status: You Skipped this question
Correct Answer: Option B (RSA (Rivest-Shamir-Adleman))
A
AES (Advanced Encryption Standard)
B
RSA (Rivest-Shamir-Adleman)
Correct Answer
C
DES (Data Encryption Standard)
D
MD5 (Message Digest 5)

Why: RSA public-key cryptography bases its security on the hardness of prime factorization of a large composite number N = p * q.

Operating Systems & DeadlocksNot attempted

Q80. What is the primary function of a counting semaphore S with initial value 3?

⚪ Status: You Skipped this question
Correct Answer: Option A (To allow at most 3 processes concurrent access to a shared resource)
A
To allow at most 3 processes concurrent access to a shared resource
Correct Answer
B
To cause deadlock among 3 processes
C
To allocate 3 CPU cores to 1 process
D
To disable interrupt handler 3 times

Why: A counting semaphore initialized to 3 allows up to 3 units of a shared resource to be used concurrently. Decrements on wait(), increments on signal().

Computer Organization & PipelineNot attempted

Q81. In 8085 microprocessor architecture, what is the width of the Address Bus and Data Bus respectively?

⚪ Status: You Skipped this question
Correct Answer: Option A (Address Bus: 16 bits, Data Bus: 8 bits)
A
Address Bus: 16 bits, Data Bus: 8 bits
Correct Answer
B
Address Bus: 8 bits, Data Bus: 16 bits
C
Address Bus: 32 bits, Data Bus: 16 bits
D
Address Bus: 8 bits, Data Bus: 8 bits

Why: 8085 has a 16-bit address bus (can address up to 64 KB memory = 2¹⁶ bytes) and an 8-bit bidirectional data bus.

Database Systems & Relational AlgebraNot attempted

Q82. Which SQL command is used to grant specific privileges on database objects to database users?

⚪ Status: You Skipped this question
Correct Answer: Option B (GRANT)
A
REVOKE
B
GRANT
Correct Answer
C
COMMIT
D
ALTER

Why: GRANT is a Data Control Language (DCL) command used to assign permissions (SELECT, INSERT, UPDATE, DELETE) to database roles/users.

Data Structures & Graph AlgorithmsNot attempted

Q83. What is the worst-case space complexity of Depth First Search (DFS) traversal on a graph with V vertices and maximum path depth h?

⚪ Status: You Skipped this question
Correct Answer: Option A (O(h))
A
O(h)
Correct Answer
B
O(V²)
C
O(2^V)
D
O(1)

Why: DFS maintains a recursion stack proportional to the maximum depth h of the search tree/graph path.

Compiler Design & ParsingNot attempted

Q84. Which compiler phase checks whether the source program construct conforms to programming language type rules?

⚪ Status: You Skipped this question
Correct Answer: Option B (Semantic Analysis)
A
Lexical Analysis
B
Semantic Analysis
Correct Answer
C
Syntax Analysis
D
Code Generation

Why: Semantic Analysis enforces type consistency (e.g. array index checking, variable declaration verification, type casting).

Software Engineering & AgileNot attempted

Q85. In Software Quality Assurance, what is the main goal of Integration Testing?

⚪ Status: You Skipped this question
Correct Answer: Option B (To test interface interactions between integrated modules)
A
To test individual functions in isolation
B
To test interface interactions between integrated modules
Correct Answer
C
To evaluate non-functional performance requirements
D
To perform user acceptance validation

Why: Integration testing verifies functional compatibility and data flow across interfaces between combined program components.

Computer Networks & SecurityNot attempted

Q86. Which ICMP message type is issued when an IP packet TTL (Time To Live) reaches zero?

⚪ Status: You Skipped this question
Correct Answer: Option B (Time Exceeded (Type 11))
A
Echo Reply
B
Time Exceeded (Type 11)
Correct Answer
C
Destination Unreachable
D
Source Quench

Why: When a router decrements a packet's TTL to 0, it drops the packet and sends ICMP Type 11 (Time Exceeded) back to the sender (used by traceroute).

Operating Systems & DeadlocksNot attempted

Q87. In Linux process management, what is a process called that has completed execution but still has an entry in the process table?

⚪ Status: You Skipped this question
Correct Answer: Option B (Zombie Process)
A
Orphan Process
B
Zombie Process
Correct Answer
C
Daemon Process
D
Foreground Process

Why: A Zombie process is a terminated process whose exit status has not yet been read by its parent process using wait().

Computer Organization & PipelineNot attempted

Q88. In memory hierarchy, which memory type provides the fastest data access speed to the CPU?

⚪ Status: You Skipped this question
Correct Answer: Option B (CPU Registers)
A
Main RAM Memory
B
CPU Registers
Correct Answer
C
L1 Cache Memory
D
Solid State Drive (SSD)

Why: CPU internal registers operate at CPU core clock speeds (< 1 ns), making them faster than L1 Cache, L2 Cache, and RAM.

Database Systems & Relational AlgebraNot attempted

Q89. Which index structure maintains balanced search trees where all leaf nodes are at the same depth and connected in a linked list?

⚪ Status: You Skipped this question
Correct Answer: Option B (B+ Tree Index)
A
Binary Search Tree
B
B+ Tree Index
Correct Answer
C
Hash Index
D
AVL Tree

Why: B+ Trees store all data pointers exclusively in leaf nodes, linked sequentially for extremely fast range queries in relational databases.

Data Structures & Graph AlgorithmsNot attempted

Q90. What is the tightest upper bound time complexity to solve the All-Pairs Shortest Path problem using the Floyd-Warshall algorithm?

⚪ Status: You Skipped this question
Correct Answer: Option B (O(V³))
A
O(V log V)
B
O(V³)
Correct Answer
C
O(V²)
D
O(E²)

Why: Floyd-Warshall dynamic programming uses 3 nested loops from 1 to V, resulting in an O(V³) time complexity.

Theory of ComputationNot attempted

Q91. Chomsky hierarchy places languages into 4 types (0, 1, 2, 3). Which automaton accepts Type-1 (Context-Sensitive) languages?

⚪ Status: You Skipped this question
Correct Answer: Option B (Linear Bounded Automaton (LBA))
A
Finite State Automaton
B
Linear Bounded Automaton (LBA)
Correct Answer
C
Pushdown Automaton
D
Turing Machine

Why: Type-1 Context-Sensitive Languages are recognized by Linear Bounded Automata (nondeterministic Turing machines with bounded tape).

Object Oriented Programming (C++/Java)Not attempted

Q92. In C++, what is a Pure Virtual Function?

⚪ Status: You Skipped this question
Correct Answer: Option A (A virtual function declared with '= 0' that has no definition in base class)
A
A virtual function declared with '= 0' that has no definition in base class
Correct Answer
B
A function defined inside a friend class
C
A constructor that accepts zero parameters
D
A function declared inside a namespace

Why: A pure virtual function (`virtual void draw() = 0;`) makes the class abstract, forcing derived classes to provide concrete implementations.

Computer Networks & SecurityNot attempted

Q93. Which protocol operates at the Application Layer to map IP addresses to domain names?

⚪ Status: You Skipped this question
Correct Answer: Option B (DNS (Domain Name System))
A
ARP (Address Resolution Protocol)
B
DNS (Domain Name System)
Correct Answer
C
DHCP (Dynamic Host Configuration Protocol)
D
RARP (Reverse ARP)

Why: DNS translates human-readable hostnames (e.g. lastdayprep.in) into numerical IP addresses (Application Layer, UDP/TCP port 53).

Operating Systems & DeadlocksNot attempted

Q94. Which disk scheduling algorithm services requests by moving the head continuously from one end to the other, reversing direction at the edges?

⚪ Status: You Skipped this question
Correct Answer: Option B (SCAN (Elevator Algorithm))
A
FCFS
B
SCAN (Elevator Algorithm)
Correct Answer
C
SSTF
D
C-SCAN

Why: SCAN algorithm (Elevator Algorithm) moves disk arm back and forth across tracks, servicing requests along the way.

Computer Organization & PipelineNot attempted

Q95. In computer architecture, what is a structural hazard in instruction pipelining?

⚪ Status: You Skipped this question
Correct Answer: Option A (Resource conflict when hardware cannot support all execution combinations simultaneously)
A
Resource conflict when hardware cannot support all execution combinations simultaneously
Correct Answer
B
Data dependency between instructions
C
Branch instruction stall
D
Interrupt request failure

Why: Structural hazards happen when two pipeline stages attempt to access the same physical hardware resource (e.g. single memory port for instruction & data).

Database Systems & Relational AlgebraNot attempted

Q96. What is the output of the SQL query 'SELECT COUNT(*) FROM Employee;' if table Employee has 10 rows and 2 NULL values in salary?

⚪ Status: You Skipped this question
Correct Answer: Option B (10)
A
8
B
10
Correct Answer
C
12
D
0

Why: COUNT(*) counts ALL rows regardless of NULL values in individual columns. COUNT(salary) would return 8.

Data Structures & Graph AlgorithmsNot attempted

Q97. Which self-balancing binary search tree maintains a black-height balance property across all paths?

⚪ Status: You Skipped this question
Correct Answer: Option A (Red-Black Tree)
A
Red-Black Tree
Correct Answer
B
AVL Tree
C
Splay Tree
D
B-Tree

Why: A Red-Black tree ensures that every path from root to leaf contains the exact same number of black nodes (black-height).

Software Engineering & AgileNot attempted

Q98. In Agile development, what is a User Story?

⚪ Status: You Skipped this question
Correct Answer: Option A (A short, plain-language description of a software feature from an end-user perspective)
A
A short, plain-language description of a software feature from an end-user perspective
Correct Answer
B
A complete UML class diagram
C
A database ER schema description
D
A compiled binary module description

Why: User Stories use the format 'As a [user], I want [feature] so that [benefit]' to capture end-user functional requirements.

Compiler Design & ParsingNot attempted

Q99. In compiler design, what is an Abstract Syntax Tree (AST)?

⚪ Status: You Skipped this question
Correct Answer: Option A (A condensed parse tree omitting non-essential syntactic delimiters like parentheses and semicolons)
A
A condensed parse tree omitting non-essential syntactic delimiters like parentheses and semicolons
Correct Answer
B
A symbol table array
C
A machine code assembly file
D
A lexical token list

Why: AST abstracts away concrete syntax details (commas, parens) keeping only essential operators and operands as tree nodes.

Theory of ComputationNot attempted

Q100. If L1 is a Regular Language and L2 is a Context-Free Language, what is the language class of (L1 ∩ L2)?

⚪ Status: You Skipped this question
Correct Answer: Option A (Context-Free Language (CFL))
A
Context-Free Language (CFL)
Correct Answer
B
Strictly Regular Language
C
Non-Recursive Language
D
Type-0 Unrestricted

Why: The intersection of a Context-Free Language with a Regular Language is ALWAYS a Context-Free Language.

Computer Networks & SecurityNot attempted

Q101. In computer network security, what attack prevention role does a Stateful Inspection Firewall perform?

⚪ Status: You Skipped this question
Correct Answer: Option A (Tracks state of active connection sessions to allow returning traffic matching established state)
A
Tracks state of active connection sessions to allow returning traffic matching established state
Correct Answer
B
Encrypts password databases
C
Defragments disk blocks
D
Calculates IP checksums

Why: Stateful firewalls maintain a state table monitoring full handshake contexts and open TCP/UDP sessions.

Operating Systems & DeadlocksNot attempted

Q102. In demand paging virtual memory, what is thrashing?

⚪ Status: You Skipped this question
Correct Answer: Option A (Excessive paging activity where the system spends more time swapping pages than executing instructions)
A
Excessive paging activity where the system spends more time swapping pages than executing instructions
Correct Answer
B
High CPU utilization
C
Fast disk transfer rate
D
Cache overflow

Why: Thrashing occurs when the process degree of multiprogramming is too high, causing continuous page fault handling and CPU starvation.

Computer Organization & PipelineNot attempted

Q103. Which addressing mode is used in instructions like 'MOV AX, [BX + SI + 4]'?

⚪ Status: You Skipped this question
Correct Answer: Option A (Base Indexed Displacement Addressing Mode)
A
Base Indexed Displacement Addressing Mode
Correct Answer
B
Immediate Addressing Mode
C
Direct Addressing Mode
D
Register Relative Mode

Why: Effective Address = Base Register (BX) + Index Register (SI) + Displacement constant (4).

Database Systems & Relational AlgebraNot attempted

Q104. In an Entity-Relationship (ER) diagram, how is a Weak Entity set represented visually?

⚪ Status: You Skipped this question
Correct Answer: Option A (Double Rectangle)
A
Double Rectangle
Correct Answer
B
Double Ellipse
C
Dashed Diamond
D
Single Rectangle

Why: In ER notation: Weak Entity = Double Rectangle, Identifying Relationship = Double Diamond, Multivalued Attribute = Double Ellipse.

Data Structures & Graph AlgorithmsNot attempted

Q105. What is the worst-case space complexity of storing a sparse graph with V vertices and E edges using an Adjacency List?

⚪ Status: You Skipped this question
Correct Answer: Option A (O(V + E))
A
O(V + E)
Correct Answer
B
O(V²)
C
O(E²)
D
O(V * E)

Why: Adjacency List requires V array pointer slots + 2E linked list nodes for undirected graph, resulting in optimal O(V + E) space.

Object Oriented Programming (C++/Java)Not attempted

Q106. Which C++ feature prevents implicit conversion of single-argument constructor parameters during function calls?

⚪ Status: You Skipped this question
Correct Answer: Option A (explicit keyword)
A
explicit keyword
Correct Answer
B
friend keyword
C
constexpr keyword
D
mutable keyword

Why: Prefixing a constructor with `explicit` disables automatic type coercions by the compiler (e.g. `explicit Complex(double r)`).

Software Engineering & AgileNot attempted

Q107. Which software maintenance classification involves modifying a software system to keep it usable in a changed operating environment?

⚪ Status: You Skipped this question
Correct Answer: Option A (Adaptive Maintenance)
A
Adaptive Maintenance
Correct Answer
B
Corrective Maintenance
C
Perfective Maintenance
D
Preventive Maintenance

Why: Adaptive maintenance adjusts software to external environmental changes (e.g. new OS version, hardware upgrade, database migration).

Compiler Design & ParsingNot attempted

Q108. What is a Basic Block in compiler code optimization?

⚪ Status: You Skipped this question
Correct Answer: Option A (A sequence of consecutive instructions with single entry point and single exit point)
A
A sequence of consecutive instructions with single entry point and single exit point
Correct Answer
B
A function declaration block
C
A header file block
D
A loop body with multiple jump targets

Why: A basic block is a straight-line code sequence with no branches in except at the entry and no branches out except at the exit.

Theory of ComputationNot attempted

Q109. Which of the following problems is Turing Decidable?

⚪ Status: You Skipped this question
Correct Answer: Option A (Emptiness problem for Finite Automata (Is L(DFA) = ∅?))
A
Emptiness problem for Finite Automata (Is L(DFA) = ∅?)
Correct Answer
B
Halting problem for Turing Machines
C
Equivalence problem for Context-Free Grammars
D
Ambiguity problem for Context-Free Grammars

Why: Determining whether a DFA accepts any string (emptiness) is decidable in linear time via graph reachability from start state to final state.

Computer Networks & SecurityNot attempted

Q110. In the OSI model, which layer is responsible for end-to-end flow control, error recovery, and multiplexing?

⚪ Status: You Skipped this question
Correct Answer: Option A (Transport Layer (Layer 4))
A
Transport Layer (Layer 4)
Correct Answer
B
Network Layer (Layer 3)
C
Data Link Layer (Layer 2)
D
Session Layer (Layer 5)

Why: The Transport Layer (TCP/UDP) manages end-to-end process communication, flow control (sliding window), and segment sequencing.

Operating Systems & DeadlocksNot attempted

Q111. What is Peterson's Solution designed to solve in Concurrent Programming?

⚪ Status: You Skipped this question
Correct Answer: Option A (Critical Section Problem for 2 processes)
A
Critical Section Problem for 2 processes
Correct Answer
B
Page Fault Handling
C
Disk Allocation
D
Cache Coherence

Why: Peterson's algorithm is a software-based solution ensuring Mutual Exclusion, Progress, and Bounded Waiting for 2 concurrent processes.

Computer Organization & PipelineNot attempted

Q112. What is the function of the Program Counter (PC) register in a CPU?

⚪ Status: You Skipped this question
Correct Answer: Option A (Holds the memory address of the NEXT instruction to be fetched and executed)
A
Holds the memory address of the NEXT instruction to be fetched and executed
Correct Answer
B
Holds the result of arithmetic operations
C
Counts the total number of errors
D
Stores stack pointer offset

Why: The Program Counter (PC) automatically increments after fetching an instruction to point to the subsequent instruction in memory.

Database Systems & Relational AlgebraNot attempted

Q113. In SQL, which clause filters aggregated group results produced by GROUP BY?

⚪ Status: You Skipped this question
Correct Answer: Option B (HAVING)
A
WHERE
B
HAVING
Correct Answer
C
ORDER BY
D
LIKE

Why: WHERE filters individual rows BEFORE grouping. HAVING filters aggregated groups AFTER GROUP BY execution.

Data Structures & Graph AlgorithmsNot attempted

Q114. What is the maximum number of nodes in a Binary Tree of height h (where height of root node is 0)?

⚪ Status: You Skipped this question
Correct Answer: Option A (2^(h+1) - 1)
A
2^(h+1) - 1
Correct Answer
B
2^h
C
2^h - 1
D

Why: Sum of nodes at levels 0 to h = 2⁰ + 2¹ + ... + 2ʰ = 2^(h+1) - 1.

Object Oriented Programming (C++/Java)Not attempted

Q115. In Object-Oriented Design, what principle does the SOLID acronym's 'S' represent?

⚪ Status: You Skipped this question
Correct Answer: Option A (Single Responsibility Principle)
A
Single Responsibility Principle
Correct Answer
B
Software Reusability Principle
C
Sequential Execution Principle
D
Static Polling Principle

Why: Single Responsibility Principle states that a class should have one, and only one, reason to change.

Software Engineering & AgileNot attempted

Q116. Which Software Development Life Cycle (SDLC) model is best suited for projects with high risk and evolving requirements?

⚪ Status: You Skipped this question
Correct Answer: Option B (Spiral Model)
A
Waterfall Model
B
Spiral Model
Correct Answer
C
V-Model
D
Big Bang Model

Why: The Spiral Model incorporates iterative prototyping alongside explicit risk analysis at every phase.

Compiler Design & ParsingNot attempted

Q117. What is Left Factoring used for in Context-Free Grammars?

⚪ Status: You Skipped this question
Correct Answer: Option A (To eliminate common prefixes among production rules for predictive LL(1) parsing)
A
To eliminate common prefixes among production rules for predictive LL(1) parsing
Correct Answer
B
To remove left recursion
C
To convert CFG to CNF
D
To minimize DFA states

Why: Left factoring rewrites productions with shared prefixes (e.g. A → αβ1 | αβ2) into A → αA', A' → β1 | β2, making the grammar suitable for top-down LL(1) parsers.

Theory of ComputationNot attempted

Q118. Which machine model corresponds to Context-Sensitive Grammars (CSG) in the Chomsky Hierarchy?

⚪ Status: You Skipped this question
Correct Answer: Option A (Linear Bounded Automaton (LBA))
A
Linear Bounded Automaton (LBA)
Correct Answer
B
Deterministic Finite Automaton
C
Pushdown Automaton
D
Read-Only Turing Machine

Why: Linear Bounded Automaton (LBA) is a restricted form of Turing Machine whose tape head cannot move beyond the portion of tape containing the input string.

Computer Networks & SecurityNot attempted

Q119. In the TCP/IP protocol suite, which protocol resolves a known 32-bit IP address to a physical 48-bit MAC address?

⚪ Status: You Skipped this question
Correct Answer: Option A (ARP (Address Resolution Protocol))
A
ARP (Address Resolution Protocol)
Correct Answer
B
RARP (Reverse Address Resolution Protocol)
C
ICMP
D
IGMP

Why: ARP broadcasts a query 'Who has IP X.X.X.X?' on the local Ethernet segment to discover the target node's physical MAC address.

Operating Systems & DeadlocksNot attempted

Q120. In operating systems memory management, what is internal fragmentation?

⚪ Status: You Skipped this question
Correct Answer: Option A (Wasted memory space inside an allocated fixed-size partition or page frame)
A
Wasted memory space inside an allocated fixed-size partition or page frame
Correct Answer
B
Unallocated memory blocks scattered outside allocated partitions
C
Cache miss penalty
D
Virtual address translation failure

Why: Internal fragmentation occurs when a process is assigned a fixed memory block (e.g. 4KB page) larger than its actual data requirements, leaving unused padding space inside.

UPPSC Polytechnic Computer Lecturer Verified PYQ Mock Test | LastDayPrep