Previous Year Paper · Questions with answers

UGC NET Computer Science PYQ, June 2017 (Paper II & III, Selected Questions)

All 74 questions of UGC NET Computer Science PYQ, June 2017 (Paper II & III, Selected Questions) with the correct answer from the official answer key and a solution. Read them free on UTpaper, or attempt the paper as a timed online test.

  • 74 questions
  • 74 explained
  • Official answer key
  • Free

Paper II 41 questions

Q1UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Convert the octal number 0.4051 into its equivalent decimal number.
  1. A0.5100098
  2. B0.2096
  3. C0.52
  4. D0.4192
Show answerHide answer

Correct answer: (A) 0.5100098

Explanation

(0.4051)₈ = 0×8⁰ + 4×8⁻¹ + 0×8⁻² + 5×8⁻³ + 1×8⁻⁴ = 0 + 0.5 + 0 + 0.009765625 + 0.000244140625 = (0.510009765625)₁₀ ≈ 0.5100098

Q2UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
The hexadecimal equivalent of the octal number 2357 is :
  1. A2EE
  2. B2FF
  3. C4EF
  4. D4FE
Show answerHide answer

Correct answer: (C) 4EF

Explanation

(2357)₈ = (010 011 101 111)₂. Grouping into 4 bits from right to left: 0100 1110 1111, so it is (4EF)₁₆.

Q3UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
If X is a binary number which is power of 2, then the value of X & (X – 1) is :
  1. A11.......11
  2. B00.......00
  3. C100......0
  4. D000.......1
Show answerHide answer

Correct answer: (B) 00.......00

Explanation

Let x = 2³ = 8 = 1000; then x – 1 = 7 = 0111. Now x & (x – 1) = 0000 (& is bitwise AND: a result bit is 1 only if both compared bits are 1, otherwise 0). So for any power of 2 the result is all zeros.

Q4UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
A binary 3-bit down counter uses J-K flip-flops, FFᵢ with inputs Jᵢ, Kᵢ and outputs Qᵢ, i = 0, 1, 2 respectively. The minimized expression for the input from following, is I. J₀ = K₀ = 0 II. J₀ = K₀ = 1 III. J₁ = K₁ = Q₀ IV. J₁ = K₁ = Q₀' V. J₂ = K₂ = Q₁ Q₀ VI. J₂ = K₂ = Q₁' Q₀'
  1. AI, III, V
  2. BI, IV, VI
  3. CII, III, V
  4. DII, IV, VI
Show answerHide answer

Correct answer: (D) II, IV, VI

Explanation

For a 3-bit down counter using J-K flip-flops (in toggle mode): J₀ = K₀ = 1, J₁ = K₁ = Q₀' and J₂ = K₂ = Q₁' Q₀'. So II, IV and VI.

Q5UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Match the following : List-I A. Absurd B. Ambiguous C. Axiom D. Conjecture List-II i. Clearly impossible being contrary to some evident truth ii. Capable of more than one interpretation or meaning iii. An assertion that is accepted and used without a proof iv. An opinion preferably based on some experience or wisdom Codes : A B C D
  1. Ai ii iii iv
  2. Bi iii iv ii
  3. Cii iii iv i
  4. Dii i iii iv
Show answerHide answer

Correct answer: (A) i ii iii iv

Explanation

Absurd means utterly or obviously senseless, illogical or untrue, i.e. contrary to all reason or evident truth (A–i). Ambiguous means open to more than one meaning or interpretation (B–ii). Axiom is a self-evident truth that requires no proof, a universally accepted principle (C–iii). Conjecture is an opinion or theory formed without sufficient evidence, e.g. based on past experience (D–iv).

Q6UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
In propositional logic if (P → Q) ∧ (R → S) and (P ∧ R) are two premises such that (P → Q) ∧ (R → S) P ∨ R ---------- Y Y is the premise :
  1. AP ∨ R
  2. BR ∨ S
  3. CQ ∨ R
  4. DQ ∨ S
Show answerHide answer

Correct answer: (D) Q ∨ S

Explanation

Given premises (P → Q) ∧ (R → S) and (P ∨ R). (P → Q) = ¬P ∨ Q and (R → S) = ¬R ∨ S. Resolving with P ∨ R, ¬P with P and ¬R with R resolve out, leaving the disjunction Q ∨ S (constructive dilemma). So Q ∨ S is correct.

Q7UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Consider a sequence F₀₀ defined as : F₀₀(0) = 1, F₀₀(1) = 1 F₀₀(n) = (10*F₀₀(n – 1) + 100) / F₀₀(n – 2) for n ≥ 2 Then what shall be the set of values of the sequence F₀₀ ?
  1. A(1, 110, 1200)
  2. B(1, 110, 600, 1200)
  3. C(1, 2, 55, 110, 600, 1200)
  4. D(1, 55, 110, 600, 1200)
Show answerHide answer

Correct answer: (A) (1, 110, 1200)

Explanation

F₀₀(0) = 1, F₀₀(1) = 1. F₀₀(2) = (10*1 + 100)/1 = 110, F₀₀(3) = (10*110 + 100)/1 = 1200, F₀₀(4) = (10*1200 + 100)/110 = 110, F₀₀(5) = (10*110 + 100)/1200 = 1, F₀₀(6) = (10*1 + 100)/110 = 1, and the values repeat. So the set of values is (1, 110, 1200).

Q8UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Consider a Hamiltonian Graph G with loops or parallel edges and with |V(G)| = n ≥ 3. Then which of the following is true?
  1. Adeg(v) ≥ n/2 for each vertex v.
  2. B|E(G)| ≥ (1/2)(n – 1)(n – 2) + 2
  3. Cdeg(v) + deg(w) ≥ n whenever v and w are not connected by an edge.
  4. DAll of the above
Show answerHide answer

Correct answer: (D) All of the above

Explanation

By Dirac's theorem, deg(v) ≥ n/2 for every vertex; by Ore's theorem, deg(v) + deg(w) ≥ n for every pair of non-adjacent vertices v and w; and a graph with |E(G)| ≥ (1/2)(n – 1)(n – 2) + 2 edges is Hamiltonian. So all of the above.

Q9UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Consider the following assembly language instructions : mov al, 15 mov ah, 15 xor al, al mov cl, 3 shr ax, cl add al, 90H adc ah, 0 What is the value in ax register after execution of above instructions?
  1. A0270H
  2. B01070H
  3. C01E0H
  4. D0370H
Show answerHide answer

Correct answer: (A) 0270H

Explanation

AX consists of AH and AL. mov al, 15 → AX = 000FH mov ah, 15 → AX = 0F0FH xor al, al → AX = 0F00H mov cl, 3 → AX = 0F00H, CL = 03 shr ax, cl → AX = 01E0H (shift right 3 times) add al, 90H → AX = 0170H, carry = 1 adc ah, 0 → AX = 0270H (adds the carry) So AX = 0270H.

Q10UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
The contents of register (BL) and register (AL) of 8085 microprocessor are 49H and 3AH respectively. The contents of Al, the status of carry flag (CF) and sign flag (SF) after executing 'SUB AL, BL' assembly language instruction, are
  1. AAL = 0FH; CF = 1; SF = 1
  2. BAL = F0H; CF = 0; SF = 0
  3. CAL = F1H; CF = 1; SF = 1
  4. DAL = 1FH; CF = 1; SF = 1
Show answerHide answer

Correct answer: (C) AL = F1H; CF = 1; SF = 1

Explanation

(AL) = 3AH = 00111010, (BL) = 49H = 01001001. AL – BL = 11110001, so (AL) = F1H, CF = 1, SF = 1. The carry (borrow) flag is set since the first operand is less than the second; the result is negative, so the sign flag is set.

Q11UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Which of the following statements is false? (A) Optimal binary search tree construction can be performed efficiently using dynamic programming. (B) Breadth-first search cannot be used to find connected components of a graph. (C) Given the prefix and postfix walks of a binary tree, the tree cannot be re-constructed uniquely. (D) Depth-first-search can be used to find the connected components of a graph.
  1. AA
  2. BB
  3. CC
  4. DD
Show answerHide answer

Correct answer: (B) B

Explanation

Statement B is false: breadth-first search can be used to find the connected components of a graph, just like depth-first search. Optimal binary search tree construction is a well-known dynamic programming application, and given only the prefix and postfix walks of a binary tree, the tree cannot be reconstructed uniquely.

Q12UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
If h is chosen from a universal collection of hash functions and is used to hash n keys into a table of size m, where n ≤ m, the expected number of collisions involving a particular key x is less than .........
  1. A1
  2. B1/n
  3. C1/m
  4. Dn/m
Show answerHide answer

Correct answer: (A) 1

Explanation

Let Xᵢ = 1 if key x collides with the i-th other key, else 0. For a universal hash family, a given pair collides with probability 1/m, so E(Xᵢ) = 1/m. Summing over the other (n – 1) keys, the expected number of collisions involving x is (n – 1)/m. Since n ≤ m, this is less than 1.

Q13UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Which of the following is true for computation time in insertion, deletion and finding maximum and minimum element in a sorted array?
  1. AInsertion – O(1), Deletion – O(1), Maximum – O(1), Minimum – O(1)
  2. BInsertion – O(1), Deletion – O(1), Maximum – O(n), Minimum – O(n)
  3. CInsertion – O(n), Deletion – O(n), Maximum – O(1), Minimum – O(1)
  4. DInsertion – O(n), Deletion – O(n), Maximum – O(n), Minimum – O(n)
Show answerHide answer

Correct answer: (C) Insertion – O(n), Deletion – O(n), Maximum – O(1), Minimum – O(1)

Explanation

In a sorted array, insertion and deletion take O(n) in the worst case (elements must be shifted), while the minimum and maximum are always at the two ends, so finding them takes O(1).

Q14UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
The order of a leaf in a B+ tree is the maximum number of children it can have. Suppose that block size is 1 kilobyte, the child pointer takes 7 bytes long and search field value takes 14 bytes long. The order of the leaf node is ..........
  1. A16
  2. B63
  3. C64
  4. D65
Show answerHide answer

Correct answer: (A) 16

Explanation

Data pointer = child pointer + search field value = 7 + 14 = 21 bytes. Maximum number of entries = 1 KB/21 bytes = 1024/21 ≈ 48.76. The book picks 16 since all other options are greater than 48.

Q15UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Which of the following is a valid heap? (Each tree is a complete binary tree given in level order, left to right.) (A) 16, 14, 10, 4, 7, 9, 3, 2, 8, 1 (root 16; children of 16: 14, 10; children of 14: 4, 7; children of 10: 9, 3; children of 4: 2, 8; child of 7: 1) (B) 16, 14, 10, 8, 7, 9, 3, 2, 4, 1 (root 16; children of 16: 14, 10; children of 14: 8, 7; children of 10: 9, 3; children of 8: 2, 4; child of 7: 1) (C) 16, 14, 10, 8, 1, 9, 3, 2, 4, 7 (root 16; children of 16: 14, 10; children of 14: 8, 1; children of 10: 9, 3; children of 8: 2, 4; child of 1: 7) (D) 16, 14, 3, 4, 1, 9, 10, 8, 2, 7 (root 16; children of 16: 14, 3; children of 14: 4, 1; children of 3: 9, 10; children of 4: 8, 2; child of 1: 7)
  1. AA
  2. BB
  3. CC
  4. DD
Show answerHide answer

Correct answer: (B) B

Explanation

(A) fails the max-heap property (4 has child 8). (B) is a valid max heap because every parent ≥ its children. (C) fails (1 has child 7). (D) fails (3 has children 9 and 10; 4 has child 8; 1 has child 7).

Q16UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
How many multiples of 6 are there between the following pairs of numbers? 0 and 100 and –6 and 34
  1. A16 and 6
  2. B17 and 6
  3. C17 and 7
  4. D16 and 7
Show answerHide answer

Correct answer: (A) 16 and 6

Explanation

(i) Multiples of 6 between 1 and 100 = ⌊100/6⌋ = 16 (the book counts 16 for 0 to 100). (ii) Multiples of 6 between 0 and 34 = ⌊34/6⌋ + 1 (for 0) = 5 + 1 = 6.

Q17UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Which of the following strings would match the regular expression : p+[3 – 5]*[xyz]? I. p443y II. p6y III. 3xyz IV. p35z V. p353535x VI. ppp5
  1. AI, III and VI only
  2. BIV, V and VI only
  3. CII, IV and V only
  4. DI, IV and V only
Show answerHide answer

Correct answer: (D) I, IV and V only

Explanation

p+[3–5]*[xyz] = one or more p, then any number of 3, 4 or 5, then exactly one of x, y, z. (I) p443y → matched (II) p6y → not matched, since 6 cannot be used (III) 3xyz → not matched, string must start with p (IV) p35z → matched (V) p353535x → matched (VI) ppp5 → not matched, string must end with x, y or z

Q18UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Which of the following statements (s) regarding a linker software is/are true? I. A function of a linker is to combine several object modules into a single load module. II. A function of a linker is to replace absolute references in an object module by symbolic references to locations in other modules
  1. AOnly I
  2. BOnly II
  3. CBoth I and II
  4. DNeither I nor II
Show answerHide answer

Correct answer: (A) Only I

Explanation

Statement I is true: a linker combines several object modules into a single load module. Statement II is wrong: a linker replaces symbolic references by addresses (it generates relocatable addresses), not absolute references by symbolic ones.

Q19UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
There are three processes P1, P2 and P3 sharing a semaphore for synchronizing a variable. Initial value of semaphore is one. Assume that negative value of semaphore tells us how many processes are waiting in queue. Processes access the semaphore in following order : (A) P2 needs to access (B) P1 needs to access (C) P3 needs to access (D) P2 exits critical section (E) P1 exits critical section The final value of semaphore will be :
  1. A0
  2. B1
  3. C–1
  4. D–2
Show answerHide answer

Correct answer: (A) 0

Explanation

Initial value S = 1. (1) P2 needs to access: S = 0 (no one waiting) (2) P1 needs to access: S = –1 (one process waiting) (3) P3 needs to access: S = –2 (two processes waiting) (4) P2 exits critical section: S = –1 (one process waiting) (5) P1 exits critical section: S = 0 (no process waiting)

Q20UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
In a paging system, it takes 30 ns to search translation Look-a-side buffer (TLB) and 90 ns to access the main memory. If the TLB hit ratio is 70%, the effective memory access time is :
  1. A48ns
  2. B147ns
  3. C120ns
  4. D84ns
Show answerHide answer

Correct answer: (B) 147ns

Explanation

TLB hit ratio 70%, TLB search 30 ns, memory access 90 ns. On a hit, the page is found in the TLB (30 ns); on a miss, the TLB is searched and the page table read from memory (30 + 90 ns); then 90 ns to access the data. Total = (0.7 × 30) + (0.3 × (90 + 30)) + 90 = 21 + 36 + 90 = 147 ns

Q21UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Match the following w.r.t. Input/Output management : List-I A. Device controller B. Device driver C. Interrupt handler D. Kernel I/O subsystem List-II i. Extracts information from the controller register and store it in data buffer ii. I/O scheduling iii. Performs data transfer iv. Processing of I/O request Codes : A B C D
  1. Aiii iv i ii
  2. Bii i iv iii
  3. Civ i ii iii
  4. Di iii iv ii
Show answerHide answer

Correct answer: (D) i iii iv ii

Explanation

The correct match: A. Device controller – i. Extracts information from the controller register and stores it in data buffer; B. Device driver – iii. Performs data transfer; C. Interrupt handler – iv. Processing of I/O request; D. Kernel I/O subsystem – ii. I/O scheduling.

Q22UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Which of the following scheduling algorithms may cause starvation? A. First-come-first-served B. Round Robin C. Priority D. Shortest process next E. Shortest remaining time first
  1. AA, C and E
  2. BC, D and E
  3. CB, D, and E
  4. DB, C and D
Show answerHide answer

Correct answer: (B) C, D and E

Explanation

(1) First come – first served – No starvation (2) Round robin – No starvation (3) Priority – starvation if higher priority process called again & again lower priority starves (4) Shortest process next = starvation possible (5) Shortest remaining time first = starvation possible

Q23UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Distributed operating system consist of :
  1. ALoosely coupled O.S. software on a loosely coupled hardware
  2. BLoosely coupled O.S. Software on a tightly coupled hardware
  3. CTightly coupled O.S. Software on a loosely coupled hardware
  4. DTightly coupled O.S. software on a tightly coupled hardware
Show answerHide answer

Correct answer: (C) Tightly coupled O.S. Software on a loosely coupled hardware

Explanation

A distributed operating system is usually defined as running on more loosely coupled hardware. There is no shared memory, but provides a single memory by tightly coupled software.

Q24UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
______ refers loosely to the process of semi-automatically analyzing large databases to find useful patterns
  1. ADatamining
  2. BData warehousing
  3. CDBMS
  4. DData mirroring
Show answerHide answer

Correct answer: (A) Datamining

Explanation

The practice of examining large pre-existing databases in order to generate new information is data mining. It refers loosely to the process of semi-automatically analyzing large databases to find useful patterns.

Q25UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Which of the following statements is/are true w.r.t. Enterprise Resource planning (ERP)? (A) ERP automates and integrates majority of business processes (B) ERP provides access to information in a Real Time Environment. (C) ERP is inexpensive to implement.
  1. A(A), (B) and (C) are false
  2. B(A) and (B) false; (C) true
  3. C(A) and (B) true; (C) false
  4. D(A) true; (B) and (C) are false
Show answerHide answer

Correct answer: (C) (A) and (B) true; (C) false

Explanation

(1) ERP automates and integrates majority of business – true (2) ERP provides access to information in a real time environment – true (3) ERP is inexpensive to implement – false

Q26UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
An attribute A of data type varchar (20) has value 'Ram' and the attribute B of data type char (20) has value 'Sita' in oracle. The attribute A has ______ memory spaces and B has ______ memory spaces.
  1. A20, 20
  2. B3, 20
  3. C3, 4
  4. D20, 4
Show answerHide answer

Correct answer: (B) 3, 20

Explanation

CHAR and VARCHAR are both declared with a maximum length, but a CHAR column is fixed to the declared length (padded with spaces), while VARCHAR(20) uses only as much space as the stored value. So A ('Ram') needs 3 spaces and B ('Sita') needs 20.

Q27UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Integrity constraints ensure that change made to the database by authorized users do not result into loss of data consistency. Which of the following statement (s) is (are) true w.r.t. the examples of integrity constraints? (A) An instructor Id. No. cannot be null, provided Instructor Id No. being primary key. (B) No two citizens have same Adhar-Id (C) Budget of a company must be zero
  1. A(A), (B) and (C) are true
  2. B(A) false, (B) and (C) are true
  3. C(A) and (B) are true; (C) false
  4. D(A), (B) and (C) are false
Show answerHide answer

Correct answer: (C) (A) and (B) are true; (C) false

Explanation

An instructor Id. No. cannot be null when it is the primary key – valid integrity constraint. No two citizens have the same Aadhaar-Id – valid. But 'the budget of a company must be zero' is not a valid integrity constraint. So (A) and (B) are true and (C) is false.

Q28UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Let M and N be two entities in an E-R diagram with simple single value attributes. R₁ and R₂ are two relationship between M and N, where as : R₁ is one-to-many and R₂ is many-to-many. The minimum number of tables required to represent M, N, R₁ and R₂ in the relational model are _____
  1. A4
  2. B6
  3. C7
  4. D3
Show answerHide answer

Correct answer: (D) 3

Explanation

Two tables are created for entities M and N, and a third table for the many-to-many relationship R₂. R₁ (one-to-many) needs no separate table: the primary key of the 'one' side is placed as a foreign key in the 'many' side. So the minimum is 3 tables.

Q29UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Consider a schema R(MNPQ) and functional dependencies M → N, P → Q. Then the decomposition of R into R₁ (MN) and R₂(PQ) is ______
  1. ADependency preserving but not lossless join
  2. BDependency preserving and lossless join
  3. CLossless join but not dependency preserving
  4. DNeither dependency preserving nor lossless join
Show answerHide answer

Correct answer: (A) Dependency preserving but not lossless join

Explanation

With R(MNPQ), M → N and P → Q, the decomposition into R₁(MN) and R₂(PQ) clearly preserves both dependencies, but it is not lossless because R₁ and R₂ have no common attribute, so R cannot be recovered by joining them.

Q30UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Match the following layers and Protocols for a user browsing with SSL : List-I A. Application of layer B. Transport layer C. Network layer D. Datalink layer List-II i. TCP ii. IP iii. PPP iv. HTTP Codes : A B C D
  1. Aiv i ii iii
  2. Biii ii i iv
  3. Cii iii iv i
  4. Diii i iv ii
Show answerHide answer

Correct answer: (A) iv i ii iii

Explanation

The correct match: A. Application layer – iv. HTTP; B. Transport layer – i. TCP; C. Network layer – ii. IP; D. Datalink layer – iii. PPP.

Q31UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
A packet whose destination is outside the local TCP/IP network segment is sent to______
  1. AFile server
  2. BDNS server
  3. CDHCP server
  4. DDefault gateway
Show answerHide answer

Correct answer: (D) Default gateway

Explanation

Default gateway serves an access point or IP router that a networked uses to send information to a computer in another network or the internet. Default simply means that this gateway is used by default, unless an application specifies another gateway.

Q32UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Distance vector routing algorithm is a dynamic algorithm. The routing tables in distance vector routing algorithm are updated ______
  1. AAutomatically
  2. BBy server
  3. CBy exchanging information with neighbor nodes
  4. DWith back up database
Show answerHide answer

Correct answer: (C) By exchanging information with neighbor nodes

Explanation

A distance vector routing protocol requires that a router inform its neighbors about its topology changes periodically.

Q33UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Software Engineering is an engineering discipline that is concerned with :
  1. AHow computer systems work
  2. BTheories and methods that underline computers and software systems
  3. CAll aspects of software production
  4. DAll aspects of computer-based system development, including hardware, software and process engineering
Show answerHide answer

Correct answer: (C) All aspects of software production

Explanation

Software engineering is an engineering discipline that is concerned with all aspects of software production.

Q34UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
The prototyping model of software development is :
  1. AA reasonable approach when requirements are well-defined
  2. BA useful approach when a customer cannot define requirements clearly
  3. CThe best approach to use for projects with large development teams
  4. DA risky model that rarely produces a meaningful product
Show answerHide answer

Correct answer: (B) A useful approach when a customer cannot define requirements clearly

Explanation

This model allows for the creation of a preliminary version (prototype) of the software, which can be refined iteratively based on user feedback until satisfactory version is achieved. Clarifies Requirements– The prototyping process helps customers visualize and understand what the final product will look like and how it will function. Reduce Risk– By identifying potential issues early on through prototyping, developers can avoid costly rework and delays later in the development cycle.

Q35UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Which of the following is not one of three software product aspects addressed by Mccall's software quality factors?
  1. AAbility to undergo change
  2. BAdaptability to new environments
  3. COperational characteristics
  4. DProduction costs and scheduling
Show answerHide answer

Correct answer: (D) Production costs and scheduling

Explanation

Mccalls's software quality factors. (1) ability to undergo change (2) Adaptability to new environments (3) Operational characteristics but production costs & scheduling is not the aspect of quality factor.

Q36UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Which of the following statement(s) is/are true with respect to software architecture? S1 : Coupling is a measure of how well the grouped together in a module belong together logically. S2 : Cohesion is a measure of the degree of interaction between software modules S3 : If coupling is low and cohesion is high then it is easier to change one module without affecting others.
  1. AOnly S1 and S2
  2. BOnly S3
  3. CAll of S1, S2 and S3
  4. DOnly S1
Show answerHide answer

Correct answer: (B) Only S3

Explanation

S1 and S2 swap the definitions: cohesion measures how well the things grouped in a module belong together, and coupling measures the degree of interaction between modules. S3 is true: if coupling is low and cohesion is high, it is easier to change one module without affecting others.

Q37UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
A software design pattern used to enhance the functionality of an object at run-time is :
  1. AAdapter
  2. BDecorator
  3. CDelegation
  4. DProxy
Show answerHide answer

Correct answer: (B) Decorator

Explanation

In object-oriented programming, the decorator pattern (also known as wrapper) is a design pattern that allows behaviour to be added to an individual object, statically or dynamically at run-time, without affecting the behaviour of other objects of the same class.

Q38UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Which of the following storage classes have global visibility in C/C++?
  1. AAuto
  2. BExtern
  3. CStatic
  4. DRegister
Show answerHide answer

Correct answer: (B) Extern

Explanation

extern declares variables/functions with external linkage, giving them global visibility across files. It is the default storage class of all global variables and functions.

Q39UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Which of the following operators cannot be overloaded in C/C++?
  1. ABitwise right shift assignment
  2. BAddress of
  3. CIndirection
  4. DStructure reference
Show answerHide answer

Correct answer: (D) Structure reference

Explanation

Structure reference refers to the dot operator (.), which is one of the operators that cannot be overloaded in C++. The other options (>>=, unary & and unary *) can be overloaded for custom types in C++.

Q40UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Which of the following cannot be passed to a function in C++?
  1. AConstant
  2. BStructure
  3. CArray
  4. DHeader file
Show answerHide answer

Correct answer: (D) Header file

Explanation

A header file cannot be passed to a function in C++, while a constant, a structure and an array can be passed to a function.

Q41UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Which one of the following is correct for overloaded functions in C++?
  1. ACompiler sets up a separate function for every definition of function
  2. BCompiler does not set up a separate function for every definition of function
  3. COverloaded functions cannot handle different types of objects
  4. DOverloaded functions cannot have same number of arguments
Show answerHide answer

Correct answer: (A) Compiler sets up a separate function for every definition of function

Explanation

When you call an overloaded function, the compiler determines the most appropriate definition to use by comparing the arguments types you used to call the function with the parameter types specified in the definitions. The process of selecting the most appropriate overloaded function is called overload resolution.

Paper III 33 questions

Q42UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
The general configuration of the micro programmed control unit is given below : (Diagram: External Conditions → Next Address Generator → B → C, with 'Next Address Information' fed back from C to the Next Address Generator.) What are blocks B and C in the diagram respectively?
  1. ABlock address register and cache memory
  2. BControl address register and control memory
  3. CBranch register and cache memory
  4. DControl address register and random access memory
Show answerHide answer

Correct answer: (B) Control address register and control memory

Explanation

In a microprogrammed control unit, the next address generator (sequencer) supplies the address to the control address register (B), which addresses the control memory (C); the control word read from control memory supplies the next address information. So B is the control address register and C is the control memory.

Q43UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
In 8085 microprocessor, the digit 5 indicates that the microprocessor needs
  1. A–5 volts, +5 volts supply
  2. B+5 volts supply only
  3. C–5 volts supply only
  4. D5 MHz clock
Show answerHide answer

Correct answer: (B) +5 volts supply only

Explanation

The '5' in 8085 indicates that it uses a single +5 V power supply (by using depletion-mode transistors), rather than the +5 V, –5 V and +12 V supplies needed by the 8080. Its clock speed is 3 MHz.

Q44UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
In 8085, which of the following performs : load register pair immediate operation?
  1. ALDAS rp
  2. BLHLD addr
  3. CLXI rp, data
  4. DINS rp
Show answerHide answer

Correct answer: (C) LXI rp, data

Explanation

LXI rp, data (load register pair immediate) loads a register pair with 2 bytes of immediate data. It is generally used to load SP or a memory pointer; the pairs used are H-L, D-E and B-C, where B, D, H hold the MSB and C, E, L hold the LSB.

Q45UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
Any decision tree that sorts n elements has height ..............
  1. AΩ(lg n)
  2. BΩ(n)
  3. CΩ(n lg n)
  4. DΩ (n²)
Show answerHide answer

Correct answer: (C) Ω(n lg n)

Explanation

A binary tree of height h has at most 2ʰ leaves. Sorting n elements requires at least n! leaves, so n! ≤ 2ʰ, giving h ≥ lg(n!) ≥ (n/2) lg(n/2) = Ω(n lg n).

Q46UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
Red–black trees are one of many search tree schemes that are "balanced" in order to guarantee that basic dynamic-set operations take .............. time in the worst case.
  1. AO(1)
  2. BO(lg n)
  3. CO(n)
  4. DO(n lg n)
Show answerHide answer

Correct answer: (B) O(lg n)

Explanation

Red-black trees are one of many search tree schemes that are 'balanced' in order to guarantee that basic dynamic-set operations take O(lg n) time in the worst case.

Q47UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
Dijkstra's algorithm is based on
  1. ADivide and conquer paradigm
  2. BDynamic programming
  3. CGreedy Approach
  4. DBacktracking paradigm
Show answerHide answer

Correct answer: (C) Greedy Approach

Explanation

Dijkstra's algorithm always chooses the closest vertex in V – S to add to the set S, where S is the set of vertices whose final shortest-path weights from the source are known. So it is a greedy algorithm.

Q48UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
With respect to a loop in the transportation table, which one of the following is not correct?
  1. AEvery loop has an odd no. of cells and atleast 5.
  2. BClosed loops may or may not be square in shape
  3. CAll the cells in the loop that have a plus or minus sign, except the starting cell, must be occupied cells
  4. DEvery loop has an even no. of cells and atleast four.
Show answerHide answer

Correct answer: (A) Every loop has an odd no. of cells and atleast 5.

Explanation

In transportation table: (i) An even number of atleast 4 cells must participate in closed loop and an occupied cell can be considered only once and not more. (ii) Closed loop may or may not be square or rectangle in shape. (iii) All cells in the loop that have a plus or minus sign, except the starting cell, must be occupied.

Q49UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
Which of the following are not regular? (A) Strings of even number of a's (B) Strings of a's, whose length is a prime number (C) Set of all palindromes made up of a's and b's (D) Strings of a's whose length is a perfect square
  1. A(A) and (B) only
  2. B(A), (B) and (C) only
  3. C(B), (C) and (D) only
  4. D(B) and (D) only
Show answerHide answer

Correct answer: (C) (B), (C) and (D) only

Explanation

(A) Strings with an even number of a's is regular, since a finite automaton can accept it. (B) Strings of a's whose length is prime, (C) palindromes over {a, b} and (D) strings of a's whose length is a perfect square are not regular: no finite automaton can accept them (provable with the pumping lemma).

Q50UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
Abstraction and encapsulation are fundamental principles that underlie the object oriented approach to software development. What can you say about the following two statements? I. Abstraction allows us to focus on what something does without considering the complexities of how it works. II. Encapsulation allows us to consider complex ideas while ignoring irrelevant detail that would confuse us.
  1. ANeither I nor II is correct
  2. BBoth I and II are correct
  3. COnly II is correct
  4. DOnly I is correct
Show answerHide answer

Correct answer: (A) Neither I nor II is correct

Explanation

The book's solution: encapsulation allows us to focus on what something does without considering the complexities of how it works, and abstraction allows us to consider complex ideas while ignoring irrelevant details that would confuse us. Hence, as per the book, neither statement is correct.

Q51UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
Which of the following statements(s) with regard to an abstract class in JAVA is/are TRUE? I. An abstract class is one that is not used to create objects. II. An abstract class is designed only to act as a base class to be inherited by other classes.
  1. AOnly I
  2. BOnly II
  3. CNeither I nor II
  4. DBoth I and II
Show answerHide answer

Correct answer: (D) Both I and II

Explanation

A class declared abstract cannot be instantiated; it must be extended and its methods implemented. It is designed only to act as a base class to be inherited by other classes. So both I and II are true.

Q52UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
Given the following statements : (A) A class of language that is closed under union and complementation has to be closed under intersection (B) A class of language that is closed under union and intersection has to be closed under complementation Which of the following options is correct?
  1. ABoth (A) and (B) are false
  2. BBoth (A) and (B) are true
  3. C(A) is true, (B) is false
  4. D(A) is false, (B) is true
Show answerHide answer

Correct answer: (C) (A) is true, (B) is false

Explanation

(A) is true by De Morgan's law: A ∩ B = (A' ∪ B')'. (B) is false: recursively enumerable languages are closed under union and intersection but not under complementation.

Q53UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
Consider the following JAVA program : public class First { public static int CBSE (int x) { if (x < 100) x = CBSE (x + 10) return (x – 1) } public static void main (String [ ] args) { system. out. print (First. CBSE (60)); } What does this program print ?
  1. A59
  2. B95
  3. C69
  4. D99
Show answerHide answer

Correct answer: (B) 95

Explanation

CBSE(60) → CBSE(70) → CBSE(80) → CBSE(90) → CBSE(100). CBSE(100) returns 99; then CBSE(90) returns 98, CBSE(80) returns 97, CBSE(70) returns 96 and CBSE(60) returns 95. So the program prints 95.

Q54UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
Given the array of integers 'array' shown below : 13 7 27 2 18 33 9 11 22 8 What is the output of the following Java statements? int [ ] p = new int [10]; int [ ] q = new int [10]; for (ink k = 0; k < 10; k++) p[k] = array [k]; q = p; p[4] = 20; System out. println (array [4]+ "." + q[4]);
  1. A20 : 20
  2. B18 : 18
  3. C18 : 20
  4. D20 : 18
Show answerHide answer

Correct answer: (C) 18 : 20

Explanation

The loop copies all values of 'array' into p. After q = p, q refers to the same array object as p, so p[4] = 20 also makes q[4] = 20. 'array' itself is unchanged, so array[4] = 18. The output is 18 : 20.

Q55UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
Names of some of the Operating systems are given below : (A) MS–DOS (B) XENIX (C) OS/2 In the above list, following operating systems didn't provide multi-user facility.
  1. A(A) only
  2. B(A) and (B) only
  3. C(B) and (C) only
  4. D(A), (B) and (C)
Show answerHide answer

Correct answer: (D) (A), (B) and (C)

Explanation

(i) MS-DOS was a single-user operating system. (ii) XENIX has always been multi-user. (iii) OS/2 does not provide a multi-user facility. The book's key is (d): (A), (B) and (C).

Q56UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
A memory management system has 64 pages with 512 bytes page size. Physical memory consists of 32 page frames. Number of bits required in logical and physical address are respectively :
  1. A14 and 15
  2. B14 and 29
  3. C15 and 14
  4. D16 and 32
Show answerHide answer

Correct answer: (C) 15 and 14

Explanation

Logical address space = number of pages × page size = 2⁶ × 2⁹ = 2¹⁵, so the logical address needs 15 bits. Physical address space = number of frames × page size = 2⁵ × 2⁹ = 2¹⁴, so the physical address needs 14 bits.

Q57UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
Some of the criteria for calculation of priority of a process are : A. Processor utilization by an individual process B. Weight assigned to a user or group of users C. Processor utilization by a user or group of processes In fair share scheduler, priority is calculated based on :
  1. AOnly (A) and (B)
  2. BOnly (A) and (C)
  3. C(A), (B), and (C)
  4. DOnly (B) and (C)
Show answerHide answer

Correct answer: (C) (A), (B), and (C)

Explanation

Fair-share scheduling is a scheduling algorithm in which CPU usage is equally distributed among system users or groups, rather than equally among processes. The priority considers processor utilization by the individual process, by the user or group, and the weight assigned to the user or group, so (A), (B) and (C).

Q58UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
One of the disadvantages of user level threads compared to Kernel level threads is
  1. AIf a user level thread of a process executes a system call, all threads in that process are blocked
  2. BScheduling is application dependent
  3. CThread switching doesn't require kernel mode privileges
  4. DThe library procedures invoked for thread management in user level threads are local procedures
Show answerHide answer

Correct answer: (A) If a user level thread of a process executes a system call, all threads in that process are blocked

Explanation

User level threads – advantages: thread switching does not require kernel mode privileges; they can run on any OS; they are fast to create and manage. Disadvantages: in a typical OS most system calls are blocking, so if one user level thread executes a system call, all threads of that process are blocked; and a multithreaded application cannot take advantage of multiprocessing.

Q59UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
Which statements is not correct about "init" process in Unix?
  1. AIt is generally the parent of the login shell
  2. BIt has PID 1.
  3. CIt is the first process in the system.
  4. DInit forks and execs a 'getty' process at every port connected to a terminal.
Show answerHide answer

Correct answer: (C) It is the first process in the system.

Explanation

'init' (PID 1) is not the first process in the system; it is the second, since the scheduler/swapper process (PID 0) is created first. So statement (c) is not correct.

Q60UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
Which of the following is an interrupt according to temporal relationship with system clock?
  1. AMaskable interrupt
  2. BPeriodic interrupt
  3. CDivision by zero
  4. DSynchronous interrupt
Show answerHide answer

Correct answer: (D) Synchronous interrupt

Explanation

A synchronous interrupt is one whose source is in phase with the system clock, i.e. interrupts that depend on the system clock (example: a time service that uses the system clock).

Q61UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
Which of the following is incorrect for virtual memory?
  1. ALarge programs can be written
  2. BMore I/O is required
  3. CMore addressable memory available
  4. DFaster and easy swapping of process
Show answerHide answer

Correct answer: (B) More I/O is required

Explanation

Virtual memory maps the virtual addresses used by a program into physical addresses. It provides more addressable memory, allows programs larger than physical memory to run, and allows easy swapping; it does not require more I/O. So 'More I/O is required' is incorrect.

Q62UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
For a database relation R(A, B, C, D) where the domains of A, B and D include only atomic values, only the following functional dependencies and those that can be inferred from them are : A → C B → D The relation R is in ______
  1. AFirst normal form but not in second normal form
  2. BBoth in first normal form as well in second normal form
  3. CSecond normal form but not in third normal form
  4. DBoth in second normal form as well in third normal form
Show answerHide answer

Correct answer: (A) First normal form but not in second normal form

Explanation

No single attribute determines all others. The closure {AB}⁺ = {A, B, C, D}, so AB is the only candidate key. 2NF requires non-prime attributes to be fully dependent on the key, but C depends on A alone and D on B alone (partial dependencies). So R is in 1NF but not in 2NF.

Q63UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
Consider the following relation : Works (emp_name, company_name, salary) Here, emp_name is primary key. Consider the following SQL query Select emp_name From works T where salary > (select avg (salary) from works S where T.company_name = S.company_name) The above query if for following :
  1. AFind the highest paid employee who earns more than the average salary of all employees of his company
  2. BFind the highest paid employee who earns more than the average salary of all the employees of all companies
  3. CFind all employees who earn more than the average salary of all employees of all the companies
  4. DFind all employees who earn more than the average salary of all employees of their company
Show answerHide answer

Correct answer: (D) Find all employees who earn more than the average salary of all employees of their company

Explanation

The correlated subquery computes the average salary of the employee's own company (T.company_name = S.company_name). The query does not use max, so it does not select only the highest paid employee; it selects all employees who earn more than the average salary of their company.

Q64UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
Which one is correct w.r.t. RDBMS?
  1. APrimary key ⊆ super key ⊆ candidate key
  2. BPrimary key ⊆ candidate key ⊆ super key
  3. CSuper key ⊆ candidate key ⊆ primary key
  4. DSuper key ⊆ primary key ⊆ candidate key
Show answerHide answer

Correct answer: (B) Primary key ⊆ candidate key ⊆ super key

Explanation

Super key: a set of attributes that uniquely identifies a tuple. Candidate key: a minimal super key (no proper subset is a super key). Primary key: the candidate key chosen to identify tuples. So Primary key ⊆ candidate key ⊆ super key.

Q65UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
Which of the following statements(s) is/are TRUE with regard to software testing? I. Regression testing technique ensures that the software product runs correctly after the changes during maintenance. II. Equivalence partitioning is a white-box testing technique that divides the input domain of a program into classes of data from which test cases can be derived.
  1. AOnly I
  2. BOnly II
  3. CBoth I and II
  4. DNeither I nor II
Show answerHide answer

Correct answer: (A) Only I

Explanation

Regression testing verifies that previously developed and tested software still performs correctly after it is changed, so I is true. Equivalence partitioning is a black-box (not white-box) testing method, so II is false.

Q66UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
Which of the following are facts about a top-down software testing approach? I. Top-down testing typically requires the tester to build method stubs. II. Top-down testing typically requires the tester to build test drivers.
  1. AOnly I
  2. BOnly II
  3. CBoth I and II
  4. DNeither I nor II
Show answerHide answer

Correct answer: (A) Only I

Explanation

Top-down testing proceeds from the main module to sub-modules; a sub-module not yet developed is simulated by a temporary program called a STUB. Bottom-up testing proceeds from sub-modules to the main module, using DRIVERS to simulate the main module. So only I is true.

Q67UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
Which of the following HTML code will affect the vertical alignment of the table content?
  1. A<td style = "vertical-align : middle" > Text Here </td>
  2. B<td valign = "centre"> Text Here </td>
  3. C<td style = "text-align : center"> Text Here </td>
  4. D<td align = "middle" > Text Here </td>
Show answerHide answer

Correct answer: (B) <td valign = "centre"> Text Here </td>

Explanation

Vertical alignment of table contents is set by <td valign = 'top | middle | bottom | baseline'> Text here </td>. No option matches exactly; taking 'centre' as middle, option (b) matches.

Q68UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
What can you say about the following statements? I. XML tags are case-insensitive II. In Java Script, identifier names are case-sensitive. III. Cascading Style Sheets (CSS) cannot be used with XML. IV. All well-formed XML documents must contain a document type definition.
  1. AOnly I and II are false
  2. BOnly III and IV are false
  3. COnly I and III are false
  4. DOnly II and IV are false
Show answerHide answer

Correct answer: (D) Only II and IV are false

Explanation

I is false: XML tags are case-sensitive. II is true: JavaScript identifiers are case-sensitive. III is false: CSS can be applied to any XML document. IV is false: a well-formed XML document does not need a DTD. (The book keys option (d).)

Q69UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
A segment is any object described by GKS commands and data that start with CREATE SEGMENT and Terminates with CLOSE SEGMENT command. What function can be performed on these segments?
  1. ATranslation and Rotation
  2. BPanning and Zooming
  3. CScaling and Shearing
  4. DTranslation, Rotation, Panning and Zooming
Show answerHide answer

Correct answer: (D) Translation, Rotation, Panning and Zooming

Explanation

A GKS segment is any object described by GKS commands and data that start with CREATE SEGMENT and terminate with CLOSE SEGMENT. Segments allow objects to be manipulated by simply referring to the segment number, so segments can be translated, rotated, panned and zoomed.

Q70UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
Which of the following neural networks uses supervised learning? (A) Multilayer perceptron (B) Self organizing feature map (C) Hopfield network
  1. A(A) only
  2. B(B) only
  3. C(A) and (B) only
  4. D(A) and (C) only
Show answerHide answer

Correct answer: (A) (A) only

Explanation

Multilayer perceptron network and support vector machines are examples of supervised learning, while self organizing feature maps and Hopfield networks are examples of unsupervised learning.

Q71UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
Consider following two rules R1 and R2 in logical reasoning in Artificial Intelligence (AI): R1 : from α ⊃ β and α infer β is known as Modus Tollens (MT) R2 : From α ⊃ β and ¬α infer ¬β is known as Modus Ponens (MP)
  1. AOnly R1 is correct
  2. BOnly R2 is correct
  3. CBoth R1 and R2 are correct
  4. DNeither R1 nor R2 is correct
Show answerHide answer

Correct answer: (D) Neither R1 nor R2 is correct

Explanation

From α ⊃ β and α infer β is Modus Ponens (not Modus Tollens), and Modus Tollens infers ¬α from α ⊃ β and ¬β. R2 is not Modus Ponens either. So neither R1 nor R2 is correct.

Q72UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
In Artificial Intelligence (AI), what is present in the planning graph?
  1. ASequence of levels
  2. BLiterals
  3. CVariables
  4. DHeuristic estimates
Show answerHide answer

Correct answer: (A) Sequence of levels

Explanation

A planning graph consists of a sequence of levels that correspond to time steps in the plan; level 0 is the initial state. Each level contains a set of literals (all that could be true at that time step) and a set of actions (all whose preconditions could be satisfied at that step). It is used to obtain heuristic estimates, and a solution can be extracted using GRAPHPLAN.

Q73UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
What is the best method to go for the game playing problem?
  1. AOptimal search
  2. BRandom search
  3. CHeuristic search
  4. DStratified search
Show answerHide answer

Correct answer: (C) Heuristic search

Explanation

Game playing uses heuristic search, since brute-force computation over hundreds of thousands of positions is not practical.

Q74UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions) · Paper III
Which of the following pairs have different expressive power?
  1. ASingle-tape-turing machine and multi-dimensional turing machine
  2. BMulti-tape turing machine and multi-dimensional turing machine
  3. CDeterministic push down automata and non-deterministic pushdown automata.
  4. DDeterministic finite automata and Non-deterministic finite automata
Show answerHide answer

Correct answer: (C) Deterministic push down automata and non-deterministic pushdown automata.

Explanation

Deterministic and non-deterministic pushdown automata have different expressive power (NPDA accept all context-free languages, DPDA only deterministic CFLs). DFA and NFA are equivalent, and all the Turing machine variants are equivalent.

Practise it as a real test

Reading answers is not the same as solving under time pressure. Attempt UGC NET Computer Science PYQ, June 2017 (Paper II & III, Selected Questions) online with the real 130-minute timer and marking scheme to get your score and all-India rank, or browse the other tests in the UGC NET Computer Science Previous Year Papers & Mock Test.