UGC NET · Topic-wise previous year questions

Computer Science Previous Year Questions (page 12)

570 Computer Science questions asked in UGC NET previous year papers, each with the correct answer and explanation. Read them free on UTpaper, or attempt the full papers as timed online tests.

  • 570 questions
  • 15 topics
  • Official answer key
  • Free

Practise by topic

Q551UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
Given two relations R₁(A, B) and R₂(C, D), the result of following query Select distinct A, B From R₁, R₂ is guaranteed to be same as R₁ provided one of the following condition is satisfied.
  1. AR₁ has no duplicates and R₂ is empty
  2. BR₁ has no duplicates and R₂ is non - empty
  3. CBoth R₁ and R₂ have no duplicates
  4. DR₂ has no duplicates and R₁ is non - empty
Show answerHide answer

Correct answer: (B) R₁ has no duplicates and R₂ is non - empty

Explanation

The query takes the Cartesian product R₁ × R₂ and projects A, B with duplicates removed. If R₂ is empty the product is empty, so R₂ must be non-empty; and since DISTINCT removes duplicates, the result equals R₁ only if R₁ has no duplicates.

Q552UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
Consider a schema R(A, B, C, D) and following functional dependencies. A → B B → C C → D D → B Then decomposition of R into R1(A, B), R2(B, C) and R3 (B, D) is ______
  1. ADependency preserving and lossless join
  2. BLossless join but not dependency preserving
  3. CDependency preserving but not lossless join
  4. DNot dependency preserving and not lossless join
Show answerHide answer

Correct answer: (A) Dependency preserving and lossless join

Explanation

A → B is preserved in R1, B → C in R2, and B → D, D → B in R3; C → D follows from C → B (in R2, since C → D → B) and B → D. So all dependencies are preserved. R1 ∩ R2 = B and R2 ∩ R3 = B, and B is a key of R2 and R3, so the decomposition is also lossless.

Q553UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
If every non-key attribute is functionally dependent on the primary key, then the relation is in _____
  1. AFirst normal form
  2. BSecond normal form
  3. CThird normal form
  4. DFourth normal form
Show answerHide answer

Correct answer: (B) Second normal form

Explanation

A relation is in 2NF if it is in 1NF and every non-key attribute is fully functionally dependent on the primary key. If every non-key attribute is functionally dependent on the primary key (no partial dependency), the relation is in second normal form.

Q554UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
Consider a relation R (A, B, C, D, E, F, G, H), where each attribute is atomic, and following functional dependencies exist CH → G A → BC B → CFH E → A F → EG The relation R is ______
  1. AIn 1NF but not in 2NF
  2. BIn 2NF but not in 3NF
  3. CIn 3NF but not in BCNF
  4. DIn BCNF
Show answerHide answer

Correct answer: (A) In 1NF but not in 2NF

Explanation

A⁺ contains all attributes except D, and D cannot be derived from any attribute, so D must be part of every key (e.g. AD, BD, ED, FD are keys). Then A → BC is a partial dependency of non-key attribute C on part of key AD, so R is in 1NF but not in 2NF.

Q555UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
Which of the following routing technique/ techniques is/are used in distributed systems? (A) Fixed Routing (B) Virtual Routing (C) Dynamic Routing Code :
  1. A(A) only
  2. B(A) and (B) only
  3. C(C) only
  4. DAll (A), (B), (C)
Show answerHide answer

Correct answer: (A) (A) only

Explanation

As keyed by the book, distributed systems use fixed routing; virtual and dynamic routing are not the technique keyed here.

Q556UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
Quadrature Amplitude Modulation means changing both :
  1. AFrequency and phase of the carrier
  2. BFrequency and amplitude of the carrier
  3. CAmplitude and phase of the carrier
  4. DAmplitude and wavelength of the carrier
Show answerHide answer

Correct answer: (C) Amplitude and phase of the carrier

Explanation

Quadrature amplitude modulation means changing both amplitude and phase of the Carrier.

Q557UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
If a file consisting of 50,000 characters takes 40 seconds to send, then the data rate is ...........
  1. A1 kbps
  2. B1.25 kbps
  3. C2 kbps
  4. D10 kbps
Show answerHide answer

Correct answer: (D) 10 kbps

Explanation

50,000 characters × 8 bits = 400,000 bits sent in 40 seconds, so the data rate = 400,000/40 = 10,000 bits/sec = 10 kbps.

Q558UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
The three aspects of quantization, programmers generally concerned with are :
  1. ACoding error, sampling rate and Amplification
  2. BSampling rate, Coding error and Conditioning
  3. CSampling rate, Aperture time and Coding error
  4. DAperture time, Coding error and Strobing
Show answerHide answer

Correct answer: (C) Sampling rate, Aperture time and Coding error

Explanation

The three aspects of quantization programmers are concerned with are: (1) sampling rate - the number of samples per second; (2) aperture time - the time over which each sample is taken; (3) coding error - the difference between the conditioned signal and the quantized signal.

Q559UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
Match the following : List-I A. Data link layer B. Network layer C. Transport layer D. Presentation layer List-II i. Encryption ii. Connection control iii. Routing iv. Framing Code : A B C D
  1. Aiv iii i ii
  2. Biii iv ii i
  3. Civ ii iii i
  4. Div iii ii i
Show answerHide answer

Correct answer: (D) iv iii ii i

Explanation

Data link layer - framing (iv); Network layer - routing (iii); Transport layer - connection control (ii); Presentation layer - encryption (i).

Q560UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
The address of a class B host is to be split into subnets with a 6-bit subnet number. What is the maximum number of subnets and maximum number of hosts in each subnet?
  1. A62 subnets and 1022 hosts
  2. B64 subnets and 1024 hosts
  3. C62 subnets and 254 hosts
  4. D64 subnets and 256 hosts
Show answerHide answer

Correct answer: (A) 62 subnets and 1022 hosts

Explanation

Class B has 16 host bits. Using 6 bits for the subnet leaves 10 host bits. Number of subnets = 2⁶ − 2 = 62; hosts per subnet = 2¹⁰ − 2 = 1022.

Q561UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
Which of the following statements are true? (A) The fragmentation field in the base header section of IPv4 have moved to the fragmentation extension header in IPv6 (B) The authentication extension header is new in IPv6 (C) The record route option is not implemented in IPv6 Code :
  1. A(A) and (B) only
  2. B(B) and (C) only
  3. C(A) and (C) only
  4. D(A), (B) and (C)
Show answerHide answer

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

Explanation

In IPv6 the fragmentation fields of the IPv4 base header have moved to the fragmentation extension header, the authentication extension header is new in IPv6, and the record route option is not implemented in IPv6. So all the given statements are correct.

Q562UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
Statistical software quality assurance in software engineering involves______
  1. AUsing sampling in place of exhaustive testing of software
  2. BSurveying customers to find out their opinions about product quality
  3. CTracing each defect to its underlying cause, isolating the vital few causes, and moving to correct them
  4. DTracing each defect to its underlying causes, and using the pare to principle to correct each problem found
Show answerHide answer

Correct answer: (C) Tracing each defect to its underlying cause, isolating the vital few causes, and moving to correct them

Explanation

Statistical software quality assurance in software engineering involves tracing each defect to its underlying cause, isolating the vital few causes, and moving to correct them.

Q563UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
A signal processor software is expected to operate for 91.25 days after repair, and the mean software repair time is expected to be 5 minutes. Then, the availability of the software is :
  1. A96.9862%
  2. B97.9862%
  3. C98.9962%
  4. D99.9962%
Show answerHide answer

Correct answer: (D) 99.9962%

Explanation

Availability = MTBF / (MTBF + MTTR). MTBF = 91.25 × 24 × 60 = 131,400 minutes and MTTR = 5 minutes, so availability = 131,400 / 131,405 = 99.9962%.

Q564UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
Which of the following statements is/are FALSE with respect to software testing? S1 : White-box tests are based on specifications; better at telling whether program meets specification, better at finding errors of omission S2 : Black-box tests are based on code; better for finding crashes, out of bounds errors, file not closed errors. S3 : Alpha testing is conducted at the developer's site by a team of highly skilled testers for software that is developed as a product to be used by many customers
  1. AOnly S1 and S2 are FALSE
  2. BOnly S1 and S3 are FALSE
  3. COnly S2 and S3 are FALSE
  4. DAll of S1, S2 and S3 are FALSE
Show answerHide answer

Correct answer: (A) Only S1 and S2 are FALSE

Explanation

S1 and S2 interchange white-box and black-box testing: black-box tests are based on specifications and white-box tests are based on code, so both are false. S3 correctly describes alpha testing. So only S1 and S2 are FALSE.

Q565UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
Which of the following is not a component of memory tube display?
  1. AFlooding gun
  2. BCollector
  3. CGround
  4. DLiquid Crystal
Show answerHide answer

Correct answer: (D) Liquid Crystal

Explanation

Components of a memory tube (direct-view storage tube) display include the flooding gun, primary (writing) gun, collector, storage grid, screen, ground (base) and focusing and deflection system. Liquid crystal is not a component of a memory tube display.

Q566UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
Which of the following is not true in case Oblique Projections?
  1. AParallel projection rays are not perpendicular to the viewing plane
  2. BParallel lines in space appear parallel on the final projected image
  3. CUsed exclusively for pictorial purposes rather than formal working drawings
  4. DProjectors are always perpendicular to the plane of projection
Show answerHide answer

Correct answer: (D) Projectors are always perpendicular to the plane of projection

Explanation

In oblique projection, the parallel projection rays are not perpendicular to the viewing plane but strike it at an angle other than 90°; parallel lines in space appear parallel on the projected image; and it is used for pictorial purposes rather than formal working drawings. Projectors perpendicular to the plane of projection describe orthographic projection, so (d) is not true.

Q567UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
With respect to CRT, the horizontal retrace is defined as :
  1. AThe path an electron beam takes when returning to the left side of the CRT
  2. BThe path an electron beam takes when returning to the right side of the CRT
  3. CThe technique to turning the electron beam off while retracing
  4. DThe technique of turning the electron beam on/off while retracing
Show answerHide answer

Correct answer: (A) The path an electron beam takes when returning to the left side of the CRT

Explanation

In computer graphics, horizontal retrace is the path the electron beam takes when returning to the left side of the CRT after completing a scan line.

Q568UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
In Artificial Intelligence (Al), which agent deals with happy and unhappy state?
  1. ASimple reflex agent
  2. BModel based agent
  3. CLearning agent
  4. DUtility based agent
Show answerHide answer

Correct answer: (B) Model based agent

Explanation

Note: a utility-based agent, which uses a utility function to distinguish happy and unhappy states, is the usual answer (option d); the book keys (b). The book states that the model-based agent deals with happy and unhappy states.

Q569UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
Context free grammar is not closed under :
  1. AConcatenation
  2. BComplementation
  3. CKleene Star
  4. DUnion
Show answerHide answer

Correct answer: (B) Complementation

Explanation

Context-free languages are closed under union, concatenation and Kleene star, but not under complementation (or intersection).

Q570UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
Which of the following problem is undividable?
  1. ATo determine if two finite automata are equivalent
  2. BMembership problem for context free equivalent
  3. CFiniteness problem for finite automata
  4. DAmbiguity problem for context free grammar
Show answerHide answer

Correct answer: (D) Ambiguity problem for context free grammar

Explanation

The ambiguity problem for context-free grammars is undecidable: no Turing machine can always halt and decide whether an arbitrary CFG is ambiguous. Equivalence of finite automata, CFG membership and finiteness for finite automata are decidable.

How to use these UGC NET Computer Science questions

Every question here was asked in a real UGC NET paper; the paper and shift are shown on the card, and the number opens the question on its own page. Try each one before tapping Show answer, then attempt the full UGC NET papers as timed tests to check your speed under exam conditions.