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.
Q51UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
Match the following with reference to Unix shell scripts :
List-I
(A) $?
(B) $#
(C) $0
(D) $*
List-II
(i) File name of the current script
(ii) List of arguments
(iii) The number of arguments
(iv) Exit status of last command
Codes : A B C D
Aiii ii i iv
Bii iii i iv
Civ iii i ii
Di iii i iv
Show answerHide answer
Correct answer: (C) iv iii i ii
Explanation
$? : exit status of the last command executed.
$# : number of arguments supplied to a script.
$0 : file name of the current script.
$* : all the arguments (list of arguments).
So A-iv, B-iii, C-i, D-ii, i.e. option (c).
Q52UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
The output generated by the LINUX command: $ seq 1 2 10 will be
A1 2 10
B1 2 3 4 5 6 7 8 9 10
C1 3 5 7 9
D1 5 10
Show answerHide answer
Correct answer: (C) 1 3 5 7 9
Explanation
In Linux the seq command prints a sequence of numbers from FIRST to LAST in steps of INCREMENT: seq FIRST INCREMENT LAST. If FIRST or INCREMENT is omitted, it defaults to 1. Here FIRST = 1, INCREMENT = 2 and LAST = 10, so the output is 1 3 5 7 9 (each number on its own line). Hence the answer is (c).
Q53UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
All the classes necessary for windows programming are available in the module :
Awin.txt
Bwin.main
Cwin.std
DMFC
Show answerHide answer
Correct answer: (A) win.txt
Explanation
Win·txt is a group of classes that is use for windows programming.
Q54UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
Consider the schema R = {S, T, U, V} and the dependencies S → T, T → U, U → V and V → S. If R = (R₁ and R₂) be a decomposition such that R₁ ∩ R₂ = φ then the decomposition is
ANot in 2 NF
BIn 2 NF but not in 3 NF
CIn 3 NF but not in 2 NF
DIn both 2 NF and 3 NF
Show answerHide answer
Correct answer: (D) In both 2 NF and 3 NF
Explanation
R₁ ∩ R₂ ≠ φ. This makes the decomposition lossless join, as all the attributes are keys, R₁ ∩ R₂ will be a key of the decomposed relation Now, even the original relation R is in 3NF (Even BCNF) as all the attributes are prime attributes (in fact attribute is a candidate key) Hence, any decomposition will also be in 3NF and 2NF, So the answer is option (d).
Q55UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
Consider the following relational schemas for a library database :
Book (Title, Author, Catalog–No, Publisher, Year, Price)
Collection (Title, Author, Catalog–no)
with the following functional dependencies :
I. Title, Author → Catalog–no
II. Catalog–no → Title, Author, Publisher, Year
III. Publisher, Title, Year → Price
Assume (Author, Title) is the key for both schemas. Which one of the following is true?
ABoth Book and Collection are in BCNF.
BBoth Book and Collection are in 3 NF.
CBook is in 2NF and Collection in 3 NF.
DBoth Book and Collection are in 2 NF.
Show answerHide answer
Correct answer: (C) Book is in 2NF and Collection in 3 NF.
Explanation
2NF says that all the non-key attributes should depend the keys, partial dependency (an attribute is defined by a part of a composite key) is not allowed 3NF says that any dependency between non-key attribute should be cleared. BCNF says that all determinants in a table is key for every non trivial (no overlapping attributes) function. In the table book, (Title Author) identifies catalog-no. Which if turn identifies publisher and year further (publisher, Title, Year) identifies price. Now here the dependents are partially dependent on the key attributes on left hand side of (R). So the table book is in 2NF. In the table collection, (Title, Author) determines catalog-no., the only non-key attribute. So it is in 3NF as well as BCNF.
Q56UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
Which of the following concurrency protocol ensures both conflict serializability and freedom from deadlock :
I. 2-phase locking
II. Time phase ordering
ABoth I & II
BII only
CI only
DNeither I nor II
Show answerHide answer
Correct answer: (B) II only
Explanation
2-phase locking is a concurrency control method that guarantees serializability, but because transactions may block one another while holding locks, 2PL can lead to deadlocks. Timestamp-based (time phase) ordering is a non-lock concurrency method: it ensures conflict serializability and no deadlock can occur since no transaction ever waits. So the answer is (b) II only.
Q57UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
Which layers of the OSI reference model are host-to-host layers ?
The host-to-host layers main purpose is to shield the upper layer application from the complexity of network. So the answer is (a).
Q58UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
A terminal multiplexer has six 1200 bps terminals and 'n' 300 bps terminals connected to it. If the outgoing line is 9600 bps, what is the value of n?
A4
B8
C16
D28
Show answerHide answer
Correct answer: (B) 8
Explanation
Six 1200 bps terminals give 6 × 1200 = 7200 bps, and n 300 bps terminals give 300n bps. 7200 + 300n = 9600 ⇒ 300n = 2400 ⇒ n = 8. So the answer is (b).
Q59UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
In a digital transmission, the receiver clock is 0.1 percent faster than the sender clock. How many extra bits per second does the receiver receive if the data rate is 1 Mbps?
A10 bps
B100 bps
C1000 bps
D10000 bps
Show answerHide answer
Correct answer: (C) 1000 bps
Explanation
At 1 Mbps the sender sends 1,000,000 bits per second. The receiver clock is 0.1% faster, so the extra bits received = 1,000,000 × 0.1/100 = 1000 bits, i.e. the receiver receives 1,001,000 bits per second. Extra bits per second = 1000 bps. Hence option (c) is correct.
Q60UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
Four bits are used for packed sequence numbering in a sliding window protocol used in a computer network. What is the maximum window size?
A4
B8
C15
D16
Show answerHide answer
Correct answer: (C) 15
Explanation
With n = 4 bits for sequence numbers, the maximum sender window size (Go-Back-N) is 2ⁿ − 1 = 2⁴ − 1 = 15. So the answer is 15.
Q61UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
Which of the following is used in the options field of IPv4?
AStrict source routing
BLoose source routing
CTime stamp
DAll of the above
Show answerHide answer
Correct answer: (D) All of the above
Explanation
IPv4 is the fourth version in the development of the IP. and IPv4 use loose source for an IP option can be used for address translation and IPv4 also use strict source routing for the contrast with loose source routing, in every step of the route is decided in advance where the packet is send and IPv4 also time stamp. So the correct answer is (d).
Q62UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
Which one of the following is not a Client-Server application?
AInternet chat
BWeb browser
CE-mail
DPing
Show answerHide answer
Correct answer: (D) Ping
Explanation
Ping is not a client server application. Ping is a computer network administration unility used to test the reach ability of a host on an Internet protocol ping there is no server that provides a service.
Q63UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
Which one of the following is not a key process area in CMM level 5?
ADefect prevention
BProcess change management
CSoftware product engineering
DTechnology change management
Show answerHide answer
Correct answer: (C) Software product engineering
Explanation
CMM (Capability maturity model)– It is framework that describes an evolutionary improvement path for software organizations from an immature process to a mature, discipline one. The software process is at CMM level 5, if there is continuous process improvement, if there is quantitative feedback from the process and from piloting innovative ideas and technologies. Software processes are the CMM level 5, if there are process change management, detect prevention and technology change management, So software product engineering in not a key process area in CMM level 5
Q64UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
Match the following with respect to the jump statements :
List-I
(A) Return
(B) Goto
(C) Break
(D) Continue
List-II
(i) The conditional test and increment portions
(ii) A value associated with it
(iii) Requires a label for operation
(iv) An exit from only the innermost loop
Codes : A B C D
Aii iii iv i
Biii iv i ii
Civ iii ii i
Div iii i ii
Show answerHide answer
Correct answer: (A) ii iii iv i
Explanation
Return : returns a value associated with it after completion of the function body.
goto : control jumps from one statement to another by following the label.
break : exits only from the innermost loop in which it appears.
continue : skips the rest of the loop body and passes control to the conditional test and increment portions of the loop.
So A-ii, B-iii, C-iv, D-i, i.e. option (a).
Q65UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
Which one of the following is not a definition of error?
AIt refers to the discrepancy between a computed, observed or measured value and the true., specified or theoretically correct value.
BIt refers to the actual output of a software and the correct output.
CIt refers to a condition that causes a system to fail.
DIt refers to human action that results in software containing a defect or fault.
Show answerHide answer
Correct answer: (C) It refers to a condition that causes a system to fail.
Explanation
Error mathematical is the difference between the observed value and approximate value and true value of a quantity. Error is used to refer to human action that results in software containing a defector fault whereas failure refers to a condition that causes a system to fail.
Q66UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
Software testing is
AThe process of establishing that errors are not present.
BThe process of establishing confidence that a program does what it is supposed to do.
CThe process of executing a program to show that it is working as per specifications.
DThe process of executing a program with the intent of finding errors
Show answerHide answer
Correct answer: (D) The process of executing a program with the intent of finding errors
Explanation
Software testing is a process of executing a program or application with the intent of finding errors (the software bugs) and the main objective of software testing is to find any bug present in the software program. Besides, through the process of testing. One can determine the strengths and weaknesses of the program in other criteria such as path testing, dependency testing etc.
Q67UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
Linking to another place in the same or another webpage require two A (Anchor) tags, the first with the ________ attribute and the second with the _______ attribute.
ANAME & LINK
BLINK & HREF
CHREF & NAME
DTARGET & VALUE
Show answerHide answer
Correct answer: (C) HREF & NAME
Explanation
Name attribute specifies the name of an anchor and it is used to create a bookmark inside a document. Syntax : <a name = "value"> ⇒ href attribute specifies the URL of the page the link goes to, and if the href attribute is not present, the <a> tag is not a hyperlink. Syntax : <a href = "URL">
Q68UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
Given an image of size 1024 × 1024 pixels in which intensity of each pixel is an 8-bit quality. It requires _______ of storage space if the image is not compressed.
AOne Terabyte
BOne Megabyte
C8 Megabytes
D8 Terabytes
Show answerHide answer
Correct answer: (B) One Megabyte
Explanation
Each pixel needs 1 byte (8 bits) and there are 1024 × 1024 pixels. Total storage space = 1024 × 1024 × 1 = 2¹⁰ × 2¹⁰ = 2²⁰ bytes = 1 MB. So the answer is (b).
Q69UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
Which of the following color models are defined with three primary colors?
ARGB and HSV color models
BCMY and HSV color models
CHSV and HLS color models
DRGB and CMY color models
Show answerHide answer
Correct answer: (D) RGB and CMY color models
Explanation
RGB (Red, Green, Blue) and CMY (Cyan, Magenta, Yellow) are each defined by three primary colors. HSV (Hue, Saturation, Value), also known as HSB (Hue, Saturation, Brightness), and HLS (Hue, Lightness, Saturation) are not defined by primary colors. Hence the answer is (d).
Q70UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
Line caps are used for adjusting the shape of the line ends to give them a better appearance. Various kinds of line caps used are
AButt cap and sharp cap
BButt cap and round cap
CButt cap, sharp cap and round cap
DButt cap, round cap and projecting square cap
Show answerHide answer
Correct answer: (D) Butt cap, round cap and projecting square cap
Explanation
Butt Cap : Chops off the stroke at the ends. Round Cap : Extends the stroke past the ends with semicircular ends. Projecting Cap : Extends the stroke past the ends with squared ends.
Q71UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
Given below are certain output primitives and their associated attributes. Match each primitive with its corresponding attributes :
List-I
(a) Line
(b) Fill Area
(c) Text
(d) Marker
List-II
(i) Type, Size, Color
(ii) Color, Size, Font
(iii) Style, Color, Pattern
(iv) Type, Width, Color
Codes : a b c d
Ai ii iii iv
Bii i iii iv
Civ iii ii i
Diii i iv ii
Show answerHide answer
Correct answer: (C) iv iii ii i
Explanation
Line : attributes like type, width and color.
Fill Area : a region can be filled with some color in different styles and patterns.
Text : can be written with different font, size, color etc.
Marker : the attributes are marker type, marker size and marker color.
So a-iv, b-iii, c-ii, d-i, i.e. option (c).
Q72UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
The control string in C++ consists of three important classifications of characters
AEscape sequence characters. Format specifies and White-space characters
BSpecial characters, White-space characters and Non-white space characters
CFormat specifies, White-space characters and Non-white space characters
DSpecial characters, White-space characters and Format specifies
Show answerHide answer
Correct answer: (C) Format specifies, White-space characters and Non-white space characters
Explanation
In programming language we use unique keywords to store data, just like that, the control string is use to access the different type of keyword, and control strings are the characters that use with the % (percent) and it is a classification of format specifier, white space and non-white space characters.
Q73UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
STRIPS addresses the problem of efficiently representing and implementation of a planner. It is not related to which one of the following?
ASHAKEY
BSRI
CNLP
DNone of these
Show answerHide answer
Correct answer: (C) NLP
Explanation
STRIPs was devised SRI in the early 1970s to control a robot called SHAKEY strips is not related with NLP (Natural Language Processing).
Q74UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
Slots and facets are used in
ASemantic Networks
BFrames
CRules
DAll of these
Show answerHide answer
Correct answer: (B) Frames
Explanation
Frames : Frames are structured objects that represent knowledge and contain labeled slots with their values. Slots : Slots are almost similar to attributes as in ERD or object-oriented systems in the sense that they may contain declarative as well as procedural information. Facets : Facets are almost similar to description to the slot values that may function as criteria or validity of the values inserted into a slop.
Q75UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
Match the following :
List-I
(A) Chomsky Normal form
(B) Greibach Normal form
(C) S-grammar
(D) LL grammar
List-II
(i) S → b S S | a S | c
(ii) S → a S b | ab
(iii) S → AS | a ; A → SA | b
(iv) S → a B S B ; B → b
Codes : A B C D
Aiv iii i ii
Biv iii ii i
Ciii iv i ii
Diii iv ii i
Show answerHide answer
Correct answer: (C) iii iv i ii
Explanation
Chomsky Normal Form : production rules are of the form A → BC or A → a (and S → ε) — grammar (iii).
Greibach Normal Form : production rules are of the form A → aA₁A₂...Aₙ or A → a — grammar (iv).
S-grammar : every production's right-hand side begins with a terminal, and this terminal is different for any two productions with the same left-hand side — grammar (i).
LL grammar : two production rules for the same nonterminal can begin with the same terminal only if their select sets differ — grammar (ii).
So A-iii, B-iv, C-i, D-ii, i.e. option (c).
Q76UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
Which one of the following describes the syntax of prolog program?
I. Rules and facts are terminated by full stop(.)
II. Rules and facts are terminated by semicolon (;)
III. Variables names must start with upper case alphabets
IV. Variables names must start with lower case alphabets.
Codes :
AI, II
BIII, IV
CI, III
DII, IV
Show answerHide answer
Correct answer: (C) I, III
Explanation
Prolog variables begin with an upper case letter, while predicate names, function names and the names for objects must begin with a lower case letter; rules and facts are terminated by a full stop (.). So the right answer is option (c).
Q77UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)
The Excess-3 decimal code is self-complementing code because
(1) The binary sum of a code and its 9's complement is equal to 9
(2) It is a weighted code
(3) Complement can be generated by inverting each bit pattern
(4) The binary sum of a code and its 10's complement is equal to 9
A(1)
B(2) and (3)
C(1) and (3)
DAll are correct.
Show answerHide answer
Correct answer: (C) (1) and (3)
Explanation
The Excess-3 decimal code is a self-complementing code because the binary sum of a code and its 9's complement is equal to 9 and the complement can be generated by inverting each bit pattern.
Q78UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)
The BCD adder to add two decimal digits needs minimum of
A6 full adders and 2 half adders
B5 full adders and 3 half adders
C4 full adders and 3 half adders
D5 full adders and 2 half adders
Show answerHide answer
Correct answer: (C) 4 full adders and 3 half adders
Explanation
To add two BCD digits we need two 4-bit adders: the first adds the two BCD numbers and the second corrects the result to a valid BCD number. The first 4-bit adder needs 3 full adders and 1 half adder (giving A₃ A₂ A₁ A₀). In the correction step 0110 is added to A₃ A₂ A₁ A₀. A₀ is always added to 0, so no adder is needed; A₁ is added to 1 with no incoming carry, so a half adder is used; A₂ is added to 1 plus a carry, so a full adder is used; A₃ is added only to the carry, so a half adder is used. Total = 3 + 1 = 4 full adders and 1 + 2 = 3 half adders.
Q79UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)
The size of the ROM required to build an 8-bit adder/subtracter with mode control, carry input, carry output and two's complement overflow output is given as :
A2¹⁶ × 8
B2¹⁸ × 10
C2¹⁶ × 10
D2¹⁸ × 8
Show answerHide answer
Correct answer: (B) 2¹⁸ × 10
Explanation
Total inputs to the ROM = 8 + 8 (two 8-bit numbers) + 1 (mode) + 1 (carry in) = 18, so the ROM has 2¹⁸ words. Outputs = 8 result bits + 1 carry out + 1 overflow = 10 bits. Hence the ROM size is 2¹⁸ × 10.
Q80UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)
How many PUSH and POP operations will be needed to evaluate the following expression by reverse polish notation in a stack machine (A × B) + (C × D/E)?
A4 PUSH and 3 POP instructions
B5 PUSH and 4 POP instructions
C6 PUSH and 2 POP instructions
D5 PUSH and 3 POP instructions
Show answerHide answer
Correct answer: (B) 5 PUSH and 4 POP instructions
Explanation
The postfix form of the expression is AB*CD*E/+. Counting a PUSH for each of the 5 operands and a POP for each of the 4 operators (ignoring the pushes of intermediate results), the evaluation needs 5 PUSH and 4 POP instructions.
Q81UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)
Consider an array A[20, 10], assume 4 words per memory cell and the base address of array A is 100. What is the address of A [11, 5]? Assume row major storage.
A560
B565
C570
D575
Show answerHide answer
Correct answer: (A) 560
Explanation
Each cell needs 4 words. In row-major order, rows 0 to 10 contain 11 × 10 = 110 elements, and A[11][0] to A[11][4] add 5 more, so 115 elements precede A[11][5]. Address = 100 + 4 × 115 = 560.
Q82UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)
Convert the following infix expression into its equivalent post fix expression
(A + B^D)/(E – F) + G
AABD^ + EF –/G+
BABD+ ^EF –/G+
CABD+ ^EF/ –G+
DABD^ + EF /–G+
Show answerHide answer
Correct answer: (A) ABD^ + EF –/G+
Explanation
^ has the highest precedence, so B^D becomes BD^, and A + B^D becomes ABD^+. E – F becomes EF–. Dividing gives ABD^+EF–/, and adding G gives ABD^+EF–/G+.
Q83UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)
A full binary tree with n leaves contains
An nodes
Blog₂ nodes
C2n – 1 nodes
D2ⁿ nodes
Show answerHide answer
Correct answer: (C) 2n – 1 nodes
Explanation
A full binary tree with n leaves contains n – 1 internal nodes, so total nodes = internal nodes + leaves = (n – 1) + n = 2n – 1.
Q84UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)
You have to sort a list L. consisting of a sorted list followed by a few 'random' elements. Which of the following sorting method would be most suitable for such a task?
ABubble sort
BSelection sort
CQuick sort
DInsertion sort
Show answerHide answer
Correct answer: (D) Insertion sort
Explanation
For a sorted list followed by a few random elements: bubble sort and selection sort take O(n²) time, quick sort degrades to its O(n²) worst case on nearly sorted input, while insertion sort takes close to O(n) time. Hence insertion sort is most suitable.
Q85UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)
How many distinct stages are there in DES algorithm, which is parameterized by a 56-bit key?
A16
B17
C18
D19
Show answerHide answer
Correct answer: (D) 19
Explanation
The DES algorithm works with a 64-bit block size, employs 16 processing rounds, and is driven by a 56-bit key (with 8 additional parity bits), making up a total of 19 distinct stages.
Q86UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)
A computer program select an integer in the set {k : 1≤ k ≤10,00,000} at random and prints out the result. This process is repeated 1 million times. What is the probability that the value k = 1 appears in the printout at least once?
A0.5
B0.704
C0.632121
D0.68
Show answerHide answer
Correct answer: (C) 0.632121
Explanation
Probability of k = 1 in one trial = 1/1000000 = 10⁻⁶, so the probability of k ≠ 1 is 1 – 10⁻⁶. Probability that 1 is never printed in 10⁶ printouts = (1 – 10⁻⁶)^(10⁶) ≈ 1/e. Probability that 1 is printed at least once = 1 – (1 – 10⁻⁶)^(10⁶) ≈ 1 – 1/e = 0.632121.
Q87UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)
If we define the functions f, g and h that map R into R by :
f(x) = x⁴, g(x) = √(x² + 1), h(x) = x² + 72, then the value of the composite functions ho(gof) and (hog)of are given as
Ax⁸ – 71 and x⁸ – 71
Bx⁸ – 73 and x⁸ – 73
Cx⁸ + 71 and x⁸ + 71
Dx⁸ + 73 and x⁸ + 73
Show answerHide answer
Correct answer: (D) x⁸ + 73 and x⁸ + 73
Explanation
gof(x) = √(x⁸ + 1), so ho(gof)(x) = (x⁸ + 1) + 72 = x⁸ + 73. hog(x) = (x² + 1) + 72 = x² + 73, so (hog)of(x) = x⁸ + 73. Hence both are x⁸ + 73.
Q88UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)
Which of the following is not a member of class?
AStatic function
BFriend function
CConst function
DVirtual function
Show answerHide answer
Correct answer: (B) Friend function
Explanation
A friend function of a class is a non-member function that is given the same access as member methods to the class's private and protected data. It is declared inside the class that grants access, but it is not a member of the class.
Q89UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)
What will be the output of the following 'C' code?
main ( )
{ int x = 128 ;
printf("\n%d", 1 + x++);
}
A128
B129
C130
D131
Show answerHide answer
Correct answer: (B) 129
Explanation
x++ is a post-increment, so the old value 128 is used in the expression and printf prints 1 + 128 = 129; x becomes 129 only afterwards.
Q90UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)
For the implementation of a paging scheme, suppose the average process size be x bytes, the page size be y bytes, and each entry requires z bytes. The optimum page size that minimizes the total overhead due to the page table and the internal fragmentation loss is given by :
Ax/2
Bxz/2
C√(2xz)
D√(xz)/2
Show answerHide answer
Correct answer: (C) √(2xz)
Explanation
Average internal fragmentation per process is y/2. A process has x/y pages and each page-table entry needs z bytes, so the page table takes xz/y bytes. Total overhead = xz/y + y/2. Setting d/dy (xz/y + y/2) = –xz/y² + 1/2 = 0 gives y = √(2xz).
Q91UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)
In a demand paging memory system, page table is held in registers. The time taken to service a page fault is 8 m. sec. if an empty frame is available or if the replaced page is not modified, and it takes 20 m. sec. if the replaced page is modified. What is the average access time to service a page fault assuming that the page to be replaced is modified 70% of the time?
A11.6 m. sec.
B16.4 m. sec.
C28 m. sec.
D14 m. sec.
Show answerHide answer
Correct answer: (B) 16.4 m. sec.
Explanation
Average time to service a page fault = 0.7 × 20 + 0.3 × 8 = 14 + 2.4 = 16.4 m. sec.
Q92UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)
Consider the following justifications for commonly using the two-level CPU scheduling:
I. It is used when memory is too small to hold all the ready processes
II. Because its performance is same as that of the FIFO.
III. Because it facilitates putting some set of processes into memory and a choice is made from that.
IV. Because it does not allow to adjust the set of in-core processes
Which of the following is true?
AI, III and IV
BI and II
CIII and IV
DI and III
Show answerHide answer
Correct answer: (D) I and III
Explanation
Two-level scheduling is used to schedule efficiently when some processes are swapped out. A lower-level scheduler (e.g. round robin) selects only among the processes in memory, while a higher-level scheduler swaps processes in and out of memory. Hence I and III are correct.
Q93UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)
A specific editor has 200 K of program text, 15 K of initial stack, 50 K of initialized data, and 70 K of bootstrap code. If five editors are started simultaneously, how much physical memory is needed if shared text is used?
A1135 K
B335 K
C1065 K
D320 K
Show answerHide answer
Correct answer: (B) 335 K
Explanation
The program text is shared, so it is not multiplied by 5. As given in the book, total memory = 200 + 15 + 50 + 70 = 335 K.
Q94UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)
Which of the following conditions does not hold good for a solution to a critical section problem?
ANo assumptions may be made about speeds or the number of CPUs.
BNo two processes may be simultaneously inside their critical sections.
CProcesses running outside its critical section may block other processes
DProcesses do not wait forever to enter its critical section.
Show answerHide answer
Correct answer: (C) Processes running outside its critical section may block other processes
Explanation
A correct solution must not let a process running outside its critical section block other processes. So condition (c) does not hold good for a solution to the critical section problem.
Q95UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)
Which of the following is true?
I. Implementation of self-join is possible is SQL with table alias
II. Outer-join operation is basic operation in relational algebra
III. Natural join and outer join operations are equivalent.
AI and II are correct
BII and III are correct
COnly III is correct
DOnly I is correct
Show answerHide answer
Correct answer: (D) Only I is correct
Explanation
Only I is correct: a self join is implemented on a single table using alias names. Outer join is not a basic relational algebra operation, and natural join and outer join are not equivalent.
Q96UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)
What kind of mechanism is to be taken into account for converting a weak entity set into strong entity set in entity relationship diagram?
AGeneralization
BAggregation
CSpecialization
DAdding suitable attributes
Show answerHide answer
Correct answer: (D) Adding suitable attributes
Explanation
A weak entity does not have sufficient attributes to form a primary key; it is drawn as a double rectangle in an ER diagram. A weak entity set can be converted into a strong entity set simply by adding suitable attributes.
Q97UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)
The best normal form of relation scheme R(A, B, C, D) along with the set of functional dependencies F = { AB → C, AB → D, C → A, D →B} is :
ABoyce-Codd Normal form
BThird Normal form
CSecond Normal form
DFirst Normal form
Show answerHide answer
Correct answer: (B) Third Normal form
Explanation
The candidate keys are AB, CD, BC and AD, so A, B, C and D are all prime attributes and the relation is in 3NF. It is not in BCNF because in C → A and D → B the left side is not a superkey. Hence the best normal form is 3NF.
Q98UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)
Identify the minimal key for relational scheme R(A, B, C, D, E) with functional dependencies F = {A → B, B → C, AC → D}
AA
BAE
CBE
DCE
Show answerHide answer
Correct answer: (B) AE
Explanation
{A}⁺ = {A, B, C, D}, which does not include E, so A alone is not a key. {AE}⁺ = {A, B, C, D, E}, and nothing can be removed from AE, so AE is the minimal key.
Q99UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)
Match the following :
List–I
A. Call control protocol
B. A-bis
C. BSMAP
D. CDMA
List–II
i. Interface between Base Transceiver Station (BTS) and Base Station Controller (BSC)
ii. Spread spectrum
iii. Connection management
iv. Works between Mobile Switching Centre (MSC) and Base Station Subsystem (BSS)
Codes :
A B C D
Aiii iv i ii
Biii i iv ii
Ci ii iii iv
Div iii ii i
Show answerHide answer
Correct answer: (B) iii i iv ii
Explanation
Correct match: A. Call control protocol – iii. Connection management; B. A-bis – i. Interface between BTS and BSC; C. BSMAP – iv. Works between MSC and BSS; D. CDMA – ii. Spread spectrum.
Q100UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)
An analog signal has a bit rate of 6000 bps and a baud rate of 2000 baud. How many data elements are carried by each signal element?
A0.336 bits/baud
B3 bits/baud
C120,00,000 bits/baud
DNone of the above
Show answerHide answer
Correct answer: (B) 3 bits/baud
Explanation
The signal sends 2000 signal elements (baud) per second and 6000 bits per second, so each signal element carries 6000/2000 = 3 bits/baud.
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.