Nyquist Sampling Theorem states:
Sampling frequency must be at least twice the maximum frequency present in the signal.
$ f_s \ge 2f_{max} $
| List-I (Boolean Expression) | List-II (Dual of Boolean Expression) |
| A. $x(y+0)$ | I. $(x+0)(y\cdot z)$ |
| B. $\bar{x}+(\bar{y}+z)$ | II. $x+y\cdot1$ |
| C. $\bar{x}(y+0)$ | III. $\bar{x}+\bar{y}\cdot1$ |
| D. $x+(\bar{y}+z)$ | IV. $(x+0)(y\cdot \bar{z})$ |
Dual is obtained by interchanging:
$+$ ↔ $\cdot$
$0$ ↔ $1$
Applying dual rule:
A → III
B → IV
C → II
D → I
The number of tokens in the following line:
for i in range(begin : end : step) :
Tokens are the smallest meaningful units of a program.
Break the statement:
for | i | in | range | ( | begin | : | end | : | step | ) | :
Tokens:
for
i
in
range
(
begin
:
end
:
step
)
:
Total tokens = 12
For the given two machines which of the following is correct?
From the diagrams:
• Both machines are deterministic (each state has exactly one transition for each input symbol).
• The first machine has states A and B with transitions on a and b.
• The second machine has states A, B, C, but the accepted language behavior matches the first machine.
Both machines accept the same language, even though the number of states differs.
Thus they are equivalent machines.
Complement of fuzzy set:
$\mu_{A'}(x) = 1 - \mu_A(x)$
Compute:
$x_1$: $1 - 0.3 = 0.7$
$x_2$: $1 - 0.7 = 0.3$
$x_3$: $1 - 0.4 = 0.6$
Thus,
$A' = {(x_1,0.7),(x_2,0.3),(x_3,0.6)}$
Interrupt Service Routine (ISR) steps:
Save processor registers → C
Check which device raised interrupt → D
Service the device → B
Restore processor registers → E
Re-enable interrupt facility → A
Correct sequence:
C, D, B, E, A
Number of spanning trees:
For complete graph:
$\tau(K_n)=n^{n-2}$
A: $K_3 = 3^{1} = 3$
B: $K_4 = 4^{2} = 16$
For complete bipartite graph:
$\tau(K_{m,n}) = m^{n-1} n^{m-1}$
C: $K_{2,2} = 2^{1} \times 2^{1} = 4$
For cycle graph:
$\tau(C_n)=n$
D: $C_5 = 5$
Thus:
A = 3
C = 4
D = 5
B = 16
Increasing order:
A, C, D, B
Standard I/O techniques are:
• Programmed I/O
• Interrupt-driven I/O
• Direct Memory Access (DMA)
Rotational I/O and Channelized I/O are not standard CPU I/O techniques.
Thus:
A, B, D are correct.
Common properties of social networks:
• Scale-free degree distribution → True
• Small world property → True
• Short average path length → True
However, most social networks are not necessarily directed; many are modeled as undirected networks.
Thus the statement that is not a common property is:
A grammar is ambiguous if a string generated by it has more than one parse tree.
Equivalent definitions:
• More than one leftmost derivation
• More than one rightmost derivation
Thus the correct statements are:
B and C.
Steps in page replacement:
No frame is free → D
Find a frame to replace → A
Free that frame → E
Update the page table → B
Use the freed frame for the new page → C
Typical DBMS query processing steps:
Scanning, parsing and validating → C
Query optimizer → A
Query code generator → D
Runtime database processor → B
Correct order:
C → A → D → B
Insert words sequentially into BST.
banana → root
peach → right of banana
apple → left of banana
pear → right of peach
coconut → left of peach
mango → right of coconut
papaya → right of mango
Longest path:
banana → peach → coconut → mango → papaya
Number of edges = 4
| List-I | List-II |
| A. Verification | I. White box Testing |
| B. Validation | II. Black box Testing |
| C. Internal logic exercise | III. Quality Control |
| D. Software requirement exercise | IV. Quality Assurance |
Verification → Quality Assurance → IV
Validation → Quality Control → III
Internal logic exercise → White box testing → I
Software requirement exercise → Black box testing → II
Matching:
A → IV
B → III
C → I
D → II
Memory required:
$2048 \times 8$
Each chip:
$128 \times 4$
First match word size:
$8 / 4 = 2$ chips per word.
Now match number of words:
$2048 / 128 = 16$
Total chips:
$16 \times 2 = 32$
A: False when $r=1, p=0$ → Not tautology
B: False when $p=1, r=0$ → Not tautology
C:
$\sim p \rightarrow (p \rightarrow r)$
Always true → Tautology
D:
$(p \land r) \rightarrow (p \rightarrow r)$
Always true → Tautology
E:
$\sim(p \rightarrow r) \rightarrow p$
Always true → Tautology
Thus tautologies:
C, D, E
Sequential circuits depend on previous state (memory).
• Flip-flop → sequential circuit
• Counter → sequential circuit
Multiplexer, Decoder and Adder are combinational circuits.
| List-I | List-II |
| A. Union | I. Virtual Reality |
| B. Function | II. Shadow mask |
| C. Interactive Environment | III. Subroutine |
| D. Output device | IV. User defined data type |
Union → User defined data type → IV
Function → Subroutine → III
Interactive Environment → Virtual Reality → I
Output device → Shadow mask → II
Matching:
A → IV
B → III
C → I
D → II
A Perceptron is a single-layer feed-forward neural network used for linear classification.
| List-I | List-II |
| A. Back Tracking | I. Automata |
| B. Infinite languages with matching numbers | II. Undecidable Problem |
| C. Canonical LR Parser | III. Predictive Parser |
| D. Post Correspondence Problem | IV. Large number of states |
Backtracking → Predictive parsing may require backtracking → III
Infinite languages with matching numbers → handled using Automata → I
Canonical LR parser → requires large number of states → IV
Post Correspondence Problem → Undecidable problem → II
Matching:
A → III
B → I
C → IV
D → II
Transmission delay
$= \frac{\text{Frame size}}{\text{Bandwidth}}$
$= \frac{10\times10^6}{6\times10^6}$
$= 1.6667\ s$
Propagation delay
Distance $=5000\ km =5\times10^6\ m$
$= \frac{5\times10^6}{2\times10^8}$
$=0.025\ s$
Router delay
Each router delay $=2\mu s+1\mu s=3\mu s$
Total routers $=20$
Total delay $=20\times3\mu s=60\mu s=0.00006\ s$
Total latency
$=1.6667+0.025+0.00006$
$\approx1.691726\ s$
First bit is fixed as 0, so remaining 3 bits are free.
Possible strings:
0000
0001
0010
0011
0100
0101
0110
0111
Total outcomes $=8$
Strings with at least two consecutive 0's:
0000
0001
0010
0011
0100
Favourable outcomes $=5$
Probability
$=\frac{5}{8}$
In LR parsing, shift-reduce conflicts occur when the parser can either shift the next input symbol or reduce using a rule.
These conflicts are resolved using operator precedence and associativity rules.
Backpropagation computes error at the output layer (sink) and propagates the error backwards through hidden layers toward the input layer (source) to update weights.
Speed hierarchy of memory/storage:
CPU Registers → fastest
SRAM → cache memory
DRAM → main memory
Hard Disk → secondary storage
Magnetic Tape → slowest storage
Order:
C → B → A → E → D
A → False (only owner or DBA can grant privileges)
B → True
C → False (system error is not a malicious attack)
D → True
False statements:
A and C
Regular languages:
Closed under union, concatenation, intersection, complement, kleene star.
Context-free languages:
Closed under union, concatenation, kleene star.
Not closed under intersection and complement.
Thus incorrect statements:
C and D
Effective address:
$EA = ADR + XR$
This is indexed addressing, where the address field is added to the index register.
For 8-bit signed integer (two’s complement):
Range = $-2^{7}$ to $2^{7}-1$
Least value = $-128$
For 8-bit unsigned integer:
Range = $0$ to $2^{8}-1$
Least value = $0$
Cardinality means number of elements in the set.
$|A_1| = 2$
$|A_2| = 4$
$|A_3| = 1$
$|A_4| = 3$
$|A_5| = 5$
Increasing order:
$1 < 2 < 3 < 4 < 5$
So order becomes:
$A_3, A_1, A_4, A_2, A_5$
A:
For every integer $n$, choose $m=n^2+1$
Then $n^2<m$ → True
B:
$\exists m$ such that $n<m^2$ for all integers $n$.
But integers are unbounded → False
C:
$n^2+m^2=5$
Example: $1^2+2^2=5$ → True
D:
$n^2+m^2=6$
No integer solution → False
E:
$n+m=4$
$n-m=1$
Add equations:
$2n=5$ → $n=2.5$ (not integer) → False
True statements: A and C
Complexity increases as follows:
Rule-based system → simplest
Shallow neural network → moderate complexity
CNN image classification → more complex
Autonomous driving → highly complex system
Thus increasing order:
A → B → C → D
| List-I | List-II |
| A. Complement | I. Adder |
| B. Ex-OR | II. Instruction decoding |
| C. Accumulator | III. Negative number representation |
| D. Control Unit | IV. Arithmetic and Logic operations |
Complement → used in negative number representation → III
Ex-OR → used in arithmetic and logic operations → IV
Accumulator → used with adder → I
Control Unit → instruction decoding → II
Correct Matching:
A → III
B → IV
C → I
D → II
IPv4 header order (relevant fields):
Type of Service → Identification → Flags → Protocol → Options
Thus order:
E → D → A → C → B
| List-I | List-II |
| A. RAID level-2 | I. block-interleaved |
| B. RAID level-3 | II. error-correcting-codes |
| C. RAID level-4 | III. reed-solomon codes |
| D. RAID level-6 | IV. bit-interleaved |
Choose the correct answer from the options given below:
RAID-2 → error correcting codes (Hamming) → II
RAID-3 → bit interleaved parity → IV
RAID-4 → block interleaved parity → I
RAID-6 → Reed–Solomon codes → III
Correct Matching:
A → II
B → IV
C → I
D → III
Cyclomatic complexity formula:
$V(G) = E - N + 2P$
Where
$E$ = number of edges
$N$ = number of nodes
$P$ = number of connected components (here $P=1$)
From the graph:
Nodes = 10
Edges = 12
So,
$V(G) = 12 - 10 + 2(1)$
$V(G) = 4$
Goals of reverse engineering:
• Recover lost design information
• Understand system structure
• Detect side effects
• Manage system complexity
Data flow itself is not a goal, but rather a representation or analysis technique.
Properties of complete/full binary tree:
• If internal nodes = $n$ → leaves = $n+1$ ✔
• If leaves = $l$ → internal nodes = $l-1$ ✔
• Total vertices = $2n-1$ when leaves = $n$ ✔
• Such trees always have odd number of vertices ✔
Thus all statements are correct.
| List-I | List-II |
| A. Thread spawn | I. to convert a blocking system call into a nonblocking call |
| B. Block thread | II. to reclaim pages |
| C. Jacketing | III. processor turn to the execution of another ready thread |
| D. Flush | IV. thread is provided with its own register context |
Thread spawn → thread gets its own register context → IV
Block thread → CPU switches to another ready thread → III
Jacketing → convert blocking system call to nonblocking → I
Flush → reclaim pages → II
Matching:
A → IV
B → III
C → I
D → II
$2^{50} \times 2^{-38} = 2^{12}$ seconds
$2^{12} = 4096$ seconds
Convert to minutes:
$4096/60 \approx 68.27$ minutes
$\approx 1.14$ hours
Letters: 26 (A to Z)
Two digit positive integers:
01 to 99 → 99 numbers
Total combinations:
$26 \times 99 = 2574$
Typical modeling steps:
Formulate model mathematically → B
Solve mathematically → C
Fit solution with data → A
If poor fit, reformulate → D
Interpret results → E
Correct sequence:
B → C → A → D → E
This grammar produces the dangling-else problem.
In such cases the else can be associated with more than one if, producing more than one parse tree.
Thus the grammar is ambiguous.
| List-I | List-II |
| A. Batch Multiprogramming | I. allows more efficient use of main memory |
| B. Time sharing | II. user no longer has direct access to the processor |
| C. Monitor | III. Maximize processor use |
| D. Reentrant Procedures | IV. minimize response time |
Batch Multiprogramming → maximize CPU utilization → III
Time sharing → minimize response time → IV
Monitor → user does not directly control processor → II
Reentrant procedures → efficient use of memory → I
Matching:
A → III
B → IV
C → II
D → I
In uniform crossover, a mask (binary mask) determines which parent contributes each gene.
Thus mask-based crossover = uniform crossover.
Defect Removal Efficiency (DRE):
$\text{DRE} = \frac{\text{Errors found before delivery}}{\text{Errors before + after delivery}}$
Thus the metric described is Defect Removal Efficiency.
Typical construction steps:
Problem statement → D
Convert to regular expression → B
Convert to NFA-ε → C
Convert to DFA → E
Minimize DFA → A
Order:
D → B → C → E → A
p is a pointer variable and must store the address of x, written as:
p = &x;
But the program assigns:
p = x;
which means an integer is assigned to a pointer, causing a compilation error (type mismatch).
In fuzzy set theory, cardinality is the sum of membership values:
$|A| = \sum \mu_A(x)$
The result depends on membership values and may vary.
Properties of segmentation:
• Segments can be loaded independently → True
• No internal fragmentation → True
• Large virtual address space → True
Segmentation does not reduce multiprogramming; it usually supports better memory utilization.
Thus incorrect statement:
In genetic algorithms, Actual Count refers to the expected number of copies of a chromosome in the next generation, used in selection (fitness proportionate selection).
For the software quality assurance, which of the followings are correct?
A. Execution of code
B. No execution of code
C. Preventive technique
D. A corrective technique
Software Quality Assurance (SQA):
• Focuses on process improvement
• Works as a preventive technique
• Usually involves reviews, audits and standards
• Does not require execution of code
Thus:
B → True
C → True
A → False
D → False (corrective is more related to debugging/testing)
For the following Parents in figure (1) and (2):
Which is correct?
The right parts of the parents are exchanged:
Parent₁: 10110 | 010
Parent₂: 10101 | 111
After crossover:
Child₁: 10110 | 111
Child₂: 10101 | 010
This is exactly what is shown in figure (2).
Thus it represents one-point crossover.
$a*b=a+b+2$
Associativity
$(a*b)*c=(a+b+2)+c+2=a+b+c+4$
$a*(b*c)=a+(b+c+2)+2=a+b+c+4$
Identity element:
$a*e=a$
$a+e+2=a$
$e=-2$
Inverse:
$a*b=-2$
$a+b+2=-2$
$b=-a-4$
Characteristic equation
$r^2-8r+16=0$
$(r-4)^2=0$
$r=4$
General solution
$a_n=(c_1+c_2n)4^n$
Thus valid sequences:
$4^n$
$n4^n$
Python → OOP
Smalltalk → pure OOP
Perl → supports OOP
SQL Plus → database query interface.
Predicate logic → symbolic syntactic structure
Slot-and-filler → symbolic frame representation
Conceptual dependency → semantic
Nonmonotonic systems → reasoning method
| List-I | List-II |
| A. $A\rightarrow aB\ |\ a,\ a\in T,\ A,B\in V$ | I. Recursive Descent Parser |
| B. $A\rightarrow BC\ |\ a,\ a\in T,\ A,B,C\in V$ | II. Turing Machine |
| C. $LL(1)$ grammar | III. Chomsky Normal Form |
| D. Halting problem | IV. Finite Automata |
$A\rightarrow aB|a$ → Regular grammar → Finite Automata → IV
$A\rightarrow BC|a$ → Chomsky Normal Form → III
$LL(1)$ grammar → Recursive Descent Parser → I
Halting problem → Turing Machine → II
Matching:
$A\rightarrow IV$
$B\rightarrow III$
$C\rightarrow I$
$D\rightarrow II$
Line drawing algorithms used in computer graphics are:
DDA algorithm
Bresenham algorithm
Mid-point algorithm is generally used for circle drawing.
Software development process:
Communication → Planning → Modeling → Construction → Deployment
Order:
$D \rightarrow A \rightarrow C \rightarrow B \rightarrow E$
Embedded OS features:
• real-time scheduling
• interrupt handling
• memory partitioning
File system features like non-sequential files are typical for general purpose OS.
Linux 4-level paging:
register → page directory → page middle directory → page table → offset
Order:
$A \rightarrow C \rightarrow E \rightarrow D \rightarrow B$
Let
$f(2^k) = g(k)$
Then recurrence becomes
$g(k) = 5g(k-1) + 3$
with
$g(0) = f(1) = 7$
Solve recurrence.
Homogeneous solution:
$g_h(k) = C5^k$
Particular solution:
Assume constant $A$
$A = 5A + 3$
$-4A = 3$
$A = -\frac{3}{4}$
General solution:
$g(k) = C5^k - \frac{3}{4}$
Use initial condition
$g(0) = 7$
$C - \frac{3}{4} = 7$
$C = \frac{31}{4}$
Thus
$f(2^k) = \frac{31}{4}5^k - \frac{3}{4}$
Stock available:
Red wool = $8$
Green wool = $10$
Blue wool = $15$
Dual objective function uses resource quantities.
Thus
$Min\ P = 8u + 10v + 15w$
Let
$x$ = unit of cloth A
$y$ = unit of cloth B
Income:
$Max\ Z = 30x + 50y$
Constraints
$2x + 3y \le 8$
$3x + 2y \le 10$
$2y \le 15$
Corner point:
$x = 0.8,\ y = 2$
$Z = 30(0.8) + 50(2)$
$Z = 24 + 100$
$Z = 124$
Red wool constraint
$2x + 3y \le 8$
Green wool constraint
$3x + 2y \le 10$
Blue wool constraint
$2y \le 15$
or
$y \le 7.5$
At optimal point
$2x + 3y = 8$
$3x + 2y = 10$
Solve
$x = 0.8$
Income per unit cloth
A = ₹30
B = ₹50
Thus objective function
$Max\ Z = 30x + 50y$
We need the number of distinct customers who placed orders, so we count unique customer_id from orders table.
Correct query:
Select COUNT(DISTINCT customer_id) As total_customers From orders;
Orders table usually contains:
customer_id → referencing Customers table
Thus it contains a foreign key.
From passage:
• customers can place multiple orders
• orders can contain multiple products
• representatives manage customer accounts
Thus correct statement:
Each sales representative can manage multiple customer accounts.
From passage:
• customers can place multiple orders
• orders can contain multiple products
• representatives manage customer accounts
Thus correct statement:
Each sales representative can manage multiple customer accounts.
One customer can place multiple orders.
Thus relationship:
Customer → Orders
$1 : N$
Using Master Theorem / recurrence expansion:
(A)
$T(n) = T(n/2) + 1$
Complexity → $O(\log n)$
(E)
$T(n) = T(n-1) + 1$
Complexity → $O(n)$
(D)
$T(n) = 2T(n/2) + \sqrt{n}$
$n^{\log_2 2} = n$
Since $\sqrt{n} < n$
→ $O(n)$
(B)
$T(n) = 2T(n/2) + n$
$n^{\log_2 2} = n$
→ $O(n \log n)$
(C)
$T(n) = 3T(n/3) + n$
$n^{\log_3 3} = n$
→ $O(n \log n)$
Increasing order
$O(\log n) < O(n) < O(n) < O(n\log n) < O(n\log n)$
| List-I | List-II |
| A. Representation of bits | I. Transport layer |
| B. Physical Address | II. Physical layer |
| C. Logical Address | III. Network layer |
| D. Segmentation and reassembly | IV. Data link layer |
A. Representation of bits → Physical layer
B. Physical Address → Data Link Layer
(MAC address)
C. Logical Address → Network Layer
(IP address)
D. Segmentation and reassembly → Transport Layer
Thus:
A → II
B → IV
C → III
D → I
Access time order (slowest → fastest):
Magnetic Tape → Optical Disk → Magnetic Disk → Main Memory → Registers
Thus ascending order:
C → E → B → D → A
| List-I (Testing Type) | List-II (Description) |
| A. Unit testing | I. Testing individual components of the software |
| B. Integration testing | II. Testing the interaction between integrated components |
| C. System testing | III. Testing to verify the system meets business needs |
| D. Acceptance testing | IV. Testing the complete system to ensure it meets requirements |
Choose the correct answer from the options given below.
Unit Testing → Testing individual components
Integration Testing → Testing interaction between modules
System Testing → Testing the complete system
Acceptance Testing → Verifying business/user requirements
Thus mapping:
A → I
B → II
C → IV
D → III
Arrange the following Language Classes in ascending order according to their expressive power, as defined by Chomsky hierarchy.
(A) Context-free languages
(B) Context-sensitive languages
(C) Regular languages
(D) Unrestricted grammars
Chomsky hierarchy order:
Regular Languages
< Context-Free Languages
< Context-Sensitive Languages
< Recursively Enumerable (Unrestricted) Languages
Thus order:
C → A → B → D
Arrange the following Language Classes in ascending order according to their expressive power, as defined by Chomsky hierarchy.
(A) Context-free languages
(B) Context-sensitive languages
(C) Regular languages
(D) Unrestricted grammars
Chomsky hierarchy order:
Regular Languages
< Context-Free Languages
< Context-Sensitive Languages
< Recursively Enumerable (Unrestricted) Languages
Thus order:
C → A → B → D
| List-I | List-II |
| A. Dijkstra’s Algorithm | I. Find the shortest path between all pairs of vertices in a graph with positive or negative edge weights |
| B. Floyd-Warshall Algorithm | II. Finds the shortest path in a weighted graph with non-negative edge weights |
| C. Bellman-Ford Algorithm | III. Sorts elements by repeatedly moving them past neighboring elements that are smaller |
| D. Prim’s Algorithm | IV. Determines the strongly connected components in a directed graph |
Dijkstra Algorithm → shortest path with non-negative weights
Floyd-Warshall → all pairs shortest paths
Bellman-Ford → handles negative edge weights
Prim → Minimum Spanning Tree
Thus correct matching:
A → II
B → I
Remaining pair becomes
C → IV
D → III
(A) Initiate DMA transfer request
(B) Transfer data directly between peripheral and memory
(C) Processor grants DMA control over the system bus
(D) DMA controller completes data transfer and signals completion
DMA transfer sequence:
Device initiates DMA request
CPU grants bus control to DMA controller
DMA transfers data between memory and device
DMA signals completion
Order:
A → C → B → D
Dirac’s theorem states that if a simple graph with $n \ge 3$ vertices satisfies
$deg(v) \ge \frac{n}{2}$
for every vertex $v$, then the graph is Hamiltonian.
Thus the degree of each vertex must be at least half of the number of vertices.
Typical DNS resolution process:
Client queries Local DNS Server
Local DNS server checks cache
If not found → Root DNS server queried
Root server refers to TLD DNS server
TLD server refers to Authoritative DNS server
Thus the correct order is
(B) → (C) → (D) → (E) → (A)
Given FDs
$CH \rightarrow C$
$A \rightarrow BC$
$B \rightarrow CEH$
$E \rightarrow A$
$A \rightarrow EFG$
From
$A \rightarrow BC$
$A \rightarrow EFG$
we get
$A \rightarrow BCFG E$
Then
$B \rightarrow CEH$
Thus
$A^+ = {A,B,C,D,E,F,G,H}$
So $A$ is a candidate key.
Now check dependency
$E \rightarrow A$
Since $E$ is not a superkey, but RHS contains a prime attribute, it satisfies 3NF but violates BCNF.
Therefore the relation is
in 3NF but not in BCNF.
| List-I (computing systems) | List-II |
| (A) Half Adder | (I) Has $n$ input and $2^n$ output |
| (B) Decoder | (II) CPU Storage unit |
| (C) Register | (III) Used to store program at runtime |
| (D) Main memory | (IV) 2-bit addition circuit |
Choose the correct answer from the options given below :
Arrange the following steps in the correct order to solve the Knapsack problem using Dynamic Programming.
(A) Define the base case when the capacity is zero $(0)$ or no items are left to consider
(B) Compute the maximum value that can be obtained using items up to the $i$-th item and a knapsack capacity of $0$
(C) Identify subproblems and their dependencies based on items weights and values
(D) Initialize a table to store results of subproblems
(E) Iterate through each item and each possible capacity to fill the table
Choose the correct answer from the options given below :
Match List - I with List - II.
| List - I | List - II |
| (A) The activation function | (I) is called the delta rule. |
| (B) The learning method of perceptron | (II) is one of the key components of the perceptron as in the most common neural network architecture. |
| (C) Areas of application of artificial neural network include | (III) is always boolean like a switch. |
| (D) The output of the perceptron | (IV) system identification and control. |
Choose the correct answer from the options given below :
Consider the following statements regarding combinational and sequential circuits.
(A) Output of combinational circuits depends on the only current input.
(B) Output of combinational circuit depends on the both current input and previous output.
(C) Output of sequential circuit depends on the current input.
(D) Output of sequential circuit depends on both current input and previous output.
Choose the correct answer from the options given below :
Consider the Grammar :
$T \rightarrow Qx$
$Q \rightarrow RS$
$R \rightarrow y \mid \varepsilon$
$S \rightarrow z \mid \varepsilon$
Here $x, y, z$ are terminals and $T, Q, R, S$ are non terminals.
What will be the follow set of the non terminal $R$ ?
Two computers A and B are configured as follows :
A has IP address 203.197.2.53 and subnet mask 255.255.128.0
B has IP address 203.197.5.201 and subnet mask 255.255.192.0
What one of the following statement is true ?
Subnet mask A
$255.255.128.0$
Network range:
$203.197.0.0$ → $203.197.127.255$
B address $203.197.5.201$ lies in this range
So A thinks B is in same network
Subnet mask B
$255.255.192.0$
Network blocks:
$203.197.0.0$ → $203.197.63.255$
A address $203.197.2.53$ lies in this range
So B also thinks A is same network
Thus both assume same network.
| List - I (IP Address) | List - II (Class) |
| (A) 10.20.30.40 | (I) Class E |
| (B) 210.20.30.3 | (II) Class B |
| (C) 180.30.100.10 | (III) Class A |
| (D) 252.5.15.11 | (IV) Class C |
IP class ranges
Class A → $1-126$
Class B → $128-191$
Class C → $192-223$
Class D → $224-239$
Class E → $240-255$
Check first octet:
A: $10$ → Class A → (III)
B: $210$ → Class C → (IV)
C: $180$ → Class B → (II)
D: $252$ → Class E → (I)
Thus
(A)-(III), (B)-(IV), (C)-(II), (D)-(I)
What is SQL primarily used for in the context of relational databases?
SQL (Structured Query Language) is used to:
create tables
insert data
update data
delete data
query data
Thus its primary purpose is managing and manipulating relational databases.
Productivity relation:
$Productivity = \dfrac{Effort}{Size}$
Given:
$Effort = 2000$ person-month
$Productivity = 5$ person-month per KLOC
So
$Size = \dfrac{Effort}{Productivity}$
$Size = \dfrac{2000}{5}$
$Size = 400$ KLOC
Match List - I with List - II.
| List - I (software design principles) | List - II (Definitions) |
| (A) Cohesion | (I) Degree to which one module relies on another module |
| (B) Coupling | (II) Dividing a software system into distinct modules |
| (C) Abstraction | (III) Degree to which elements of a module belong together |
| (D) Modularity | (IV) Simplifying complex reality by modeling classes appropriate to the problem |
Choose the correct answer from the options given below :
efinitions:
Cohesion → elements of a module belong together → (III)
Coupling → dependency between modules → (I)
Abstraction → simplify complexity → (IV)
Modularity → divide system into modules → (II)
Thus:
(A)-(III), (B)-(I), (C)-(IV), (D)-(II)
Consider the transactions $T_1, T_2, T_3$ and the schedules $S_1$ and $S_2$ given below.
$T_1 : r_1(x); r_1(z); w_1(z)$
$T_2 : r_2(y); r_2(z); w_2(z)$
$T_3 : r_3(y); r_3(x); w_3(y)$
$S_1$ :
$r_1(x); r_3(y); r_3(x); r_2(y); r_2(z); w_3(y); w_3(z); r_1(z); w_1(x); w_1(z)$
$S_2$ :
$r_1(x); r_3(y); r_2(y); r_3(x); r_1(z); r_2(z); w_3(y); w_1(x); w_2(z); w_1(z)$
Which one of the following statements about the schedules is TRUE ?
To check conflict serializability we build precedence graph.
Conflicts:
$T_1 \rightarrow T_3$
$T_3 \rightarrow T_2$
$T_2 \rightarrow T_1$
Cycle exists:
$T_1 \rightarrow T_3 \rightarrow T_2 \rightarrow T_1$
Therefore
$S_1$ not conflict-serializable
Conflicts:
$T_3 \rightarrow T_1$
$T_2 \rightarrow T_1$
$T_3 \rightarrow T_2$
Graph has no cycle
Serializable order:
$T_3 \rightarrow T_2 \rightarrow T_1$
Thus
$S_2$ is conflict-serializable
Consider the following statement regarding special purpose registers.
(A) Program Counter (PC) keeps the track of next instruction executed
(B) Instruction register holds the address of first instruction to be executed
(C) Accumulator holds the output of ALU
(D) Program Counter (PC) keeps the track of only first instruction of the program
Choose the correct answer from the options given below :
(A) True
PC stores address of next instruction
(B) False
Instruction Register stores current instruction, not address
(C) True
Accumulator stores ALU result
(D) False
PC tracks every next instruction, not only first
Thus correct statements:
(A) and (C)
Which of the following are Agile Process Models ?
(A) Extreme Programming (XP)
(B) Waterfall
(C) Scrum
(D) Spiral
(E) Incremental
Choose the correct answer from the options given below :
Agile models include iterative and flexible development approaches.
Check each:
(A) Extreme Programming (XP) → Agile methodology ✔
(B) Waterfall → Traditional sequential model ✘
(C) Scrum → Agile framework ✔
(D) Spiral → Risk-driven traditional model ✘
(E) Incremental → Development strategy but not strictly Agile model here
Thus Agile models are:
Extreme Programming and Scrum
Arrange the following phases of database design in the correct order :
(A) Physical Design
(B) Conceptual Design
(C) Logical Design
(D) Requirement Analysis
Choose the correct answer from the options given below :
Standard database design process:
Requirement Analysis
Conceptual Design
Logical Design
Physical Design
Thus order:
(D) → (B) → (C) → (A)
Which of the following statements are TRUE about mutual exclusion in concurrent programming ?
(A) Mutual exclusion ensures that only one process can be in a critical section at any given time.
(B) Mutual exclusion are designed to prevent conflicts and ensure that only one process can access shared resources at a time.
(C) Mutual exclusion can use various algorithms to ensure that processes do not enter the critical section simultaneously.
(D) Mutual exclusion allows multiple processes to access the critical section simultaneously to improve performance.
Choose the correct answer from the options given below :
(A) True
Mutual exclusion ensures only one process enters critical section at a time.
(B) True
It prevents conflicts on shared resources.
(C) True
Algorithms like Peterson, Dekker, semaphore, mutex ensure mutual exclusion.
(D) False
Critical section cannot be accessed simultaneously by multiple processes.
Thus correct statements:
(A), (B), (C)
Consider a relation schema $R = (U, V, W, X, Y, Z)$, on which the following functional dependencies hold:
${U \rightarrow V,; VW \rightarrow X,; Y \rightarrow W,; X \rightarrow U}$
The candidate keys of $R$ are:
Functional dependencies:
$U \rightarrow V$
$VW \rightarrow X$
$Y \rightarrow W$
$X \rightarrow U$
Start with $UY$:
$U \rightarrow V$
$Y \rightarrow W$
Thus we get $V,W$
Then
$VW \rightarrow X$
Then
$X \rightarrow U$
So closure:
$UY^+ = {U,V,W,X,Y}$
Add $Z$ to cover all attributes.
Thus minimal key:
$UYZ$
Similarly:
$VYZ$ and $XYZ$
Thus candidate keys:
$UYZ,; VYZ,; XYZ$
Host A (on TCP/IPv4 Networks) send an IP Datagram D to host B (also on TCP/IPv4 network). Assume that no error occurred during transmission of D, when D reaches host B. Which of following header field may differ from that of original datagram D ?
(A) TTL
(B) Checksum
(C) Fragment offset
(D) Source IP
(E) Destination IP
Choose the correct answer from the options given below :
(A) TTL → Decreases at every router ✔
(B) Header checksum → Recomputed whenever TTL changes ✔
(C) Fragment offset → May change if fragmentation occurs ✔
(D) Source IP → Does not change ✘
(E) Destination IP → Does not change ✘
Thus fields that may differ:
TTL, Checksum, Fragment offset
Consider a CSMA/CD network that transmits data at the rate of 100 Mbps over a 1 kilometre cable with no repeater. If the minimum frame size required for this network is 1250 bytes, what is the signal speed (km/sec) in the cable ?
Minimum frame size:
$1250 \text{ bytes} = 1250 \times 8 = 10000 \text{ bits}$
Transmission rate:
$100 \text{ Mbps} = 100 \times 10^6 \text{ bits/sec}$
Transmission time:
$T = \frac{10000}{100 \times 10^6}$
$T = 10^{-4} \text{ sec}$
In CSMA/CD:
$T = 2 \times$ propagation delay
So propagation delay:
$\frac{T}{2} = 5 \times 10^{-5}$ sec
Distance = 1 km
Signal speed:
$v = \frac{distance}{time}$
$v = \frac{1}{5 \times 10^{-5}}$
$v = 20000 \text{ km/sec}$
Initial values
$a = 5,; b = 10$
First call
swap(a,b)
$a = 10,; b = 5$
Second call
swap(a,b)
$a = 5,; b = 10$
Thus final output
5 10
Consider the three-way handshaking process followed during TCP connection establishment between two hosts A and B. Let S and R be two random 32-bit starting sequence numbers chosen by A and B respectively. Suppose A sends a TCP segment having SYN bit = 1, SEQ number = S and ACK bit = 0 and B accepts the connection request.
Which one of the following choices represents the information present in the TCP segment header that is sent by B to A ?
TCP 3-way handshake:
Step 1
A → B
SYN = 1
SEQ = S
Step 2
B → A
SYN = 1
ACK = 1
SEQ = R
ACK = S + 1
Thus correct header fields:
SYN = 1
SEQ = R
ACK = 1
ACK = S + 1
Arrange the following steps of file handling in C in the correct order :
(A) Close the file
(B) Read from or write to the file
(C) Open the file
(D) Check for error
Choose the correct answer from the options given below :
Correct file handling sequence in C:
Open file
Check for error
Read / Write
Close file
Thus order:
(C) → (D) → (B) → (A)
Select the Sorting Algorithms that are stable.
(A) Quick Sort
(B) Bubble Sort
(C) Insertion Sort
(D) Merge Sort
(E) Shell Sort
Choose the correct answer from the options given below :
Quick Sort → Not stable ✘
Bubble Sort → Stable ✔
Insertion Sort → Stable ✔
Merge Sort → Stable ✔
Shell Sort → Not stable ✘
Thus stable algorithms:
Bubble Sort, Insertion Sort, Merge Sort
But among given options, only
(B) and (C)
appear together correctly.
Match List - I with List - II.
| List - I (operating system concepts) | List - II (characteristics) |
| (A) Paging | (I) Evicts least recently used process |
| (B) LRU (Least Recently Used) | (II) Extends physical memory |
| (C) C-SCAN | (III) Logical to physical mapping |
| (D) Virtual Memory | (IV) Circular disk access |
Choose the correct answer from the options given below :
Paging → Logical to physical address mapping → (III)
LRU → Replace least recently used page → (I)
C-SCAN → Circular disk scheduling → (IV)
Virtual Memory → Extends physical memory → (II)
Thus:
(A)-(III), (B)-(I), (C)-(IV), (D)-(II)
Which of the following statements are TRUE about Process Control Block (PCB) ?
(A) The PCB contains information about the process state, such as whether it is running, waiting or terminated
(B) The PCB includes the program code and data segments of the process
(C) The PCB stores the process’s memory management information, such as page tables and segment tables
(D) The PCB is used to track process scheduling information and CPU registers for process
Choose the correct answer from the options given below :
(A) True
PCB stores process state (running, ready, waiting).
(B) False
Program code and data are stored in process memory, not in PCB.
(C) True
PCB stores memory management information (page tables, segment tables).
(D) True
PCB contains CPU registers and scheduling information.
Thus correct statements:
(A), (C), (D)
Arrange the following steps of Feature Driven Development (FDD) process in the correct sequence :
(A) Develop an overall model
(B) Build by feature
(C) Plan by feature
(D) Design by feature
(E) Build a feature list
Choose the correct answer from the options given below :
Standard FDD lifecycle steps:
Develop overall model
Build feature list
Plan by feature
Design by feature
Build by feature
Thus order:
(A) → (E) → (C) → (D) → (B)
Match List - I with List - II.
| List - I (Recurrence Relations) | List - II (Complexity) |
| (A) $T(n)=2T(n/2)+n$ | (I) $T(n)=\theta(n\log n)$ [exact solution] |
| (B) $T(n)=T(n/2)+1$ | (II) $O(n^2)$ |
| (C) $T(n)=2T(n/2)+1$ | (III) $T(n)=\theta(n)$ [exact solution] |
| (D) $T(n)=T(n-1)+1$ | (IV) $O(\log n)$ |
Choose the correct answer from the options given below :
(A) $T(n)=2T(n/2)+n$
Master theorem
$a=2,; b=2,; f(n)=n$
$\Rightarrow T(n)=\theta(n\log n)$
So (A) → (I)
(B) $T(n)=T(n/2)+1$
Divide size halves each step
$\Rightarrow T(n)=O(\log n)$
So (B) → (IV)
(C) $T(n)=2T(n/2)+1$
Master theorem
$\Rightarrow T(n)=\theta(n)$
So (C) → (III)
(D) $T(n)=T(n-1)+1$
Linear recurrence
$\Rightarrow T(n)=O(n)$
Closest option given:
(D) → (II)
Thus matching:
(A)-(I), (B)-(IV), (C)-(III), (D)-(II)
Function pointer syntax:
return_type (*pointer_name)(arguments);
Example:
int (*func)(int,int);
Meaning:
func is a pointer
pointing to a function
returning int
taking two int parameters
Thus correct declaration:
int (*func)(int,int);
Relational databases (MySQL, PostgreSQL, Oracle etc.) store data in relations (tables).
Each table consists of:
Rows → tuples / records
Columns → attributes / fields
Thus relational model structure:
tables with rows and columns
Which of the following tasks could be attained using syntax trees in compiler design ?
(A) Type Checking
(B) Code Generation
(C) Code Optimization
(D) Error Handling
Choose the correct answer from the options given below :
Syntax trees (Abstract Syntax Tree – AST) are used in later compiler phases.
(A) Type Checking → Done using syntax tree ✔
(B) Code Generation → Uses syntax tree ✔
(C) Code Optimization → Uses syntax tree representation ✔
(D) Error Handling → Mainly done during lexical / syntax analysis ✘
Thus correct tasks:
(A), (B), (C)
Given a project with an estimated effort of 1500 person-hours and a team of 5 people, how many days will it take to complete the project, if each person works 8 hours a day ?
Total effort
$1500$ person-hours
Work per day by team:
$5 \times 8 = 40$ hours/day
Days required
$= \frac{1500}{40}$
$= 37.5$
Consider the following C code :
#include<stdio.h>
int temp = 0;
int fun(int x, int y)
{
int z;
temp++;
if (y == 3)
return (x*x*x);
else
{
z = fun(x, y/3);
return (z*z*z);
}
}
int main()
{
fun(4,81);
printf("%d", temp);
}
What will be the output of the above code ?
Recursive calls divide $y$ by $3$ each time.
Call sequence:
$fun(4,81)$
$fun(4,27)$
$fun(4,9)$
$fun(4,3)$
Total calls = 4
Each call increments temp.
So
$temp = 4$
Given:
$P$ : It is hot day
$q$ : Temperature is $48^\circ C$
Expression:
$\neg P \land \neg q$
Meaning:
$\neg P$ → It is not a hot day
$\neg q$ → Temperature is not $48^\circ C$
Combined with AND:
Neither $P$ nor $q$
Thus sentence:
"It is neither a hot day nor temperature is $48^\circ C$"
Statement:
“Joy is loved by everyone”
Meaning:
Every person $x$ loves Joy.
Mathematically:
$\forall x; L(x,;Joy)$
(A)
$R_1={(1,1),(1,2),(2,1),(2,2),(3,4),(4,1),(4,4)}$
(B)
$R_2={(1,1),(1,2),(2,1)}$
(C)
$R_3={(1,1),(1,2),(1,4),(2,1),(2,2),(3,3),(4,1),(4,4)}$
(D)
$R_4={(2,1),(3,1),(3,2),(4,1),(4,2),(4,3)}$
(E)
$R_5={(1,1),(1,2),(1,3),(1,4),(2,2),(2,3),(2,4),(3,3),(3,4),(4,4)}$
Choose the correct answer from the options given below :
For a relation on ${1,2,3,4}$ to be reflexive, it must contain
$(1,1),(2,2),(3,3),(4,4)$
Check each:
$R_1$ → missing $(3,3)$ ✘
$R_2$ → missing $(3,3),(4,4)$ ✘
$R_3$ → contains $(1,1),(2,2),(3,3),(4,4)$ ✔
$R_4$ → missing all diagonal pairs ✘
$R_5$ → contains all $(1,1),(2,2),(3,3),(4,4)$ ✔
Thus reflexive relations:
$R_3$ and $R_5$
Fifth normal form is concerned with :
Database normal forms:
1NF → atomic values
2NF → remove partial dependency
3NF → remove transitive dependency
BCNF → stronger FD rules
4NF → multivalued dependency
5NF → join dependency
A coin is tossed successively three times. Find the Probability $(P)$, Event $(E)$, Sample space $(S)$ of getting exactly one head or two heads, where $n$ is number of occurrence.
(A) $n(S)=8$ and $n(E)=4$
(B) $n(E)=6$ and $n(S)=8$
(C) $P(E)=\frac{3}{4}$
(D) $P(E)=\frac{1}{2}$
Choose the correct answer from the options given below :
Sample space for 3 tosses:
$S={HHH,HHT,HTH,HTT,THH,THT,TTH,TTT}$
Thus
$n(S)=8$
Event: exactly 1 head or 2 heads
1 head → ${HTT,THT,TTH}$
2 heads → ${HHT,HTH,THH}$
So
$n(E)=6$
Probability
$P(E)=\frac{6}{8}=\frac{3}{4}$
Thus correct statements:
(B) and (C)
Consider the given number $(45)_y$ where $y$ is the base of the number. Some of the possible values of $y$ are given below.
(A) 5
(B) 6
(C) 7
(D) 8
Choose the correct answer from the options given below :
In base $y$, digits must be less than base.
Number $(45)_y$ has digit 5.
Thus
$y>5$
Possible bases:
$6,7,8,\dots$
Given options:
6, 7, 8
Thus
(B), (C), (D)
Match List - I with List - II.
| List - I | List - II |
| (A) HTML | (I) Allow for dynamic and interactive web pages. |
| (B) DHTML | (II) Defines the structure of web pages. |
| (C) XML | (III) Object-oriented programming language for web applications. |
| (D) JAVA | (IV) Used for data storage and transport. |
Choose the correct answer from the options given below :
HTML → defines structure of web pages → (II)
DHTML → dynamic interactive web pages → (I)
XML → data storage and transport → (IV)
JAVA → object-oriented programming language → (III)
Thus matching:
(A)-(II), (B)-(I), (C)-(IV), (D)-(III)
Standard compiler phases:
Lexical Analysis
Syntax Analysis
Semantic Analysis
Intermediate Code Generation
Code Optimization
Thus order:
(A) → (C) → (B) → (D) → (E)
Match List - I with List - II.
| List - I (Algorithms) | List - II (Characteristics) |
| (A) First Come First Served (FCFS) | (I) Each process is assigned a priority |
| (B) Shortest Job First (SJF) | (II) Ensures fair allocation of CPU time by assigning time slice |
| (C) Round Robin (RR) | (III) Processes are executed in the order they arrive |
| (D) Priority Scheduling | (IV) Select the process for execution with smallest next burst time |
Typical Software Development Life Cycle (SDLC) activities:
Requirement Analysis ✔
System Design ✔
Implementation / Testing
Deployment ✔
Check options:
(A) Requirement Analysis → ✔
(B) System Design → ✔
(C) Code Refactoring → maintenance activity, not core lifecycle step ✘
(D) Deployment → ✔
(E) Substructure → not SDLC activity ✘
Thus correct:
(A), (B), (D)
(A) True
Constructors can be overloaded.
(B) True
Constructors do not have return type.
(C) False
Constructors are member functions, not friend functions.
(D) False
Destructor is called when object is destroyed.
Thus correct statements:
(A) and (B)
Check dependency preservation
Given FDs:
$P \rightarrow Q$
$Q \rightarrow R$
$R \rightarrow S$
$S \rightarrow Q$
Decomposed relations:
$R_1(P,Q)$
$R_2(Q,R)$
$R_3(Q,S)$
Each dependency is preserved:
$P \rightarrow Q$ → in $R_1$
$Q \rightarrow R$ → in $R_2$
$R \rightarrow S$ → derived via $Q$ in $R_3$
$S \rightarrow Q$ → in $R_3$
Thus dependency preserving
Check lossless join:
Common attribute between relations is Q, which functionally determines other attributes through dependencies.
Hence not lossless join.
Typical Agile workflow:
Planning
Design
Development
Testing
Release
Thus order:
(E) → (A) → (D) → (C) → (B)
Initial:
arr = {1,2,3,4,5}
p → arr[0]
First statement:
*p++
Post-increment
Value printed = *p = 1
Then pointer moves to next element.
Now:
p → arr[1]
Second statement:
*(p+1)
p+1 → arr[2]
Value = 3
Output:
1 3
Which of the following properties correctly describe a Regular Grammar ?
(A) All productions rules are of the form $A \rightarrow xB$ or $A \rightarrow x$, where $A$ and $B$ are non terminal symbols and $x$ is a terminal symbol.
(B) Regular grammars are more powerful than context-free grammars and can express any type of language.
(C) There is a direct correspondence between regular grammar and finite automata.
(D) Regular grammars can generate languages that are not recognised by any type of automata.
Choose the correct answer from the options given below :
(A) True
Regular grammar productions follow
$A \rightarrow aB$ or $A \rightarrow a$
(B) False
Regular grammar less powerful than CFG
(C) True
Regular grammar ↔ Finite automata equivalence
(D) False
Regular languages are recognized by finite automata
Consider the function in C code :
Cal(a, b)
{
if (b != 1)
{
if (a != 1)
{
printf("*");
Cal(a/2, b);
}
}
else
{
b = b - 1;
Cal(10, b);
}
}
How many times * is going to be printed, if the function is called with
Cal(10, 10) ?
Observe recursion:
Each call prints * while dividing a by 2.
Sequence:
10 → 5 → 2 → 1
For each b value, stars printed = 3.
b decreases from 10 to 1.
Thus:
$9 \times 3 = 27$
Total stars printed = 27.
What is the output of code given below :
#include<iostream.h>
using namespace std;
class Base {
public:
Base(){
cout<<"Base Const";
}
virtual ~Base(){
cout<<"Base dest";
}
};
class derived : public Base {
public:
Derived(){
cout<<"Derived Const";
}
~Derived(){
cout<<"Derived dest";
}
};
int main()
{
Base *b = new Derived();
delete b;
return 0;
}
Step-1: Object creation
Base *b = new Derived();
Constructor order in inheritance:
Base constructor
Derived constructor
Output:
Base Const
Derived Const
Step-2: Deleting object
Base destructor is virtual, so destructors call in reverse order:
Derived destructor
Base destructor
Output:
Derived dest
Base dest
Final Output:
Base Const Derived Const Derived dest Base dest
If a software project has 2000 lines of code (LOC) and the average productivity rate is 10 LOC per person-hour, how many person-hours are required to complete the project?
Consider the following if $p$ and $q$ are two statements.
(A) $\sim (p \land q) = \sim p \lor \sim q$
(B) $\sim (p \lor q) = \sim p \land \sim q$
(C) $p \land \sim p = T$
(D) $\sim (p \Rightarrow q) = p \land \sim q$
(E) $p \lor q = \sim p \lor \sim q$
Choose the correct answer from the options given below :
Which of the following are context free language ?
(A) ${w^i x^j y^k z^l \mid i + k = j + l,; i,j,k,l \ge 0}$
(B) ${w^i x^j y^k z^l \mid i = j \text{ and } k = l,; i,j,k,l \ge 0}$
(C) ${w^i x^j y^k z^l \mid i = j = k \text{ and } k \ne l,; i,j,k,l \ge 0}$
(D) ${w^i x^j y^k z^l \mid i = j = k + l,; i,j,k,l \ge 0}$
(E) ${w^i x^j y^k z^l \mid i = j \text{ and } k \ne l,; i,j,k,l \ge 0}$
Choose the correct answer from the options given below :
Out of following steps in the proper sequence for simplifying a Boolean function using a Karnaugh map (K-map).
(A) Identify and group the largest possible cluster of $1$'s
(B) Draw the K-map for the given Boolean function
(C) Write the simplified Boolean expression from the grouped clusters
(D) Transfer the truth table values to the K-map
Choose the correct answer from the options given below :
A multi processor system with 16 processors is used to execute a parallelizable task. If the serial portion of the task takes 200 clock cycles and the parallel portion takes 800 clock cycles. When all 16 processors are used how many total clock cycles are required to complete the task?
If $L_1$ and $L_2$ are context free languages, which of the following is True about $L_1 \cap L_2$ ?
Arrange the following stages of a Turing Machine (TM) operation in the correct order as they occur during computation.
(A) Writing a symbol on the tape
(B) Moving the tape head left or right
(C) Reading a symbol from the tape
(D) Transitioning to a new state based on the current state and symbol read
(E) Halting and accepting or rejecting the input
Choose the correct answer from the options given below :
Which of the following statements are TRUE about Privileged Instructions?
(A) It can only be executed by the Operating System kernel and not by user applications.
(B) It is designed to perform operations that can directly affect the hardware or system state such as I/O operations or changing memory management setting.
(C) User applications can execute privileged instructions if they have correct permissions, set by the Operating System.
(D) It is usually executed in user mode to ensure the safety and security of the system.
Choose the correct answer from the options given below :
A CPU has a 5-stage pipeline with the following stages:
Fetch (F), Decode (D), Execute (E), Memory (M) and Write-back (W).
Each stage takes one clock cycle to complete. Assume there are no pipeline stalls and the pipeline is initially empty.
How many clock cycles are required to complete the execution of 10 instructions?
Match List – I with List – II.
| List – I (Counter) | List – II (uses/working) |
| (A) N-bit Ring Counter | (I) Uses universal clock |
| (B) Synchronous Counter | (II) Counts exactly N states |
| (C) Asynchronous Counter | (III) Counts 0 to 9 |
| (D) Decimal Counter | (IV) Main clock is applied to first flip-flop only |
Choose the correct answer from the options given below :
| List – I | List – II |
| (A) Natural language processing | (I) A method of training algorithm by rewarding desired behaviour and/or punishing undesired one. |
| (B) Reinforcement learning | (II) System designed to emulate the decision making abilities of a human expert. |
| (C) Support vector machine | (III) A branch of AI focused on understanding and generating human language. |
| (D) Expert system | (IV) A machine learning technique that finds the hyperplane that best separates different classes in a feature space. |
Choose the correct answer from the options given below :
40 software professionals were interviewed for a job.
25 knew PYTHON, 20 knew JAVA and 7 knew neither language.
How many knew both languages?
How does a relational database ensure data integrity?
Consider the following code :
#include<stdio.h>
void f1(char *x, char *y) {
char *t;
t = x;
x = y;
y = t;
}
void f2(char **x, char **y) {
char *t;
t = *x;
*x = *y;
*y = t;
}
int main()
{
char *a = "ONE", *b = "TWO";
f1(a, b);
printf("%s %s", a, b);
f2(&a, &b);
printf("%s %s", a, b);
return 0;
}
What will be the output of the above code?
(A) Natural Language Processing
(B) Image Processing
(C) Pattern Recognition
(D) Speech Recognition
Choose the correct answer from the options given below :
What is the role of Back Propagation Algorithm ?
Which of the following layers may be more than one in number?
Artificial Neural Networks (ANNs) are inspired by:
What is the role of weights in an ANN?
What is the significance of the Banker’s algorithm in terms of resource management?
Which data structure does the Banker’s Algorithm use to maintain the state of available, maximum and allocated resources?
White-box testing focuses on the internal structure and logic of the program.
• Path Testing checks different execution paths inside the program → White box
• Loop Testing checks loop structures and iterations → White box
• Regression Testing verifies that new changes do not break existing functionality → not white box specifically
• Non-functional testing tests performance, usability, etc. → not white box
Therefore, the correct options are A and B.
The techniques used to handle the phantom problem are
A. Time stamping
B. Index locking
C. Predicate locking
D. Execution indexing
The phantom problem occurs in database concurrency control when a transaction re-executes a query and finds new rows inserted by another transaction.
Techniques used to prevent phantom problem:
• Index locking – locks index ranges to prevent insertion of new tuples in the range.
• Predicate locking – locks records satisfying a condition.
Time stamping and execution indexing are not specifically used to solve phantom problem.
Therefore, correct options are B and C.
Which of the following are type of interface in an ATM network ?
A. user-to-user
B. user-to-network
C. network-to-network
D. host-to-network
E. user-to-host
In an ATM (Asynchronous Transfer Mode) network, the two standard interfaces are:
• UNI (User-to-Network Interface)
• NNI (Network-to-Network Interface)
Hence the correct options are B and C.
Arrange the following in correct order, so that they can follow a proper run time environment :
A. Programming statement
B. Compilation
C. Memory allocation
D. Type of variable
E. Memory deallocation
The correct execution flow in a programming environment is:
Programming statement (A) – Program is written.
Compilation (B) – Code is compiled to machine/intermediate code.
Type of variable (D) – Variables are recognized with their types.
Memory allocation (C) – Memory is allocated during execution.
Memory deallocation (E) – Memory is released after execution.
Thus the correct order is:
Match List-I with List-II.
$f(n) = a f(n/b) + g(n)$ is a divide-and-conquer recurrence relation for the Listed-I algorithms, match their recurrence in Listed-II.
| List-I (Algorithms) | List-II (Recurrence Relation) |
| A. Binary Search | I. $f(n) = 7f(n/2) + 15n^2/4$ |
| B. Find maximum and minimum of a sequence | II. $f(n) = 2f(n/2) + n$ |
| C. Merge Sort | III. $f(n) = 2f(n/2) + 2$ |
| D. Fast Matrix Multiplication | IV. $f(n) = f(n/2) + 2$ |
• Binary Search halves the input and performs constant work
$f(n) = f(n/2) + O(1)$ → IV
• Find maximum and minimum (divide and conquer)
Two recursive calls with constant comparisons
$f(n) = 2f(n/2) + 2$ → III
• Merge Sort divides into two parts and merges in linear time
$f(n) = 2f(n/2) + n$ → II
• Fast Matrix Multiplication (Strassen)
$f(n) = 7f(n/2) + O(n^2)$ → I
Thus matching:
A → IV
B → III
C → II
D → I
Match List-I with List-II :
| List-I | List-II |
| A. Channelization protocol | I. ALOHA |
| B. Bit-oriented protocol | II. TDMA |
| C. Random-access protocol | III. Reservation |
| D. Controlled-access protocol | IV. HDLC |
Channelization protocol divides the channel into multiple portions → example TDMA
A → II
• Bit-oriented protocol works with frames and bits → HDLC
B → IV
• Random-access protocol allows stations to transmit randomly → ALOHA
C → I
• Controlled-access protocol controls which station transmits → Reservation
D → III
Thus matching:
A → II
B → IV
C → I
D → III
An IPv4 packet has arrived with the first few hexadecimal digits as shown below. How many hops can this packet travel before being dropped? The data belongs to what upper-layer protocol?
$(5400001800100110040601\ldots)_{16}$
Convert header bytes of IPv4 packet:
Hex sequence (grouped in bytes):
54 00 00 18 00 10 01 10 04 06 01 ...
Important fields:
• TTL (Time To Live) field = 04 (in hex)
TTL = 4 → packet can travel 4 hops before being discarded.
• Protocol field = 06 (in hex)
Protocol number 6 corresponds to TCP.
Therefore:
TTL = 4 hops
Protocol = TCP
Which of the following control problem does not exist, when processes unaware of each other during interaction?
When processes are unaware of each other, they do not coordinate or compete for shared resources in a way that forms circular waiting.
• Mutual exclusion → may still be required for shared resources
• Starvation → possible if scheduling is unfair
• Deadlock → possible if processes wait on each other
Data coherence problems occur when processes share and modify common data.
If processes are unaware and do not share data directly, this issue does not arise.
Which of the following is the Markup language?
A. HTML
B. XML
C. DHTML
D. LML
E. PML
HTML (HyperText Markup Language) → Markup language
• XML (Extensible Markup Language) → Markup language
• DHTML (Dynamic HTML) → Extension of HTML used for dynamic webpages
LML and PML are not standard markup languages
Arrange the following prefix expressions based on their values in increasing order:
A. + - * 2 / 8 4 3 2
B. ↑ - * 3 3 * 4 2 5
C. + - ↑ 3 2 ↑ 2 3 / 6 - 4 2
D. * + 3 + 3 ↑ 3 + 1 1 3
Evaluate each prefix expression.
A:
2 / 8 4 3 2
= + - * 2 2 3 2
= + - 4 3 2
= + 1 2
= 3
B:
↑ - * 3 3 * 4 2 5
= ↑ - 9 8 5
= ↑ 1 5
= 1
C:
↑ 3 2 ↑ 2 3 / 6 - 4 2
= + - 9 8 / 6 2
= + 1 3
= 4
D:
3 + 3 ↑ 3 + 1 1 3
= * + 3 + 3 9 3
= * + 3 12 3
= * 15 3
= 45
Values:
A = 3
B = 1
C = 4
D = 45
Increasing order:
B < A < C < D
Match List-I with List-II:
| List-I (Line coding scheme) | List-II (Bandwidth – average) |
| A. NRZ-L | I. B = N/4 |
| B. 2B1Q | II. B = N/8 |
| C. 4D-PAM5 | III. B = N/3 |
| D. MLT-3 | IV. B = N/2 |
NRZ-L → bandwidth = N/2 → IV
2B1Q → bandwidth = N/4 → I
4D-PAM5 → bandwidth = N/8 → II
MLT-3 → bandwidth ≈ N/3 → III
Thus matching:
A → IV
B → I
C → II
D → III
The instructions
ADD R₁, A, B
ADD R₂, C, D
MUL X, R₁, R₂
evaluate the expression $X = (A + B)(C + D)$ in which of the following?
A 3-address instruction has the form:
Result = Operand1 op Operand2
Example:
ADD R₁, A, B → R₁ = A + B
ADD R₂, C, D → R₂ = C + D
MUL X, R₁, R₂ → X = R₁ × R₂
Each instruction uses three addresses (two operands and one result).
For the fuzzy sets
$A = {(x_1,0.3), (x_2,0.7), (x_3,0.4)}$ and
$B = {(x_1,0.5), (x_2,0.2), (x_3,0.5)}$, the $A \cap B$ would be:
For fuzzy sets, the intersection operation is defined as:
$\mu_{A \cap B}(x) = \min(\mu_A(x), \mu_B(x))$
Now compute for each element:
$x_1$ : $\min(0.3, 0.5) = 0.3$
$x_2$ : $\min(0.7, 0.2) = 0.2$
$x_3$ : $\min(0.4, 0.5) = 0.4$
Thus,
$A \cap B = {(x_1,0.3),(x_2,0.2),(x_3,0.4)}$
Which of the following genetic algorithm operation is computationally most expensive?
In Genetic Algorithms, the most computationally expensive part is usually reproduction, which involves:
• crossover
• mutation
• generating new offspring
• evaluating fitness for the next generation
These steps are repeated many times and require significant computation.
Multiple Inheritance is permitted directly in:
A. C++
B. Java
C. Python
D. VB.NET
E. BASIC
C++ → supports multiple inheritance directly ✔
• Java → does not support multiple inheritance with classes (only interfaces) ✘
• Python → supports multiple inheritance ✔
• VB.NET → supports multiple inheritance through interfaces only ✘
• BASIC → does not support multiple inheritance ✘
Thus the languages that directly support multiple inheritance are:
C++ and Python
The I/O methods in which memory addresses and I/O addresses are distinct is called:
A. Isolated I/O
B. Memory-Mapped I/O
C. Strobe Control
D. Handshaking
E. Interrupt
Isolated I/O (Port-mapped I/O) → Memory and I/O address spaces are separate.
• Memory-Mapped I/O → I/O devices share the same address space as memory.
The question asks where memory and I/O addresses are distinct, which corresponds to Isolated I/O.
Among the given combinations, the most appropriate option containing this concept is A.
Which of the following is the function of the semantic analysis phase of compilation process?
Compiler phases:
Lexical analysis → Tokenization
Syntax analysis → Parsing
Semantic analysis → Type checking, type conversion, scope checking
Optimization → Loop optimization, data flow analysis
Thus type conversion belongs to semantic analysis.
IP is responsible for ______ communication while TCP is responsible for ______ communication.
In the TCP/IP model:
• IP (Internet Protocol) provides host-to-host communication between devices.
• TCP (Transmission Control Protocol) provides process-to-process communication using port numbers.
The Boolean expression for the following would be:
$F(A,B,C) = \Sigma(0,2,6)$
$d(A,B,C) = \Sigma(1,3,5)$
Minterms:
$0 = 000$
$2 = 010$
$6 = 110$
Don't care terms:
$1 = 001$
$3 = 011$
$5 = 101$
Using K-map simplification:
Group $(0,2)$ → $A'C'$
Group $(2,6)$ → $BC'$
Thus,
$F = A'C' + BC'$
Factorizing:
$F = C'(A' + B)$
Which simplifies to:
$F = A' + BC'$
A computer system with cache access time of 100 ns, a main memory access time of 1100 ns, and a hit ratio of 0.9. The average access time would be:
Average Memory Access Time:
$AMAT = Hit\ Time + Miss\ Rate \times Miss\ Penalty$
Hit time = 100 ns
Miss rate = $1 - 0.9 = 0.1$
Miss penalty = $1100 - 100 = 1000$
So,
$AMAT = 100 + 0.1 \times 1000$
$AMAT = 100 + 100 = 200\ ns$
Services provided by point-to-point protocol (PPP):
A. frame format
B. establishment of the link
C. flow control
D. sequence numbering
E. authentication
PPP provides:
• Frame format
• Link establishment (LCP)
• Authentication (PAP, CHAP)
PPP does not provide flow control or sequence numbering.
Thus:
A → Yes
B → Yes
E → Yes
In Windows scheduling, which of the following option is correct?
Windows uses 32 priority levels:
• 0–15 → Non-real-time (variable priorities)
• 16–31 → Real-time priorities
Thus number of non-real-time priorities = 16.
Which of the following is/are true in case of tree locking?
A. It ensures shorter waiting times.
B. It ensures freedom from deadlock.
C. Transaction can lock data items earlier.
D. It does not ensure greater amount of concurrency.
Tree locking protocol (graph-based protocol) rules:
• The first lock may be on any node.
• A transaction may lock a node only if it already holds a lock on the parent.
• Nodes may be unlocked anytime but cannot be relocked.
Properties:
• Deadlock cannot occur because locking follows a hierarchical order.
• Transactions can lock data items earlier since unlocking can happen anytime.
Thus:
B → True
C → True
Find dominant growth for each.
A:
$3x^3+(\log x)^4$
Dominant term = $x^3$
$n=3$
B:
$(x^5+x^2+1)/(x^3+1) \approx x^2$
$n=2$
C:
$(x^3+x^2+1)/(x^2+1) \approx x$
$n=1$
D:
$(x^2+5\log x)/(x^2+1) \approx 1$
$n=0$
Thus:
D → $O(1)$
C → $O(x)$
B → $O(x^2)$
A → $O(x^3)$
Increasing order:
D, C, B, A
Each time an a is read:
$a \rightarrow$ push 3 a's onto the stack.
Each b pops one a from the stack.
Thus:
1 input a produces 3 stack symbols, so we need 3 b's to remove them.
Therefore the relation is:
$b = 3a$
Language:
${a^n b^{3n} \mid n>0}$
Online Test Series,
Information About Examination,
Syllabus, Notification
and More.
Online Test Series,
Information About Examination,
Syllabus, Notification
and More.