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.
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.
AR₁ has no duplicates and R₂ is empty
BR₁ has no duplicates and R₂ is non - empty
CBoth R₁ and R₂ have no duplicates
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 ______
ADependency preserving and lossless join
BLossless join but not dependency preserving
CDependency preserving but not lossless join
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 _____
AFirst normal form
BSecond normal form
CThird normal form
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 ______
AIn 1NF but not in 2NF
BIn 2NF but not in 3NF
CIn 3NF but not in BCNF
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 :
A(A) only
B(A) and (B) only
C(C) only
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 :
AFrequency and phase of the carrier
BFrequency and amplitude of the carrier
CAmplitude and phase of the carrier
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 ...........
A1 kbps
B1.25 kbps
C2 kbps
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 :
ACoding error, sampling rate and Amplification
BSampling rate, Coding error and Conditioning
CSampling rate, Aperture time and Coding error
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
Aiv iii i ii
Biii iv ii i
Civ ii iii i
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?
A62 subnets and 1022 hosts
B64 subnets and 1024 hosts
C62 subnets and 254 hosts
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 :
A(A) and (B) only
B(B) and (C) only
C(A) and (C) only
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______
AUsing sampling in place of exhaustive testing of software
BSurveying customers to find out their opinions about product quality
CTracing each defect to its underlying cause, isolating the vital few causes, and moving to correct them
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 :
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
AOnly S1 and S2 are FALSE
BOnly S1 and S3 are FALSE
COnly S2 and S3 are FALSE
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?
AFlooding gun
BCollector
CGround
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?
AParallel projection rays are not perpendicular to the viewing plane
BParallel lines in space appear parallel on the final projected image
CUsed exclusively for pictorial purposes rather than formal working drawings
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 :
AThe path an electron beam takes when returning to the left side of the CRT
BThe path an electron beam takes when returning to the right side of the CRT
CThe technique to turning the electron beam off while retracing
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?
ASimple reflex agent
BModel based agent
CLearning agent
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 :
AConcatenation
BComplementation
CKleene Star
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?
ATo determine if two finite automata are equivalent
BMembership problem for context free equivalent
CFiniteness problem for finite automata
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.