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

UGC NET Paper 2 Computer Science – November 2020 – 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 practice it in the unit-wise mock tests.

Q1.

The number of positive integers not exceeding 100 that are either odd or the square of an integer is ____

  1. 63
  2. 59
  3. 55
  4. 50
Answer & explanation →
Q2.

How many ways are there to pack six copies of the same book into four identical boxes, where a box contains six books?

  1. 4
  2. 6
  3. 7
  4. 9
Answer & explanation →
Q3.

Which of the following pairs of propositions are not logically equivalent?

  1. ((p → r) ∧ (q → r)) and ((p ∨ q) → r)
  2. p ↔ q and (¬p ↔ ¬q)
  3. ((p ∧ q) ∨ (¬p ∧ ¬q)) and p ↔ q
  4. ((p ∧ q) → r) and ((p → r) ∧ (q → r))
Answer & explanation →
Q4.

Maximize z = 2x₁ + 3x₂ subject to 2x₁ + x₂ ≤ 4, x₁ + 2x₂ ≤ 5, x₁, x₂ ≥ 0. The optimum value is

  1. 23
  2. 9.5
  3. 13
  4. 8
Answer & explanation →
Q5.

A machine has a byte-addressable main memory of 2¹⁶ bytes and a block size of 8 bytes. A direct-mapped cache with 32 lines is used. How many bits are in the tag, line and word fields of the address?

  1. 8, 5, 3
  2. 8, 6, 2
  3. 7, 5, 4
  4. 7, 6, 3
Answer & explanation →
Q6.

The following program is stored in the basic computer (locations in hex): 210 CLA; 211 ADD 217; 212 INC; 213 STA 217; 214 LDA 218; 215 CMA; 216 AND 217; 217 1234H; 218 9CE2H. What is the content of the accumulator after execution?

  1. 1002H
  2. 2011H
  3. 2022H
  4. 0215H
Answer & explanation →
Q7.

A non-pipeline system takes to process a task. The same task can be processed in six- segment pipeline with a clockcycle of 10ns. Determine approximately the speedup ratio of the pipeline for 500 tasks.

  1. 6
  2. 4.95
  3. 5.7
  4. 5.5
Answer & explanation →
Q8.

What is the radix of the numbers if the solutions of x² − 10x + 26 = 0 are x = 4 and x = 7?

  1. 8
  2. 9
  3. 10
  4. 11
Answer & explanation →
Q9.

With preconditions a > 1 and a < b (no overflow): int x = 0; int p = 1; while (p < b) { p = p * a; x = x + 1; } When the loop ends, x in terms of a and b is

  1. aᵇ
  2. bᵃ
  3. ⌊log_a b⌋ (floor)
  4. ⌈log_a b⌉ (ceiling)
Answer & explanation →
Q10.

In HTML, map > tag is used for

  1. defining a path between two nodes in an image
  2. defining clickable region in an image
  3. highlighting an area in an image
  4. defining the site-map of a web-site
Answer & explanation →
Q11.

With 1-byte chars, 2-byte shorts, 4-byte ints and 8-byte doubles, each aligned to its size, no field reordering, and padding for alignment, how much space does this array use? struct { short s; char c; short t; char d; double r; int i; } A[10];

  1. 150 bytes
  2. 320 bytes
  3. 240 bytes
  4. 200 bytes f
Answer & explanation →
Q12.

Consider the Java function: public static float f(long m, long n) { float result = (float)m / (float)n; if (m < 0 || n < 0) return 0.0f; else result -= f(m * 2, n * 3); return result; } Which value best approximates f(1, 3)?

  1. 0.2
  2. 0.4
  3. 0.6
  4. 0.8
Answer & explanation →
Q13.

The data node and name node in HADOOP are

  1. Both Worker Nodes
  2. Both Master Nodes
  3. Worker Node and Master Node respectively
  4. Master Node and Worker Node respectively
Answer & explanation →
Q14.

Consider a relational schema S = (U, V , W, X, Y , Z) on which the following functional dependencies hold: {U → V , V W → X, Y → W, X → U} Which are the candidate keys among following options?

  1. UY, VY
  2. UY, VY, XY
  3. UYZ, VYZ, VWZ
  4. UYZ, VYZ, XYZ
Answer & explanation →
Q15.

A machine has 3 page frames and 5 virtual pages. The reference string is A, B, C, D, A, B, E, A, B, C, D, E, B, A, B. If P and Q are the page faults with FIFO and LRU respectively, then (P, Q) =

  1. (11, 10)
  2. (12, 11)
  3. (10, 11)
  4. (11, 12)
Answer & explanation →
Q16. Consider a disk system having 60 cylinders. Disk requests are received by the disk drive for cylinders 10, 22, 20, 2, 40, 6, and 38, in that order. Assuming the disk head is currently at cylinder 20, what is the time taken to satisfy all the requests if it takes 2 milliseconds to move from one cylinder to an adjacent one and the Shortest Seek Time First (SSTF) algorithm is used?
  1. 240 milliseconds
  2. 96 milliseconds
  3. 120 milliseconds
  4. 112 milliseconds
Answer & explanation →
Q17. Suppose a Linux file system has a block size of 2K bytes, a disk address is 32 bits, and an i-node contains the disk addresses of the first 12 direct blocks of a file, one single-indirect block, and one double-indirect block. Approximately, what is the largest file that can be represented by an i-node?
  1. 513 Kbytes
  2. 513 Mbytes
  3. 537 Mbytes
  4. 537 KBytes
Answer & explanation →
Q18.

Consider a single-level page table system, with the page table stored in the memory. If the hit 80% rate to TLB is , and it takes 15 nanoseconds to search the TLB, and 150 nanoseconds to access the main memory, then what is the effective memory access time, in nanoseconds?

  1. 185
  2. 195
  3. 205
  4. 175
Answer & explanation →
Q19. Which of the following UML diagrams has a static view?
  1. Collaboration diagram
  2. Use-Case diagram
  3. State chart diagram
  4. Activity diagram
Answer & explanation →
Q20.

Modifying the software by restructuring is called

  1. Adaptive maintenance
  2. Corrective maintenance
  3. Perfective maintenance
  4. Preventive maintenance L
Answer & explanation →
Q21.

A company can develop software in L₁ or L₂. L₂ needs three times the LOC of L₁, and the software must be maintained for 10 years. Man-years for development: LOC/1000 for both. Development cost per man-year: L₁ ₹70,000, L₂ ₹90,000. Maintenance per year: L₁ ₹1,00,000, L₂ ₹40,000. Total cost includes development and maintenance. For what LOC of L₁ are the costs equal?

  1. 2000
  2. 6000
  3. 3000
  4. 5000
Answer & explanation →
Q22.

A Software project was estimated at 864 Function Points. A six person team will be assigned to project consisting of a requirement gathering person, one designer, two programmers and two testers. The salary of the designer is ₹ 70,000 per month, requirement gatherer is ₹ 50,000 per month, programmer is ₹ 60,000 per month and a tester is ₹ 60,000 per month. Average productivity for the team is 12 FP per person month. Which of the following represents the projected cost of the project?

  1. ₹ 33,20,000
  2. ₹ 43,20,000
  3. ₹ 33,10,000
  4. ₹ 22,10,000 n
Answer & explanation →
Q23.

A complete -ary tree is a tree in which each n I node has children or no children. Let be the L number of internal nodes and be the number n L = 41 of leaves in a complete -ary tree. If , I = 10 n and , What is the value of ?

  1. 3
  2. 4
  3. 5
  4. 6 n
Answer & explanation →
Q24.

In a binary max heap containing numbers, the smallest element can be found in ____ time.

  1. O(n)
  2. O(log₂ n)
  3. O(1)
  4. O(log₂ log₂ n)
Answer & explanation →
Q25.

If algorithm A and another algorithm B take −− log (n) √n 2 and microseconds, respectively, to n solve a problem, then the largest size of a problem these algorithms can solve, respectively, in one second are ___ and _____

  1. 2^(10⁶) and 10⁶
  2. 2^(10⁶) and 10¹²
  3. 2^(10⁶) and 6·10⁶
  4. 2^(10⁶) and 6·10¹²
Answer & explanation →
Q26.

Let be a directed graph whose vertex set is the set of numbers from 1 to 100 . There is an i j edge from a vertex to a vertex if and only if j = i + 1 j = 3i either or . The minimum G number of edges in a path in from vertex 1 to vertex 100 is ____

  1. 23
  2. 99
  3. 4
  4. 7 L = L ∩ L
Answer & explanation →
Q27.

Let L = L₁ ∩ L₂, where L₁ = {0ᵐ1ᵐ2 0ⁿ1ⁿ | m, n ≥ 0} and L₂ = {0ᵐ1ⁿ2ᵏ | m, n, k ≥ 0}. Then L is

  1. Recursively enumerable but not context free
  2. Regular
  3. Context free but not regular
  4. Not recursive L L ∑ = {a, b}
Answer & explanation →
Q28.

Let 1 and 2 be languages over represented by the regular expressions (a∗ + b)∗ (a + b)∗ and respectively. Which of the following is true with respect to the two languages?

  1. L₁ ⊂ L₂
  2. L₂ ⊂ L₁
  3. L₁ = L₂
  4. L₁ ∩ L₂ = ∅
Answer & explanation →
Q29.

Which of the following statements is true?

  1. The union of two context free languages is context free.
  2. The intersection of two context free languages is context free.
  3. The complement of a context free language is context free.
  4. If a language is context free, it can always be accepted by a deterministic pushdown automaton.
Answer & explanation →
Q30.

Which of the following is not an intermediate code form?

  1. Syntax trees
  2. Three address codes
  3. Quadruples
  4. Post fix Notation.
Answer & explanation →
Q31.

Consider a code with only four valid code words: 0000000000,0000011111,1111100000, and 1111111111. This code has distance 5. If the code word arrived is 0000000111 then the original code word must be _____

  1. 0000011111
  2. 0000000000
  3. 1111100000
  4. 1111111111
Answer & explanation →
Q32.

Using RSA with p = 3, q = 11 and d = 7, find the value of e and encrypt the number 19.

  1. 20,19
  2. 33,11
  3. 3,28
  4. 77,28
Answer & explanation →
Q33.

Protocols in which the sender sends one frame and then waits for an acknowledgement before proceeding for next frame are called as ______

  1. Simplex protocols
  2. Unrestricted simplex protocols
  3. Simplex stop and wait protocols
  4. Restricted simplex protocols. 100 ms
Answer & explanation →
Q34.

The period of a signal is . Then the frequency of this signal in kilohertz is ______

  1. 10
  2. 10⁻¹
  3. 10⁻²
  4. 10⁻³
Answer & explanation →
Q35.

The process of removing details from a given state representation is called ______

  1. Extraction
  2. Mining
  3. Selection
  4. Abstraction
Answer & explanation →
Q36.

Which of the following is NOT true in problem solving in artificial intelligence?

  1. Implements heuristic search techniques
  2. Solution steps are not explicit
  3. Knowledge is imprecise
  4. It works on or implements repetition mechanism
Answer & explanation →
Q37.

If f(x)=x is my friend, and p(x)=x is perfect, then the correct logical translation of the statement "some of my friends are not perfect" is:

  1. ∀x (f(x) ∧ ¬p(x))
  2. ∃x (f(x) ∧ ¬p(x))
  3. ¬(f(x) ∧ ¬p(x))
  4. ∃x (¬f(x) ∧ ¬p(x))
Answer & explanation →
Q38.

What kind of clauses are available in conjunctive normal form?

  1. Disjunction of literals
  2. Disjunction of variables
  3. Conjunction of literals
  4. Conjunction of variables.
Answer & explanation →
Q39.

Consider the following properties:

A. Reflexive

B. Antisymmetric

C. Symmetric A = {a, b, c, d, e, f, g} Let and R = {(a, a), (b, b), (c, d), (c, g), (d, g), (e, e), (f, f), (g, g)} be a relation on (A). Which of the following property (properties) is (are) satisfied by the relation (R) ?

  1. Only A
  2. Only C
  3. Both A and B
  4. B and not A
Answer & explanation →
Q40.

Consider the argument with premise ∀x(P(x) ∨ Q(x)) and conclusion (∀x P(x)) ∧ (∀x Q(x)): (A) ∀x(P(x) ∨ Q(x)) premise; (B) P(c) ∨ Q(c) universal instantiation from A; (C) P(c) simplification from B; (D) ∀x P(x) universal generalization of C; (E) Q(c) simplification from B; (F) ∀x Q(x) universal generalization of E; (G) (∀x P(x)) ∧ (∀x Q(x)) conjunction of D and F.

  1. This is a valid argument
  2. Steps (C) and (E) are not correct inferences
  3. Steps (D) and (F) are not correct inferences
  4. Step (G) is not a correct inference
Answer & explanation →
Q41.

Which of the following are applications of symbol table?

(A) Storage allocation

(B) Checking type compatability

(C) Suppressing duplicate error messages

  1. (A) and (B) only
  2. (A) and (C) only
  3. (B) and (C) only
  4. (A), (B) and (C)
Answer & explanation →
Q42.

Which simplified expressions are correct for F(A, B, C, D) = Σ(0, 1, 2, 3, 6, 12, 13, 14, 15)? (A) A′B′ + AB + A′C′D′ (B) A′B′ + AB + A′CD′ (C) A′B′ + AB + BC′D′ (D) A′B′ + AB + BCD′

  1. (A) only
  2. (B) only
  3. (A) and (B) only
  4. (B) and (D) only
Answer & explanation →
Q43.

Which of the following statements with respect to K-segment pipelining are true?

(A) Maximum speedup that a pipeline can provide is k theoretically.

(B) It is impossible to achieve maximum speedup k in k-segment pipeline.

(C) All segments in pipeline take same time in computation.

  1. (A) and (B) only
  2. (B) and (C) only
  3. (A) and (C) only
  4. (A), (B) and (C)
Answer & explanation →
Q44.

Which of the following statements with respect to multiprocessor system are true?

(A) Multiprocessor system is controlled by one operating system.

(B) In Multiprocessor system, multiple computers are connected by the means of communication lines.

(C) Multiprocessor system is classified as multiple instruction stream and multiple data stream system.

  1. (A) only
  2. (A) and (B) only
  3. (A) and (C) only
  4. (B) and (C) only
Answer & explanation →
Q45.

Which of the following statements regarding XML is/are True?

(A) XML is a set of tags designed to tell browsers how to display text and images in a web page.

(B) XML defines a syntax for representing data, but the meaning of data varies from application to application.

(C) <Letter>, <LETTER>, and <letter> are three different tags in XML.

  1. (A) and (B) only
  2. (A) and (C) only
  3. (B) and (C) only
  4. (A), (B) and (C)
Answer & explanation →
Q46.

In the context of 3D Computer graphics, which of the following statements is/are correct?

(A) Under perspective projection, each set of parallel lines in the object do not stay parallel in the image (except those that are parallel to the viewplane to start with).

(B) Applying a perspective transformation in the graphics pipeline to a vertex involves dividing by its ' (z) ' coordinate.

(C) Perspective transformation is a linear transformation.

  1. (A) and (B) only
  2. (A) and (C) only
  3. (B) and (C) only
  4. (A), (B) and (C)
Answer & explanation →
Q47.

Concerning phong shading and Gouraud shading in a 3D scene, which of the following statements are true?

(A) Gouraud shading requires more computation than phong shading.

(B) Gouraud shading linearly interpolates the color of an interior pixel from the color at the vertices.

(C) Phong shading interpolates over the normal vectors specified at the vertices.

  1. (A) and (B) only
  2. (A) and (C) only
  3. (B) and (C) only
  4. (A), (B) and (C)
Answer & explanation →
Q48.

In the context of concurrency control, a given pair of operations in a schedule is called conflict schedule if

(A) At least one of the operations is write operation.

(B) Both the operations are performed on the same data item.

(C) Both the operations are performed by different transactions.

(D) Both the operations are performed on different data items.

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

Software reliability is described with respect to

(A) Execution Time

(B) Calendar Time

(C) Clock Time

  1. (A) and (B) only
  2. (B) and (C) only
  3. (A), (B) and (C)
  4. (A) and (C) only
Answer & explanation →
Q50.

To create an object-behavioral model, the analyst performs the following steps:

(A) Evaluates all use-cases

(B) Builds state transition diagram for the system.

(C) Reviews the object behaviour model to verify accuracy and consistency

(D) Identifies events that do not derive the interaction sequence.

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

Which of the following is/are behavioral testing technique(s)?

(A) Equivalence Partitioning

(B) Graph-Based Teating Method

(C) Boundery Value Analysis

(D) Data flow Testing

(E) Loop Testing

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

The running time of an algorithm is O(g(n)) if and only if:

(A) its worst-case running time is O(g(n)) and its best-case running time is Ω(g(n)).

(B) its worst-case running time is Ω(g(n)) and its best-case running time is O(g(n)).

(C) O(g(n))=Ω(g(n)) (O= big O).

(D) o(g(n))∩ω(g(n)) is non-empty. (o= small o)

Choose the correct answer from the options given below:

(A) (A) only (B) (B) only

  1. only
  2. (B) only
  3. (C) only
  4. (D) only
Answer & explanation →
Q53.

Consider the following statements:

(A) Any tree is 2-colorable

(B) A graph G has no cycles of even length if it is bipartite.

(C) A graph G is 2-colorable if it is bipartite.

(D) A graph G can be colored with d+1 colors if d is the maximum degree of any vertex in the graph G.

(E) A graph G can be colored with O(log∣v∣) colors if it has O(∣v∣) edges.

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

Which among the following statement(s) is (are) true?

(A) A hash function takes a message of arbitrary length and generates a fixed length code.

(B) A hash function takes a message of fixed length and generates a code of variable length.

(C) A hash function may give same hash value for distinct messages.

  1. (A) only
  2. (B) and (C) only
  3. (A) and (C) only
  4. (B) only G G
Answer & explanation →
Q55.

Let G1 and G2 be arbitrary context-free grammars and R an arbitrary regular language. Which problems are undecidable? (A) Is L(G1) = L(G2)? (B) Is L(G2) ⊆ L(G1)? (C) Is L(G1) = R?

  1. (A) only
  2. (B) only
  3. (A) and (B) only
  4. (A), (B) and (C)
Answer & explanation →
Q56.

Consider L1 = {a^(z²) | z is an integer}, L2 = {a^(2z) | z ≥ 0}, L3 = {ωω | ω ∈ {a, b}*}. Which of the languages is (are) regular?

  1. L1 and L2 only
  2. L1 and L3 only
  3. L1 only
  4. L2 only
Answer & explanation →
Q57.

Which of the following grammars is (are) ambiguous? (A) S → SS | aSb | bSa | λ (B) S → aSbS | bSaS | λ (C) S → aAB, A → bBb, B → A | λ, where λ denotes the empty string

  1. (A) and (C) only
  2. (B) only
  3. (B) and (C) only
  4. (A) and (B) only
Answer & explanation →
Q58. Which of the following cloud computing concept(s) is/are related to the pooling and sharing of resources?
(A) Virtual Memory
(B) Service
(C) Virtualization
  1. (C) only
  2. (A) and (B) only
  3. (A) only
  4. (B) only
Answer & explanation →
Q59.

Post office protocol (POP) is a message access protocol which is used to extract message for client. In this regard, which of the following are true?

(A) POP has two modes, Delete mode and keep

(B) In Delete mode, mail is deleted from mail box after each retrival

(C) In Delete mode, mail is deleted from mail box before each retrieval

(D) In keep mode, mail is deleted before retrival

(E) In keep mode, mail remains in mail box after retrival

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

Firewall is a device that filters access to the protected network from the outside network. Firewalls can filter the packets on the basis of

(A) Source IP Address

(B) Destination IP Address

(C) TCP Source Port

(D) UDP Source Port

(E) TCP Destination Port

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

Consider the statement: A person who is radical (R) is electable (E) if he/she is conservative (C), but otherwise is not electable. Which of these assertions are correct? (A) (R ∧ E) ⇔ C (B) R ⇒ (E ⇔ C) (C) R ⇒ ((C ⇒ E) ∨ ¬E) (D) (¬R ∨ ¬E ∨ C) ∧ (¬R ∨ ¬C ∨ E)

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

Which of the following statements are true? α β β

(A) A sentence entails another sentence if α is true in few worlds where is true.

(B) Forward chaining and backward chaining are very natural reasoning algorithms for knowledge bases in Horn form.

(C) Sound inference algorithms derive all sentences that are entailed.

(D) Propositional logic does not scale to environments of unbounded size.

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

Which of the following statements are true?

(A) Minimax search is breadth-first; it processes all the nodes at a level before moving to a node in next level.

(B) The effectiveness of the alpha-beta pruning is highly dependent on the order in which the states are examined.

(C) The alpha-beta search algorithm computes the same optimal moves as minimax algorithm.

(D) Optimal play in games of imperfact information does not require reasoning about the current and future belief states of each player.

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

Let R1 = {(1,1), (2,2), (3,3)} and R2 = {(1,1), (1,2), (1,3), (1,4)}. Match List I with List II. List I: A. R1 ∪ R2, B. R1 − R2, C. R1 ∩ R2, D. R2 − R1. List II: I. {(1,1), (1,2), (1,3), (1,4), (2,2), (3,3)}, II. {(1,1)}, III. {(1,2), (1,3), (1,4)}, IV. {(2,2), (3,3)}.

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

Match List I with List II. List I: A. Handshaking, B. Programmed I/O, C. Interrupt-initiated I/O, D. I/O processor. List II: I. I/O interface informs the CPU that the device is ready for transfer, II. Requires two control signals working in opposite directions, III. Has local memory and controls a large set of I/O devices, IV. Requires the CPU to check the I/O flag and perform the transfer.

  1. A-I, B-II, C-III, D-IV
  2. A-II, B-IV, C-III, D-I
  3. A-II, B-IV, C-I, D-III
  4. A-IV, B-III, C-II, D-I 3 × 3
Answer & explanation →
Q66.

Match List-I with List-II. List I gives matrices representing 2D transformations and List-II shows the corresponding transformation diagrams.

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

Match List I with List II.

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

Match List I (CMM levels) with List II. List I: A. INITIAL, B. REPEATABLE, C. DEFINED, D. MANAGED. List II: I. Process measurement, II. Process definition, III. Project management, IV. Ad hoc.

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

Match List I with List II. List I: A. Branch-and-bound, B. Steepest-ascent hill climbing, C. Constraint satisfaction, D. Means-end analysis. List II: I. Keeps track of all partial paths that can be candidates for further exploration, II. Detects the difference between the current state and the goal state, III. Discovers problem state(s) that satisfy a set of constraints, IV. Considers all moves from the current state and selects the best move.

  1. A-I, B-IV, C-III, D-II
  2. A-I, B-II, C-III, D-IV
  3. A-II, B-I, C-III, D-IV
  4. A-II. B-IV. C-IIII. D-I
Answer & explanation →
Q70.

Match List I with List II. List I: A. Topological sort of a DAG, B. Kruskal's MST algorithm, C. Bellman-Ford single-source shortest path, D. Floyd-Warshall all-pairs shortest path. List II: I. O(V + E), II. O(VE), III. θ(V + E), IV. θ(V³).

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

Match List I with List II (L_R regular, L_CF context-free, L_REC recursive, L_RE recursively enumerable). List I: A. Recursively enumerable language, B. Recursive language, C. Context-free language. List II: I. complement(L_REC) ∪ L_RE, II. complement(L_CF) ∪ L_REC, III. L_R* ∩ L_CF.

  1. A-II, B-III, C-I
  2. A-III, B-I, C-II
  3. A-I, B-II, C-III
  4. A-II, B-I, C-III
Answer & explanation →
Q72.

Match List I with List II. List I: A. Serial Line IP (SLIP), B. Border Gateway Protocol (BGP), C. User Datagram Protocol (UDP), D. Simple Network Management Protocol (SNMP). List II: I. Application layer, II. Transport layer, III. Data link layer, IV. Network layer.

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

Match List I with List II. List I: A. Greedy best-first search, B. A*, C. Recursive best-first search, D. SMA*. List II: I. Space complexity is O(d), where d is the depth of the deepest optimal solution, II. Incomplete even if the search space is finite, III. Optimal if the optimal solution is reachable; otherwise returns the best reachable solution, IV. Computation and space complexity are too high.

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

Find the lexicographic ordering of the bit strings 0 < 1 given below based on the ordering .

(A) 001

(B) 010

(C) 011

(D) 0001

(E) 0101

Choose the correct answer from the options given below:

  1. 001 < 010 < 011 < 0001 < 0101
  2. 0001 < 001 < 010 < 0101 < 011
  3. 0001 < 0101 < 001 < 010 < 011
  4. 001 < 010 < 0001 < 0101 < 011
Answer & explanation →
Q75.

Arrange the following types of machine in descending order of complexity.

(A) SISD

(B) MIMD

(C) SIMD

Choose the correct answer from the options given below:

  1. A, B, C
  2. C, B, A
  3. B, C, A
  4. C, A, B
Answer & explanation →
Q76.

Given below are different properties of 3D projections from A-D. Identify the correct order on the basis of property true of (i) a perspective projection only, (ii) an orthographic projection only, (iii) both orthographic and projective transformations and (iv) neither orthographic nor projective transformation, respectively.

(A) Straight lines are mapped to straight lines.

(B) Distances and angles are (in general) preserved.

(C) Far away objects appear the same size as closer ones.

(D) Requires homogeneous coordinates in order for it to be encoded into a linear transformation.

Choose the correct answer from the options given below:

  1. D, C, B, A
  2. B, C, D, A
  3. D, C, A, B
  4. C, D, B, A
Answer & explanation →
Q77. Arrange the following types of Cohesion from best to worst type.
A. Logical Cohesion
B. Sequential Cohesion
C. Communication Cohesion
D. Temporal Cohesion
E. Procedural Cohesion
Choose the correct answer from the options given below:
  1. A → D → E → C → B
  2. A → E → D → C → B
  3. B → E → C → D → A
  4. B → C → E → D → A
Answer & explanation →
Q78.

Consider the undirected graph below:

Figure

Using Prim's algorithm to construct a minimum spanning tree starting with node a, which one of the following sequences of edges represents a possible order in which the edges would be added to construct the minimum spanning tree?

  1. (a,b), (a,h), (g,h), (f,g), (c,f), (c,i), (c,d), (d,e)
  2. (a,b, (b,h), (g,h), (g,i), (c,i), (c,f), (c,d), (d,e)
  3. (a,b), (b,c), (c,i), (c,f), (f,g), (g,h), (c,d), (d,e)
  4. (a,b), (g,h), (g,f), (c,f), (c,i), (f,e), (b,c), (d,e)
Answer & explanation →
Q79.

Consider the regular expressions r = a(b + a)*, s = a(a + b)⁺, t = aa*b. Which relation holds between the languages they generate?

  1. L(r) ⊆ L(s) ⊆ L(t)
  2. L(r) ⊇ L(s) ⊇ L(t)
  3. L(r) ⊇ L(t) ⊇ L(s)
  4. L(s) ⊇ L(t) ⊇ L(r)
Answer & explanation →
Q80.

Statement I: 5 divides n⁵ − n whenever n is a non-negative integer. Statement II: 6 divides n³ − n whenever n is a non-negative integer.

  1. Both Statement I and Statement II are correct
  2. Both Statement I and Statement II are incorrect
  3. Statement I is correct but Statement II is incorrect
  4. Statement I is incorrect but Statement II is correct
Answer & explanation →
Q81.

Given below are two statements:

Statement I : Hardwired control unit can be optimized to produce fast mode of operation.

Statement II : Indirect addressing mode needs two memory reference to fetch the operand. In the light of the above statements, choose the correct answer from the options given below

  1. Both Statement I and Statement II are true
  2. Both Statement I and Statement II are false
  3. Statement I is correct but Statement II is false
  4. Statement I is incorrect but Statement II is true.
Answer & explanation →
Q82.

Given below are two statements:

Statement I : Bezier curves are curves that interpolate all of their control points.

Statement II : A cubic bezier curve has four control points. In the light of the above statements, choose the correct answer from the options given below

  1. Both Statement I and Statement II are true
  2. Both Statement I and Statement II are false
  3. Statement I is correct but Statement II is false
  4. Statement I is incorrect but Statement II is true.
Answer & explanation →
Q83.

Given below are two statements: V V If two variables 1 and 2 are used for clustering, then consider the following k k = 3 statements for means clustering with V V

Statement I : If 1 and 2 have correlation of 1 the cluster centroid will be in straight line. V V

Statement II : If 1 and 2 have correlation of 0 the cluster centroid will be in straight line. In the light of the above statements, choose the correct answer from the options given below

  1. Both Statement I and Statement II are true
  2. Both Statement I and Statement II are false
  3. Statement I is correct but Statement II is false
  4. Statement I is incorrect but Statement II is true.
Answer & explanation →
Q84.

Assuming fork() never fails, consider: P1: int main() { fork(); fork(); fork(); printf("Happy\n"); } and P2: int main() { fork(); printf("Happy\n"); fork(); fork(); printf("Happy\n"); }. Statement I: P1 displays "Happy" 8 times. Statement II: P2 displays "Happy" 12 times.

  1. Both Statement I and Statement II are true
  2. Both Statement I and Statement II are false
  3. Statement I is correct but Statement II is false
  4. Statement I is incorrect but Statement II is true.
Answer & explanation →
Q85. Statement I: "Quality control involves the series of inspections, reviews and tests used throughout the software process, to ensure each work product meets the requirements placed upon it."
Statement II: "Quality assurance consists of auditing and reporting functions of management."
In the light of the above statements, choose the correct answer:
  1. Both Statement I and Statement II are true
  2. Both Statement I and Statement II are false
  3. Statement I is correct but Statement II is false
  4. Statement I is incorrect but Statement II is true
Answer & explanation →
Q86.

G T Let be a simple undirected graph, D be a DFS G T tree on , and B be the BFS tree on G. Consider the following statements. G

Statement I : No edge of is a cross with T respect to D (u, v) G u

Statement II : For every edge of , if is i v j T at depth and is at depth in B then |i − j| = 1 . In the light of the above statements, choose the correct answer from the options given below

  1. Both Statement I and Statement II are true
  2. Both Statement I and Statement II are false
  3. Statement I is correct but Statement II is false
  4. Statement I is incorrect but Statement II is true.
Answer & explanation →
Q87.

Given below are two statements: L ∧ L = ϕ

Statement I : The problem "Is 1 2 ? " is L undecidable for context sensitive languages 1 L and 2. ∈

Statement II : The problem "Is W L?" is decidable W for context sensitive language L, (where is a string). In the light of the above statements, choose the correct answer from the options given below

  1. Both Statement I and Statement II are true
  2. Both Statement I and Statement II are false
  3. Statement I is correct but Statement II is false
  4. Statement I is incorrect but Statement II is true.
Answer & explanation →
Q88.

Given below are two statements:

Statement I: The laws of nature put two fundamental limits on the data rate of a channel. The H.Nyquist limit restricts the number of independent samples per second to twice the bandwidth in a Noiseless channel.

Statement II: Shannon's major result about noised channel is that the maximum data rate of a channel whose bandwidth is HHz, and whose S signal-to-noise ratio is N is given by: S Maximum number of bits/sec= Hlog ( 1+ ) 2 N In the light of the above statements, choose the correct answer from the options given below

  1. Both Statement I and Statement II are true
  2. Both Statement I and Statement II are false
  3. Statement I is correct but Statement II is false
  4. Statement I is incorrect but Statement II is true.
Answer & explanation →
Q89.

Given below are two statements:

Statement I: In Ceasar Cipher each letter of Plain text is replaced by another letter for encryption.

Statement II: The Diffie-Hellman algorithm is used for the exchange of secret keys. In the light of the above statements, choose the correct answer from the options given below

  1. Both Statement I and Statement II are true
  2. Both Statement I and Statement II are false
  3. Statement I is correct but Statement II is false
  4. Statement I is incorrect but Statement II is true
Answer & explanation →
Q90.

Given below are two statements:

Statement I: A genetic algorithm is a stochastic hill-climbing search in which a large population of states is maintained.

Statement II: In nondeterministic environments, agents can apply AND-OR search to generate contingent plans that reach the goal regardless of which outcomes occur during execution. In the light of the above statements, choose the correct answer from the options given below

  1. Both Statement I and Statement II are true
  2. Both Statement I and Statement II are false
  3. Statement I is correct but Statement II is false
  4. Statement I is incorrect but Statement II is true Directions (91-95) Read the following passage and answer the given questions. Questions 91-95 concern a disk with a sector size of 512 bytes, 2000 tracks per surface, 50 sectors per track, five double-sided platters, and average seek time of 10 milliseconds.
Answer & explanation →

Directions (Q91–95): A disk has a sector size of 512 bytes, 2000 tracks per surface, 50 sectors per track, five double-sided platters and an average seek time of 10 ms.

Q91.

If T is the capacity of a track in bytes, and S is the capacity of each surface in bytes, then (T, S)= _____

  1. (50 K, 50000K)
  2. (25 K, 25000K)
  3. (25 K, 50000K)
  4. (40 K, 36000K)
Answer & explanation →
Q92.

What is the capacity of the disk, in bytes?

  1. 25,000 K
  2. 500,000 K
  3. 250,000 K
  4. 50,000 K
Answer & explanation →
Q93.

Given below are two statements:

Statement I: The disk has a total number of 2000 cylinders.

Statement II: 51200 bytes is not a valid block size for the disk. In the light of the above statements, choose the correct answer from the options given below:

  1. Both Statement I and Statement II are true
  2. Both Statement I and Statement II are false
  3. Statement I is correct but Statement II is false
  4. Statement I is incorrect but Statement II is true
Answer & explanation →
Q94.

If the disk platters rotate at 5400 rpm (revolutions per minute), then approximately what is the maximum rotational delay?

  1. 0.011 seconds
  2. 0.11 seconds
  3. 0.0011 seconds
  4. 1.1 seconds
Answer & explanation →
Q95.

If one track of data can be transferred per revolution, then what is the data transfer rate?

  1. 2,850 KBytes/second
  2. 4,500 KBytes/second
  3. 5,700 KBytes/second
  4. 2,250 KBytes/second Directions (96-100) Read the following passage and answer the given questions. Consider the following table structures related to a university for the below Questions- EMPLOYEE PRIMARY KEY (EID), FOREIGN KEY (HODEID) REFRENCES EMPLOYEE (EID). FOREIGN KEY (DEPTNO) REFRENCES DEPARTMENT (DID); DEPARTMENT PRIMARY KEY (DID), UNIQUE (DNAME), FOREIGN KEY (HODID) REFERENCES EMPLOYEE (EID); PROJECT WORK PRIMARY KEY (EMPID, PROJNO), FOREIGN KEY (EMPID) REFERENCES EMPLOYEE (EID),
Answer & explanation →

Directions (Q96–100): A university database has the tables EMPLOYEE (EID, NAME, SALARY, DEPTNO, HODEID …; PRIMARY KEY EID; HODEID references EMPLOYEE(EID); DEPTNO references DEPARTMENT(DID)), DEPARTMENT (DID, DNAME, HODID; PRIMARY KEY DID; UNIQUE DNAME; HODID references EMPLOYEE(EID)) and PROJECTWORK (EMPID, PROJNO; PRIMARY KEY (EMPID, PROJNO); EMPID references EMPLOYEE(EID)).

Q96.

On the basis of above given table structures, retrieve the distinct employee ID (EMPID) of all employees of university who are working on project No.20, 30 and 40.

  1. SELECT EMPID FROM PROJECTWORK WHERE PROJNO(=(20,30,40);
  2. SELECT EMPID FROM PROJECTWORK WHERE PROJNO IN (20,30,40);
  3. SELECT DISTINCT EMPID FROM PROJECTWORK WHERE PROJNO IN (20,30,40);
  4. SELECT DISTINCT EMPID FROM PROJECTWORK WHERE PROJNO=20,30,40;
Answer & explanation →
Q97.

Given below are two statements to find the sum of salaries of all employees of the English department as well as the maximum, minimum and average salary in English department. STATEMENT I : SELECT SUM (SALARY), MAX (SALARY), MIN (SALARY), AVG (SALARY) FROM EMPLOYEE, DEPARTMENT WHERE DEPTNO=DID AND DNAME='ENGLISH'; STATEMENT II: SELECT SUM (SALARY), MAX (SALARY), MIN (SALARY), AVG (SALARY) FROM EMPLOYEE, DEPARTMENT WHERE DNAME='ENGLISH'; In the light of the above statements, choose the correct answer from the options given below

  1. Both Statement I and Statement II are true
  2. Both Statement I and Statement II are false
  3. Statement I is correct but Statement II is false
  4. Statement I is incorrect but Statement II is true
Answer & explanation →
Q98.

Which of the following query/queries

return the employee ID and name of
employees whose salary is greater than

the salary of all employees in department number 20 of university? Order results by employee ID (refer to table structures given above).

(A) SELECT EID, NAME FROM EMPLOYEE WHERE SALARY>(SELECT SALARY FROM EMPLOYEE WHERE DEPTNO=20)

ORDER BY EID;
(B) SELECT EID, NAME
FROM EMPLOYEE WHERE SALARY>
(SELECT SALARY FROM EMPLOYEE
WHERE DEPTNO =20 );
(C) SELECT EID, NAME
FROM EMPLOYEE
WHERE SALARY>ALL(SELECT SALARY
FROM EMPLOYEE WHERE DEPTNO =20)
ORDER BY EID
  1. (A) and (B) only
  2. (A) and (C) only
  3. (B) only
  4. (C) only
Answer & explanation →
Q99.

In reference to the above given table

structures, which of the following
query/queries will drop the 'SALARY'
column from 'EMPLOYEE' table?
(A) ALTER TABLE EMPLOYEE DROP
SALARY CASCADE;
(B) ALTER TABLE EMPLOYEE DROP
SALARY RESTRICT;
(C) ALTER EMPLOYEE DROP SALARY;
  1. (A) and (B) only
  2. (A) and (C) only
  3. (B) and (C) only
  4. (A) only
Answer & explanation →
Q100.

Refer table, structures given above. The university decided to give all employees in the 'SCIENCE' department a 20% rise in salary. Which of the following query/queries will compute the above results?

(A) UPDATE EMPLOYEE SET SALARY = SALARY * 1.20 WHERE DEPT NO. IN (SELECT DID FROM DEPARTMENT WHERE DNAME='SCIENCE');

(B) UPDATE TABLE EMPLOYEE SET SALARY = SALARY * 1.20 WHERE DNAME='SCIENCE';

(C) ALTER TABLE EMPLOYEE SET SALARY=SALARY * 1.20 WHERE DEPTNO. IN (SELECT DNAME FROM DEPARTMENT WHERE DNAME = 'SCIENCE')

  1. (A) and (B) only
  2. (A) only
  3. (B) and (C) only
  4. (C) only
Answer & explanation →

Answer key

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