All mock tests are FREE till 31 December — register to save your progress
UGC NET · PAPER 2

UGC NET Paper 2 Computer Science – June 2024 (Re-Exam) – Question Paper with Answer Key

100 questions · answer key at the end · updated 26 Oct 2026

Solved by The Binary Brothers: every question has the correct answer and an explanation. Open any question for its full solution, or practise it in the unit-wise mock tests.

Q1. Consider the grammar:
S → A
A → $B$ | id
B → B, A | A
If I₀ = CLOSURE({[S → ·A]}), then how many items will be in the set GOTO(I₀, $)?
  1. 3
  2. 4
  3. 5
  4. 6
Answer & explanation →
Q2. In a schema R(A, B, C, D, E, F, G, H), each field of R contains only atomic values. F = {CH → G, A → BC, B → CFH, E → A, F → EG} is a set of functional dependencies, and F⁺ is exactly the set of FDs that hold on R. The relation R is:
  1. In 1NF, but not in 2NF
  2. In 2NF, but not in 3NF
  3. In 3NF, but not in BCNF
  4. In BCNF
Answer & explanation →
Q3.

Which of the following statements about pointers in C are TRUE.

(A) Pointers can be used to access array elements

(B) Pointers can store the address of another pointer

(C) Pointers are automatically deferenced in expression

(D) Pointers cannot be used to access structure members

  1. (A) and (C) Only
  2. (A) and (B) Only
  3. (B) and (C) Only
  4. (C) and (D) Only
Answer & explanation →
Q4. In a token ring network the transmission speed is 10⁷ bps and the propagation speed is 200 m/μs. The 1-bit delay in this network is equivalent to
  1. 20 m
  2. 30 m
  3. 50 m
  4. 40 m
Answer & explanation →
Q5. 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 is 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:
  1. (A), (B), (C) Only
  2. (B), (C), (D) Only
  3. (B), (D), (A) Only
  4. (A), (C), (D) Only
Answer & explanation →
Q6. 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 will * be printed if the function is called with Cal(10, 10)?
  1. 25
  2. 23
  3. 24
  4. 27
Answer & explanation →
Q7.

Consider the following relations on {1, 2, 3, 4}. Which of them are reflexive? (A) R₁ = {(1,1), (1,2), (2,1), (2,2), (3,4), (4,1), (4,4)} (B) R₂ = {(1,1), (1,2), (2,1)} (C) R₃ = {(1,1), (1,2), (1,4), (2,1), (2,2), (3,3), (4,1), (4,4)} (D) R₄ = {(2,1), (3,1), (3,2), (4,1), (4,2), (4,3)} (E) R₅ = {(1,1), (1,2), (1,3), (1,4), (2,2), (2,3), (2,4), (3,3), (3,4), (4,4)}

  1. (A), (B) and (C) Only
  2. (A), (D) and (E) Only
  3. (D) and (E) Only
  4. (C) and (E) Only
Answer & explanation →
Q8. Consider a relation schema R = (U, V, W, X, Y, Z), on which the following functional dependencies hold: {U → V, VW → X, Y → W, X → U}. The candidate keys of R are:
  1. UY, VY
  2. UY, VY, XY
  3. UYZ, VYZ, VWZ
  4. UYZ, VYZ, XYZ
Answer & explanation →
Q9. Which of the following is the correct way to declare a function pointer in C?
  1. int *func (int, int);
  2. int (*func) (int, int);
  3. int (func*) (int, int);
  4. int *func* (int, int);
Answer & explanation →
Q10.

Arrange the following steps of Feature Drive 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

  1. (A), (C), (B), (E), (D)
  2. (A), (E), (C), (D), (B)
  3. (B),(A),(D),(E),(C)
  4. (A), (B), (C), (E), (D)
Answer & explanation →
Q11.

Consider the number (45)ᵧ, where y is the base. Some possible values of y are: (A) 5 (B) 6 (C) 7 (D) 8

  1. (A), (B) and (C) Only
  2. (B), (C) and (D) Only
  3. (A), (C) and (D) Only
  4. (A), (B), (C) and (D)
Answer & explanation →
Q12. Consider the following C program:
#include<stdio.h>
int main() {
  int x[] = {2,4,6,8,10};
  int a, b = 0, *y = x + 4;
  for (a = 0; a < 5; a++) {
    b = b + (*y - a) - *(y - a);
  }
  printf("%d\n", b);
  return 0;
}
What will be the output of the above C program?
  1. 4
  2. 6
  3. 8
  4. 10
Answer & explanation →
Q13.

Match List - I with List - II.

Figure
  1. (A)-(II), (B)-(IV), (C)-(III), (D)-(I)
  2. (A)-(IV), (B)-(III), (C)-(II), (D)-(I)
  3. (A)-(II), (B)-(I), (C)-(IV), (D)-(III)
  4. (A)-(III), (B)-(IV), (C)-(II), (D)-(I)
Answer & explanation →
Q14.

Match List - I with List - II.

Figure
  1. (A)-(I), (B)-(II), (C)-(III), (D)-(IV)
  2. (A)-(II), (B)-(IV), (C)-(III), (D)-(I)
  3. (A)-(III), (B)-(II), (C)-(IV), (D)-(I)
  4. (A)-(I), (B)-(IV), (C)-(III), (D)-(II)
Answer & explanation →
Q15.

Which of the following are Agile Process Models ?

(A) Extreme Programming (XP)

(B) Waterfall

(C) Scrum

(D) Spiral

(E) Incremental

  1. (A) and (C) Only
  2. (B) and (C) Only
  3. (A) and (D) Only
  4. (B) and (E) Only
Answer & explanation →
Q16. Which of the following statements are TRUE about privileged instructions?
(A) They can only be executed by the operating system kernel and not by user applications.
(B) They are designed to perform operations that can directly affect the hardware or system state, such as I/O operations or changing memory-management settings.
(C) User applications can execute privileged instructions if they have the correct permissions set by the operating system.
(D) They are usually executed in user mode to ensure the safety and security of the system.
Choose the correct answer from the options given below:
  1. (A) and (B) Only
  2. (A), (B) and (C) Only
  3. (B) and (C) Only
  4. (B), (C) and (D) Only
Answer & explanation →
Q17. Consider a CSMA/CD network that transmits data at 100 Mbps over a 1 km 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?
  1. 8000
  2. 16000
  3. 12000
  4. 20000
Answer & explanation →
Q18.

Consider the Grammar:

T → Qx

Q → RS

R → y ∣ ϵ

S → z ∣ ϵ 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?

  1. {x,y}
  2. {y,z}
  3. {z,x}
  4. {ϵ}
Answer & explanation →
Q19.

Host A (on TCP/IPv4 Networks) send an IP Datagram D to host B (also on TCP/IPv4 network). Assume that no error occured during transmission of D, when D reaches 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

  1. (A) and (B) Only
  2. (A), (B) and (C) Only
  3. (A), (B), (C) and (D) Only
  4. (A), (B), (C) and (E) Only
Answer & explanation →
Q20. Which of the following properties correctly describe a Regular Grammar?
(A) All production rules are of the form A → xB or A → 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 grammars 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:
  1. (A) and (B) Only
  2. (B) and (C) Only
  3. (C) and (D) Only
  4. (A) and (C) Only
Answer & explanation →
Q21. Consider a schema R(P, Q, R, S) and the functional dependencies P → Q, Q → R, R → S, S → Q. Then the decomposition of R into R₁(P, Q), R₂(Q, R) and R₃(Q, S) is:
  1. Dependency preserving and lossless join
  2. Lossless join but not dependency preserving
  3. Dependency preserving but not lossless join
  4. Not dependency preserving and not lossless join
Answer & explanation →
Q22.

Arrange the following phases of the Agile process in the correct sequence :

(A) Design

(B) Release

(C) Testing

(D) Development

(E) Planning

  1. (A), (B), (D), (E), (C)
  2. (A), (D), (E), (B), (C)
  3. (E), (A), (D), (C), (B)
  4. (E), (D), (A), (C), (B)
Answer & explanation →
Q23.

Which of the following are TRUE about constructors in C++ ?

(A) A constructor can be overloaded.

(B) A constructor does not have a return type.

(C) A constructor must be declared as a friend function.

(D) A constructor is called when an object is destroyed.

  1. (B), (C), (D) Only
  2. (B), (C) Only
  3. (A), (B), (C) Only
  4. (A), (B) Only
Answer & explanation →
Q24.

Let P be "It is hot day" and q be "The temperature is 48°C". Write in simple sentences the meaning of ¬p∧¬q.

  1. It is hot day or temperature is 48°C
  2. It is cold day or temperature is 48°C
  3. It is neither a hot day nor temperature is 48°C
  4. It is not a hot day
Answer & explanation →
Q25. 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?
  1. 100
  2. 150
  3. 200
  4. 250
Answer & explanation →
Q26.

Arrange the following steps in proper sequence involved in a Genetic Algorithm :

(A) Selection

(B) Initialization

(C) Crossover

(D) Mutation

(E) Evaluation

  1. (A), (B), (C), (D), (E)
  2. (E), (A), (B), (D), (C)
  3. (B), (E), (A), (C), (D)
  4. (A), (C), (B), (D), (E)
Answer & explanation →
Q27.
#include<stdio.h>
void f1(char *x, char *y) {
char *t1;
t1 = x;
x = y;
y = t1;
}
void f2(char **x, char **y) {
char *t1;
t1 = *x;
*x = *y;
*y = t1;
}
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;
}
  1. ONE TWO TWO ONE
  2. TWO ONE ONE TWO
  3. ONE TWO ONE TWO
  4. TWO ONE TWO ONE
Answer & explanation →
Q28. What is SQL primarily used for in the context of relational databases?
  1. To design user interfaces
  2. To create and manipulate databases
  3. To display data on web pages
  4. To format printed reports
Answer & explanation →
Q29. Which of the following C++ statements correctly declares an abstract class?
  1. class A { virtual void show() = 0; };
  2. class A { void show() = 0; };
  3. class A { void show() { }; };
  4. class A { show() = 0; };
Answer & explanation →
Q30.

Arrange the following recurrence relations in increasing order of their time complexity: (A) T(n) = T(n/2) + 1 (B) T(n) = 2T(n/2) + n (C) T(n) = 3T(n/3) + n (D) T(n) = 2T(n/2) + √n (E) T(n) = T(n−1) + 1

  1. (E), (A), (B), (D), (C)
  2. (A), (E), (D), (B), (C)
  3. (E), (A), (D), (B), (C)
  4. (A), (B), (D), (E), (C)
Answer & explanation →
Q31. How does a relational database ensure data integrity?
  1. By encrypting all data stored
  2. By enforcing rules defined in the schema
  3. By compressing data for efficient storage
  4. By allowing unrestricted access to all users
Answer & explanation →
Q32.

Match List - I with List - II.

Figure
  1. (A)-(II), (B)-(III), (C)-(I), (D)-(IV)
  2. (A)-(I), (B)-(IV), (C)-(II), (D)-(III)
  3. (A)-(I), (B)-(II), (C)-(IV), (D)-(III)
  4. (A)-(III), (B)-(IV), (C)-(II), (D)-(I)
Answer & explanation →
Q33.

Find the correct sequence of the storage devices in descending order based on their access time.

(A) Registers

(B) Magnetic Disk

(C) Magnetic Tapes

(D) Main memory

(E) Optical Disk

  1. (B), (A), (D), (C), (E)
  2. (B), (A), (E), (D), (C)
  3. (C), (B), (A), (E), (D)
  4. (C), (E), (B), (D), (A)
Answer & explanation →
Q34.

A graph G with number of vertices greater and equal than three i.e. (n ≥ 3) is a Hamiltonian graph, if the degree of each vertex is greater and equal to . . . .

  1. Equal to number of vertices
  2. Double of number of vertices
  3. Half of number of vertices
  4. Four times of number of vertices
Answer & explanation →
Q35. Fifth normal form is concerned with:
  1. Join Dependency
  2. Domain-Key
  3. Multivalued dependency
  4. Functional dependency
Answer & explanation →
Q36.

Consider transactions T1: r1(x); r1(z); w1(z) T2: r2(y); r2(z); w2(z) T3: r3(y); r3(x); w3(y), and schedules S1: r1(x); r3(y); r3(x); r2(y); r2(z); w3(y); w2(z); r1(z); w1(x); w1(z) and S2: r1(x); r3(y); r2(y); r3(x); r1(z); r2(z); w3(y); w1(x); w2(z); w1(z). Which statement is TRUE?

  1. Only S₁ is conflict-serializable
  2. Only S₂ is conflict-serializable
  3. Both S₁ and S₂ are conflict-serializable
  4. Neither S₁ nor S₂ is conflict-serializable
Answer & explanation →
Q37. A CPU has a 5-stage pipeline with stages Fetch (F), Decode (D), Execute (E), Memory (M) and Write-back (W). Each stage takes one clock cycle. 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?
  1. 10
  2. 14
  3. 15
  4. 19
Answer & explanation →
Q38.

Match List - I with List - II.

Figure
  1. (A)-(II), (B)-(III), (C)-(IV), (D)-(I)
  2. (A)-(IV), (B)-(II), (C)-(III), (D)-(I)
  3. (A)-(IV), (B)-(I), (C)-(II), (D)-(III)
  4. (A)-(II), (B)-(IV), (C)-(III), (D)-(I)
Answer & explanation →
Q39.

Arrange the following steps in a proper sequence for the process of training a neural network.

(A) Weight initialization

(B) Feed forward

(C) Back Propagation

(D) Loss Calculation

(E) Weight Update

  1. (A), (B), (D), (C), (E)
  2. (D), (B), (A), (C), (E)
  3. (A), (C), (D), (B), (E)
  4. (E), (C), (B), (D), (A)
Answer & explanation →
Q40.

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.

  1. (A) and (C) Only
  2. (A) and (D) Only
  3. (B) and (D) Only
  4. (B) and (C) Only
Answer & explanation →
Q41. Which of the following relations can NOT be decomposed into BCNF with a lossless join and dependency-preserving decomposition?
  1. R(V, W, X, Y, Z) {VW → X, WX → V, VX → W, W → Y, Y → Z}
  2. R(V, W, X, Y, Z) {VW → W, X → Y}
  3. R(V, W, X, Y, Z) {VW → X, X → VY}
  4. R(V, W, X, Y, Z) {VW → X, X → Y, Y → Z, Z → V}
Answer & explanation →
Q42.
#include<iostream.h>
using namespace std;
void swap(int &x, int &y)
{
int temp=x;
x=y;
y=temp;
}
int main()
{
int a=5, b=10;
swap(a,b);
swap(a,b);
cout<<a<<" "<<b;
return 0;
}

What will be the output of the above code?

  1. 5, 10
  2. 10, 5
  3. 5, 5
  4. 10, 10
Answer & explanation →
Q43.

Which of the following are typical activities in the software process lifecycle?

(A) Requirement Analysis

(B) System Design

(C) Code Refactoring

(D) Deployment

(E) Substructure

  1. (A), (B), (C) Only
  2. (B), (C), (D) Only
  3. (A), (B), (D) Only
  4. (A), (D), (E) Only
Answer & explanation →
Q44. Which of the following best describes the structure of a relational database?
  1. Data organized into tables with rows and columns
  2. Data organized into files and folders
  3. Data organized into a hierarchical tree structure
  4. Data organized into a network of interconnected nodes
Answer & explanation →
Q45.

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) = 3/4

(D) P(E) = 1/2

  1. (A), (B), (C) and (D)
  2. (B) and (C) Only
  3. (A) and (D) Only
  4. (C) and (D) Only
Answer & explanation →
Q46. Arrange the following steps in the proper sequence for simplifying a Boolean function using a Karnaugh map (K-map).
(A) Identify and group the largest possible clusters 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:
  1. (B), (D), (A), (C)
  2. (D), (B), (A), (C)
  3. (B), (A), (D), (C)
  4. (A), (B), (C), (D)
Answer & explanation →
Q47.

If p and q are two statements, which of the following equivalences hold? (A) ~(p ∧ q) ≡ ~p ∨ ~q (B) ~(p ∨ q) ≡ ~p ∧ ~q (C) p ∧ ~p ≡ T (D) ~(p ⇒ q) ≡ p ∧ ~q (E) p ∨ q ≡ ~p ∨ ~q

  1. (A), (B) and (D) only
  2. (A), (C) and (D) only
  3. (C), (D) and (E) only
  4. (A), (B) and (C) only
Answer & explanation →
Q48. What is the output of the code given below?
#include<iostream>
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;
}
  1. Base Const Derived Const Derived dest Base dest
  2. Base Const Derived Const Base dest Derived dest
  3. Derived Const Base Const Base dest Derived dest
  4. Base Const Derived Const Base dest
Answer & explanation →
Q49. If L₁ and L₂ are context-free languages, which one of the following is true about L₁ ∩ L₂?
  1. L₁ ∩ L₂ is context free
  2. L₁ ∩ L₂ is regular
  3. L₁ ∩ L₂ is recursively enumerable
  4. L₁ ∩ L₂ is context sensitive
Answer & explanation →
Q50. 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 code?
  1. 3
  2. 4
  3. 5
  4. 6
Answer & explanation →
Q51.

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

  1. (A), (B), (C) Only
  2. (B), (C), (D) Only
  3. (A), (C), (D) Only
  4. (A), (B), (D) Only
Answer & explanation →
Q52.

Match List - I with List - II.

Figure
  1. (A)-(I), (B)-(III), (C)-(II), (D)-(IV)
  2. (A)-(II), (B)-(III), (C)-(IV), (D)-(I)
  3. (A)-(II), (B)-(I), (C)-(IV), (D)-(III)
  4. (A)-(III), (B)-(I), (C)-(IV), (D)-(II)
Answer & explanation →
Q53.

Match List - I with List - II.

Figure
  1. (A)-(II), (B)-(IV), (C)-(I), (D)-(III)
  2. (A)-(IV), (B)-(II), (C)-(III), (D)-(I)
  3. (A)-(II), (B)-(I), (C)-(IV), (D)-(III)
  4. (A)-(IV), (B)-(I), (C)-(II), (D)-(III)
Answer & explanation →
Q54.

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

  1. (A), (C), (D), (B)
  2. (D), (B), (C), (A)
  3. (C), (D), (B), (A)
  4. (B), (D), (A), (C)
Answer & explanation →
Q55.

Match List - I with List - II.

Figure

(D) Priority Scheduling (IV) Select the process for execution with smallest next Burst time.

  1. (A)-(II), (B)-(III), (C)-(IV), (D)-(I)
  2. (A)-(II), (B)-(IV), (C)-(III), (D)-(I)
  3. (A)-(III), (B)-(IV), (C)-(II), (D)-(I)
  4. (A)-(III), (B)-(IV), (C)-(I), (D)-(II)
Answer & explanation →
Q56.

Arrange the following steps in a proper sequence for the typical process of a DNS query :

(A) Query authoritative DNS Server

(B) Query local DNS Server

(C) Local DNS Server Check Cache

(D) Query root DNS Server

(E) Query TLD DNS Server

  1. (A), (C), (E), (B), (D)
  2. (E), (A), (C), (B), (D)
  3. (A), (B), (C), (D), (E)
  4. (B), (C), (D), (E), (A)
Answer & explanation →
Q57.

Match List - I with List - II.

Figure
  1. (A)-(III), (B)-(IV), (C)-(I), (D)-(II)
  2. (A)-(III), (B)-(I), (C)-(IV), (D)-(II)
  3. (A)-(I), (B)-(III), (C)-(IV), (D)-(II)
  4. (A)-(I), (B)-(IV), (C)-(III), (D)-(II)
Answer & explanation →
Q58. A class B network on the Internet has a subnet mask of 255.255.248.0. What is the maximum number of hosts per subnet?
  1. 1022
  2. 1023
  3. 2046
  4. 2047
Answer & explanation →
Q59.

Select the Sorting Algorithms that are stable.

(A) Quick Sort

(B) Bubble Sort

(C) Insertion Sort

(D) Merge Sort

(E) Shell Sort

  1. (A), (B), (C) and (E) Only
  2. (A), (D) and (E) Only
  3. (B) and (C) Only
  4. (B), (C) and (D) Only
Answer & explanation →
Q60. ______ is a self-balancing binary search tree where the path from the root to the farthest leaf is no more than twice as long as the path from the root to the nearest leaf.
  1. Expression tree
  2. Game tree
  3. Red-Black tree
  4. Threaded tree
Answer & explanation →
Q61. Let L(x, y) be the statement "x loves y", where the domain for both x and y consists of all people in the world. Use quantifiers to express "Joy is loved by everyone".
  1. ∀x L(x, Joy)
  2. ∀y L(Joy, y)
  3. ∃y ∀x L(x, y)
  4. ∃x ¬L(Joy, x)
Answer & explanation →
Q62. What will be the output of the following C code?
#include<stdio.h>
void main() {
  int arr[5] = {10,20,30,40,50};
  int *p = (int*)(&arr + 1);
  printf("%d %d", *(arr+1), *(p-1));
}
  1. 10 50
  2. 20 50
  3. 30 40
  4. 20 40
Answer & explanation →
Q63. 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:
  1. (C), (A), (B), (D), (E)
  2. (C), (B), (A), (D), (E)
  3. (C), (D), (A), (B), (E)
  4. (C), (D), (B), (A), (E)
Answer & explanation →
Q64.

Match List - I with List - II.

Figure
  1. (A)-(I), (B)-(II), (C)-(III), (D)-(IV)
  2. (A)-(II), (B)-(III), (C)-(IV), (D)-(I)
  3. (A)-(III), (B)-(I), (C)-(IV), (D)-(II)
  4. (A)-(III), (B)-(IV), (C)-(II), (D)-(I)
Answer & explanation →
Q65. Which of the following languages can be recognized by a Non-Deterministic Finite Automaton (NFA) but cannot be recognized by a Deterministic Finite Automaton (DFA)?
(A) L₁ = {w ∈ {0,1}* | the length of w is even}
(B) L₂ = {w ∈ {0,1}* | the length of w is odd}
(C) L₃ = {w ∈ {0,1}* | all 0's come before all 1's in w}
(D) L₄ = {w ∈ {0,1}* | w contains an equal number of 0's and 1's}
(E) L₅ = {w ∈ {0,1}* | all 1's come before all 0's in w}
  1. (A) and (B) Only
  2. (B) and (C) Only
  3. (C) and (D) Only
  4. None of the above
Answer & explanation →
Q66. 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?
  1. 30
  2. 37.5
  3. 40
  4. 45.5
Answer & explanation →
Q67.

Arrange the following phases of database design in the correct order :

(A) Physical Design

(B) Conceptual Design

(C) Logical Design

(D) Requirement Analysis

  1. (B), (D), (A), (C)
  2. (C), (A), (B), (D)
  3. (D), (B), (C), (A)
  4. (A), (D), (C), (B)
Answer & explanation →
Q68.

Consider the three way hand shaking 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 ?

  1. SYN bit =1, SEQ number =S+1, ACK bit =0, ACK number =R, FiN bit =0
  2. SYN bit =0, SEQ number =R, ACK bit =1, ACK number =S+1, FiN bit =0
  3. SYN bit =1, SEQ number =R, ACK bit =1, ACK number =S+1, FiN bit =0
  4. SYN bit =1, SEQ number = R, ACK bit =1, ACK number =S, FiN bit =0
Answer & explanation →
Q69.

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.75.201 and subnet mask 255.255.192.0. What one of the following statement is true?

  1. A and B both assume they are on the same network
  2. B assumes, A is on same network, A assumes B is on different network
  3. A assumes, B is on same network, but B assumes, A is on a different network
  4. A and B both assume they are on different network
Answer & explanation →
Q70. In software configuration management, what is the primary purpose of version control?
  1. To control the changes made to software
  2. To document user requirements
  3. To estimate project cost
  4. To design the software architecture
Answer & explanation →
Q71.

Arrange the following stages of parsing in the correct order as they typically occur in the compilation process.

(A) Lexical Analysis

(B) Sematic Analysis

(C) Syntax Analysis

(D) Intermediate Code Generation

(E) Code Optimization

  1. (A), (B), (C), (D), (E)
  2. (A), (C), (B), (D), (E)
  3. (A), (D), (B), (C), (E)
  4. (A), (C), (D), (B), (E)
Answer & explanation →
Q72.

Match List - I with List - II.

List - I (Queries) List - II (Probability)

(A) A bag contains 6 (I) 3 / 68 white and 4 red balls. Two balls are drawn at random. What is the chance they will the same color?

Figure
  1. (A)-(III), (B)-(IV), (C)-(I), (D)-(II)
  2. (A)-(III), (B)-(IV), (C)-(II), (D)-(I)
  3. (A)-(IV), (B)-(III), (C)-(II), (D)-(I)
  4. (A)-(IV), (B)-(III), (C)-(I), (D)-(II)
Answer & explanation →
Q73.

Match List - I with List - II.

Figure

(D) Expert system (IV) A machine learning technique that finds the hyper plane that best separates different class in a feature space.

  1. (A)-(I), (B)-(II), (C)-(IV), (D)-(III)
  2. (A)-(III), (B)-(II), (C)-(I), (D)-(IV)
  3. (A)-(III), (B)-(I), (C)-(IV), (D)-(II)
  4. (A)-(II), (B)-(IV), (C)-(III), (D)-(I)
Answer & explanation →
Q74.

Match List - I with List - II.

Figure
  1. (A)-(I), (B)-(II), (C)-(III), (D)-(IV)
  2. (A)-(II), (B)-(I), (C)-(III), (D)-(IV)
  3. (A)-(I), (B)-(II), (C)-(IV), (D)-(III)
  4. (A)-(III), (B)-(II), (C)-(IV), (D)-(I)
Answer & explanation →
Q75. Which of the following statements are TRUE about the 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 execution.
Choose the correct answer from the options given below:
  1. (A), (B) and (C) Only
  2. (B), (C) and (D) Only
  3. (A), (C) and (D) Only
  4. (A) and (B) Only
Answer & explanation →
Q76.
#include<stdio.h>
void main()
{
int arr[ ] = {1, 2, 3, 4, 5};
int *p = arr;
printf("%d", *p++);
printf("%d", *(p+1));
}

Find the output of the above code?

  1. 1,2
  2. 1,3
  3. 2,3
  4. 1,4
Answer & explanation →
Q77.

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

  1. (C), (A), (B), (D)
  2. (C), (A), (D), (B)
  3. (A), (C), (B), (D)
  4. (A), (D), (B), (C)
Answer & explanation →
Q78. Let G(V, E) be an undirected graph with l edges. Then the sum of the degrees of all vertices is equal to
  1. 2l
  2. l/2
  3. l²
  4. √l
Answer & explanation →
Q79. 40 software professionals were interviewed for a job. 25 knew PYTHON, 20 knew JAVA and 7 knew neither language. How many knew both languages?
  1. 12
  2. 53
  3. 10
  4. 88
Answer & explanation →
Q80. Consider the following statements:
(A) In IPv4 addressing, a block of addresses can be defined as x.y.z.t/n, in which x.y.z.t defines one of the addresses and /n defines the mask.
(B) The first address in the block can be found by setting the rightmost 32 − n bits to 0s.
(C) Class C addresses are used for multicast communication.
(D) There are five classes in IPv4 addressing.
(E) Supernetting combines several networks into one large network.
Choose the correct answer from the options given below:
  1. (A), (B) and (C) Only
  2. (A), (B), (D) and (E) Only
  3. (A), (C), (D) and (E) Only
  4. (C), (D) and (E) Only
Answer & explanation →
Q81.

Match List - I with List - II.

Figure
  1. (A)-(I), (B)-(II), (C)-(III), (D)-(IV)
  2. (A)-(I), (B)-(II), (C)-(IV), (D)-(III)
  3. (A)-(I), (B)-(III), (C)-(II), (D)-(IV)
  4. (A)-(I), (B)-(IV), (C)-(II), (D)-(III)
Answer & explanation →
Q82. Consider the following statements regarding special-purpose registers.
(A) The Program Counter (PC) keeps track of the next instruction to be executed.
(B) The Instruction Register holds the address of the first instruction to be executed.
(C) The Accumulator holds the output of the ALU.
(D) The Program Counter (PC) keeps track of only the first instruction of the program.
Choose the correct answer from the options given below:
  1. (A) and (C) Only
  2. (A) and (D) Only
  3. (B) and (D) Only
  4. (A), (B) and (C) Only
Answer & explanation →
Q83. 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 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 W
(C) Identify subproblems and their dependencies based on item 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:
  1. (C), (D), (A), (E), (B)
  2. (D), (C), (A), (E), (B)
  3. (A), (C), (D), (E), (B)
  4. (D), (A), (C), (E), (B)
Answer & explanation →
Q84. A multiprocessor system with 16 processors is used to execute a parallelizable task. 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?
  1. 250
  2. 300
  3. 400
  4. 450
Answer & explanation →
Q85.

Arrange the given steps required for a Direct Memory Access (DMA) transfer in the correct order.

(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

  1. (C), (A), (B), (D)
  2. (A),(C),(B),(D)
  3. (A), (B), (C), (D)
  4. (C), (B), (A), (D)
Answer & explanation →
Q86.

Match List I (recurrence) with List II (complexity). List I: (A) T(n) = 2T(n/2) + n, (B) T(n) = T(n/2) + 1, (C) T(n) = 2T(n/2) + 1, (D) T(n) = T(n−1) + n. List II: (I) T(n) = Θ(n log n) (exact), (II) O(n²), (III) T(n) = Θ(n) (exact), (IV) O(n).

  1. (A)-(I), (B)-(IV), (C)-(III), (D)-(II)
  2. (A)-(IV), (B)-(II), (C)-(I), (D)-(III)
  3. (A)-(I), (B)-(III), (C)-(IV), (D)-(II)
  4. (А)-(III), (B)-(I), (C)-(IV), (D)-(II) ∀x ∃ y(x < y)
Answer & explanation →
Q87.

Translate into English: ∀x ∃y (x < y), where the domain of both variables is the real numbers.

  1. For all real numbers x, there exists a real number y such that x is less than y
  2. For every real numbers y, there exists a real number x such that x is less than y
  3. For some real numbers x, there exists a real number y such that x is less than y
  4. For each and every real numbers x and y, x is less than y
Answer & explanation →
Q88. A vector processor with 16 lanes can perform an operation on 1024 elements, with each operation taking 5 clock cycles (pipelined). How many cycles are needed to complete the operation?
  1. 64
  2. 80
  3. 100
  4. 128
Answer & explanation →
Q89. Given a project that uses the COCOMO model with an estimated effort of 2000 person-months and a productivity rate of 5 person-months per KLOC, what is the estimated size of the project in KLOC?
  1. 200
  2. 400
  3. 100
  4. 50
Answer & explanation →
Q90.

Which of the following is a context-free language? (A) {wⁱ xʲ yᵏ zˡ | i + k = j + l, i, j, k, l ≥ 0} (B) {wⁱ xʲ yᵏ zˡ | i = j, k = l} (C) {wⁱ xʲ yᵏ zˡ | i = j = k and k ≠ l} (D) {wⁱ xʲ yᵏ zˡ | i = j = k + l} (E) {wⁱ xʲ yᵏ zˡ | i = j = l and k ≠ l}

  1. (A) and (B) Only
  2. (B) and (C) Only
  3. (C) and (D) Only
  4. (D) and (E) Only
Answer & explanation →

Directions (Q91–95): Artificial Neural Networks (ANNs) are computational models inspired by the human brain's neural networks. They consist of interconnected nodes, or neurons, organized into layers: an input layer, one or more hidden layers and an output layer. Each connection between neurons has a weight that adjusts as learning progresses, allowing the network to adapt and improve its performance. ANNs are particularly effective in recognizing patterns, making them valuable for tasks such as image and speech recognition, natural language processing and predictive analytics. Learning in ANNs typically involves training algorithms like backpropagation, which minimize the error by adjusting the weights. As a subset of machine learning, ANNs have revolutionized the field of Artificial Intelligence by providing solutions to complex problems that traditional algorithms struggle with.

Q91.

What is the role of Back Propagation Algorithm?

  1. To reduce error
  2. To secure network
  3. To control speed of data
  4. To add different layers
Answer & explanation →

Directions (Q91–95): Artificial Neural Networks (ANNs) are computational models inspired by the human brain's neural networks. They consist of interconnected nodes, or neurons, organized into layers: an input layer, one or more hidden layers and an output layer. Each connection between neurons has a weight that adjusts as learning progresses, allowing the network to adapt and improve its performance. ANNs are particularly effective in recognizing patterns, making them valuable for tasks such as image and speech recognition, natural language processing and predictive analytics. Learning in ANNs typically involves training algorithms like back propagation, which minimize the error by adjusting the weights. As a subset of machine learning, ANNs have revolutionized the field of Artificial Intelligence by providing solutions to complex problems that traditional algorithms struggle with.

Q92. What is the role of weights in an ANN?
  1. To store data
  2. To adjust and improve network performance
  3. To control the speed
  4. To secure the network
Answer & explanation →
Q93.

Which of the following is/are the application area(s) of ANN ?

(A) Natural Language Processing

(B) Image Processing

(C) Pattern Recognition

(D) Speech Recognition

  1. (A) and (B) Only
  2. (B) and (C) Only
  3. (A), (B) and (C) Only
  4. (A), (B), (C) and (D)
Answer & explanation →
Q94.

Artificial Neural Networks (ANNs) are inspired by :

  1. Quantum mechanics
  2. Human brain's neural network
  3. Computer Hardware architecture
  4. Genetic algorithm
Answer & explanation →
Q95.

Which of the following layers may be more than one in number ?

  1. Input layer
  2. Hidden layer
  3. Output layer
  4. Physical layer Directions (96-100) Read the following passage and answer the given questions. Read the below passage and answer the questions . The Banker's Algorithm is a critical deadlock avoidance method in operating systems, designed to facilitate resource allocation without causing deadlock. It operates by maintaining information about the maximum resources. Each process may require, the current allocated resources and the available resources in the system. The algorithm checks each resource request to determine, if granting it would leave the system in a safe state, meaning that there is always a sequence in which all processes can complete their execution without getting stuck due to resource unavailability. Each process must specify its maximum demand for each resource type before it starts execution. When a process requests additional resources, the algorithm checks if granting the request will keep the system in a safe state. If so, the resources are allocated otherwise the process must wait until its request can be safely fulfilled.
Answer & explanation →

Directions (Q96–100): The Banker's Algorithm is a deadlock-avoidance method in operating systems, designed to facilitate resource allocation without causing deadlock. It maintains information about the maximum resources each process may require, the currently allocated resources and the available resources in the system. The algorithm checks each resource request to determine whether granting it would leave the system in a safe state, meaning that there is always a sequence in which all processes can complete their execution without getting stuck due to resource unavailability. Each process must specify its maximum demand for each resource type before it starts execution. When a process requests additional resources, the algorithm checks if granting the request will keep the system in a safe state. If so, the resources are allocated; otherwise the process must wait until its request can be safely fulfilled.

Q96. Which of the following is NOT a requirement for the Banker's algorithm to grant a resource request?
  1. The requested resources must be available.
  2. The system must be in a safe state after granting the request.
  3. The request must not exceed the maximum resources the process can request.
  4. The process must be the only one requesting resources.
Answer & explanation →
Q97. Which data structures does the Banker's Algorithm use to maintain the state of available, maximum and allocated resources?
  1. Priority Queue
  2. Hash table
  3. Wait-for Graph
  4. Matrices and Vectors
Answer & explanation →

Directions (Q96–100): The Banker's Algorithm is a deadlock-avoidance method in operating systems. It maintains information about the maximum resources each process may require, the resources currently allocated and the resources available. Each process must declare its maximum demand for each resource type before it starts. When a process requests additional resources, the algorithm checks whether granting the request leaves the system in a safe state — one in which there is a sequence that lets all processes complete. If so, the resources are allocated; otherwise the process must wait until its request can be safely fulfilled.

Q98.

What is the significance of the Banker's algorithm in terms of resource management?

  1. It enures that all processes can finish their execution without deadlock.
  2. It eliminates the need for processes to request resources.
  3. It accelerates the execution of critical sections in processes.
  4. It minimizes the number of context switches between processes.
Answer & explanation →
Q99. What is the primary goal of the Banker's Algorithm?
  1. To allocate resources optimally
  2. To prevent processes from requesting resources
  3. To detect and recover from deadlocks
  4. To maximise CPU utilization
Answer & explanation →
Q100. What information is used to determine if a resource request can be granted?
  1. Available resources and current allocation of each process
  2. CPU utilization of each process
  3. Number of processes waiting for resources
  4. Arrival time of each process
Answer & explanation →

Answer key

  1. 1 – C
  2. 2 – A
  3. 3 – B
  4. 4 – A
  5. 5 – A
  6. 6 – D
  7. 7 – D
  8. 8 – D
  9. 9 – B
  10. 10 – B
  11. 11 – B
  12. 12 – D
  13. 13 – C
  14. 14 – B
  15. 15 – A
  16. 16 – A
  17. 17 – D
  18. 18 – C
  19. 19 – B
  20. 20 – D
  21. 21 – A
  22. 22 – C
  23. 23 – D
  24. 24 – C
  25. 25 – C
  26. 26 – C
  27. 27 – A
  28. 28 – B
  29. 29 – A
  30. 30 – B
  31. 31 – B
  32. 32 – D
  33. 33 – D
  34. 34 – C
  35. 35 – A
  36. 36 – A
  37. 37 – B
  38. 38 – C
  39. 39 – A
  40. 40 – B
  41. 41 – A
  42. 42 – A
  43. 43 – C
  44. 44 – A
  45. 45 – B
  46. 46 – A
  47. 47 – A
  48. 48 – A
  49. 49 – C
  50. 50 – B
  51. 51 – A
  52. 52 – C
  53. 53 – C
  54. 54 – C
  55. 55 – C
  56. 56 – D
  57. 57 – B
  58. 58 – C
  59. 59 – D
  60. 60 – C
  61. 61 – A
  62. 62 – B
  63. 63 – C
  64. 64 – C
  65. 65 – D
  66. 66 – B
  67. 67 – C
  68. 68 – C
  69. 69 – C
  70. 70 – A
  71. 71 – B
  72. 72 – D
  73. 73 – C
  74. 74 – B
  75. 75 – C
  76. 76 – B
  77. 77 – A
  78. 78 – A
  79. 79 – A
  80. 80 – B
  81. 81 – B
  82. 82 – A
  83. 83 – C
  84. 84 – A
  85. 85 – B
  86. 86 – A
  87. 87 – A
  88. 88 – A
  89. 89 – B
  90. 90 – A
  91. 91 – A
  92. 92 – B
  93. 93 – D
  94. 94 – B
  95. 95 – B
  96. 96 – D
  97. 97 – D
  98. 98 – A
  99. 99 – A
  100. 100 – A