UGC NET Computer Science PYQ, June 2015 (Paper II & III, Selected Questions)
All 77 questions of UGC NET Computer Science PYQ, June 2015 (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.
Q1UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
Consider the following statements :
S₁: Boolean expressions and logic networks correspond to labeled acyclic digraphs.
S₂: Optimal Boolean expressions may not correspond to simplest networks.
S₃: Choosing essential blocks first in a Karnaugh map and then greedily choosing the largest remaining blocks to cover may not give an optimal expression.
Which of these statement(s) is/are correct?
AS₁ only
BS₂ only
CS₁ and S₂
DS₁, S₂ and S₃
Show answerHide answer
Correct answer: (D) S₁, S₂ and S₃
Explanation
S₁: Boolean expressions and logic networks correspond to labeled acyclic digraphs. S₂: Minimal expressions do not always give the simplest network. S₃: Greedy K-map grouping may not give an optimal expression. So S₁, S₂ and S₃ are all correct.
Q2UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
Consider a full-adder with the following input values :
(a) x = 1, y = 0 and C₁ (carry input) = 0
(b) x = 0, y = 1 and C₁ = 1
Compute the values of S (sum) and C₀ (carry output) for the above input values.
AS = 1, C₀ = 0 and S = 0, C₀ = 1
BS = 0, C₀ = 0 and S = 1, C₀ = 1
CS = 1, C₀ = 1 and S = 0, C₀ = 1
DS = 0, C₀ = 1 and S = 1, C₀ = 0
Show answerHide answer
Correct answer: (A) S = 1, C₀ = 0 and S = 0, C₀ = 1
Explanation
For a full adder, S = A ⊕ B ⊕ Cᵢₙ and Cₒᵤₜ = A·B + Cᵢₙ·(A ⊕ B).
(a) A = 1, B = 0, Cᵢₙ = 0: S = 1 ⊕ 0 ⊕ 0 = 1, Cₒᵤₜ = 1·0 + 0·(1 ⊕ 0) = 0.
(b) A = 0, B = 1, Cᵢₙ = 1: S = 0 ⊕ 1 ⊕ 1 = 0, Cₒᵤₜ = 0·1 + 1·(0 ⊕ 1) = 1.
So S = 1, C₀ = 0 and S = 0, C₀ = 1.
Q3UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
"If my computations are correct and I pay the electric bill, then I will run out of money. If I don't pay the electric bill, the power will be turned off. Therefore, if I don't run out of money and the power is still on, then my computations are incorrect."
Convert this argument into logical notations using the variables c, b, r, p for propositions of computations, electric bills, out of money and the power respectively. (Where ¬ means NOT)
Aif (c ∧ b) → r and ¬b → ¬p, then (¬r ∧ p) → ¬c
Bif (c ∧ b) → r and ¬b → ¬p, then (r ∧ p) → c
Cif (c ∧ b) → r and ¬p → ¬b, then (¬r ∧ p) → ¬c
Dif (c ∨ b) → r and ¬b → ¬p, then (¬r ∧ p) → ¬c
Show answerHide answer
Correct answer: (A) if (c ∧ b) → r and ¬b → ¬p, then (¬r ∧ p) → ¬c
Explanation
S₁: (c ∧ b) → r
S₂: ¬b → ¬p
Conclusion: (¬r ∧ p) → ¬c
So: if (c ∧ b) → r and ¬b → ¬p, then (¬r ∧ p) → ¬c.
Q4UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
Match the following :
List–I
(a) (p→q) ⇔ (¬q→¬p)
(b) [(p∧q)→r] ⇔ [p→(q→r)]
(c) (p→q) ⇔ [(p∧¬q)→0]
(d) (p↔q) ⇔ [(p→q) ∧ (q→p)]
List–II
(i) Contrapositive
(ii) Exportation law
(iii) Reductio ad absurdum
(iv) Equivalence
Codes : a b c d
A(i) (ii) (iii) (iv)
B(ii) (iii) (i) (iv)
C(iii) (ii) (iv) (i)
D(iv) (ii) (iii) (i)
Show answerHide answer
Correct answer: (A) (i) (ii) (iii) (iv)
Explanation
(a) Contrapositive: negate both hypothesis and conclusion and interchange them: (p → q) ⇔ (¬q → ¬p).
(b) Exportation is a valid rule of replacement: ((p ∧ q) → r) ⇔ (p → (q → r)).
(c) Reductio ad absurdum: (p → q) ⇔ [(p ∧ ¬q) → 0].
(d) Equivalence (biconditional): (p ↔ q) ⇔ (p → q) ∧ (q → p).
So a-(i), b-(ii), c-(iii), d-(iv).
Q5UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
Consider a proposition given as : "x ≥ 6, if x² ≥ 25" and its proof as :
If x ≥ 6, then x² = x . x ≥ 6 . 6 = 36 ≥ 25
Which of the following is correct w.r.to the given proposition and its proof?
(1) The proof shows the converse of what is to be proved
(2) The proof starts by assuming what is to be shown
(3) The proof is correct and there is nothing wrong
A(1) only
B(3) only
C(1) and (2)
D(2) only
Show answerHide answer
Correct answer: (C) (1) and (2)
Explanation
The proposition is "if x² ≥ 25 then x ≥ 6", but the proof assumes x ≥ 6 and derives x² ≥ 25. So the proof starts by assuming what is to be shown and actually proves the converse; the proof is not correct. Statements (1) and (2) are correct, statement (3) is not.
Q6UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
Which of the following is not valid with reference to message passing interface (MPI)?
AMPI can run on any hardware platform
BThe programming model is a distributed memory model
CAll parallelism is implicit
DMPI - Comm. - size returns the total number of MPI processes in specified communication
Show answerHide answer
Correct answer: (C) All parallelism is implicit
Explanation
Message passing interface (MPI) is a standardized and portable message passing system. • It can run on any hardware platform. It is portable, efficient, flexible. • It has become a de facto standard for communication among memory system. • MPI – Comm. – Size returns the total number of MPI processes in specified communication. So answer is (c)
Q7UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
The translator which performs macro calls expansion is called :
AMacro processor
BMicro pre-processor
CMacro pre-processor
DDynamic Linker
Show answerHide answer
Correct answer: (C) Macro pre-processor
Explanation
Translator which performs macro calls expansion is called macro pre-processors
Q8UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
The in order and preorder Traversal of binary tree are dbeafcg and abdecfg respectively. The post-order Traversal is ..........
Adbefacg
Bdebfagc
Cdbefcga
Ddebfgca
Show answerHide answer
Correct answer: (D) debfgca
Explanation
Take the first node in preorder traversal a will be the root. Now we construct the binary tree Therefore, postorder is - debfgca
Q9UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
Level order Traversal of a rooted Tree can be done by starting from root and performing :
ABreadth first search
BDepth first search
CRoot search
DDeep search
Show answerHide answer
Correct answer: (A) Breadth first search
Explanation
Level order traversal is similar to breadth first search, whereas preorder traversal is similar to depth first search. So the answer is (a).
Q10UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
To determine the efficiency of an algorithm the time factor is measured by:
ACounting micro seconds
BCounting number of key operations
CCounting number of statements
DCounting kilobytes of algorithm
Show answerHide answer
Correct answer: (B) Counting number of key operations
Explanation
The complexity is commonly estimated by counting the number of elementary operations performed by the algorithm, where an elementary operation takes a fixed amount of time to perform. Thus the amount of time taken and the number of elementary operations performed by the algorithm differ by at most a constant factor.
Q11UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
The average case occurs in the Linear search Algorithm when
AThe item to be searched is in some where middle of the array
BThe item to be searched is not in the array
CThe item to be searched is in the last of the array
DThe item to be searcher is either in the last or not in the array
Show answerHide answer
Correct answer: (A) The item to be searched is in some where middle of the array
Explanation
Linear search runs in at worst linear time and make at most n comparisons, where n is the length of the list. If each element is equally likely to be searched then the linear search has an average case of (n/2) comparisons, but the average case can be affected if the search probability for each element vary.
Q12UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
Which of the following algorithms sort n integers, having the range 0 to (n² – 1), in ascending order in O(n) time?
ASelection sort
BBubble sort
CRadix sort
DInsertion sort
Show answerHide answer
Correct answer: (C) Radix sort
Explanation
Radix sort because it sorts in integers in range 0 … (n² – 1) in O(n) time using base-n representation.
Q13UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
Consider the given graph (edge : weight) :
1–6 : 10, 1–2 : 28, 2–7 : 14, 2–3 : 16, 6–5 : 25, 5–7 : 24, 7–4 : 18, 5–4 : 22, 4–3 : 12
Its Minimum cost spanning tree is ..........
Using Kruskal's algorithm: take 10 (1–6), 12 (3–4), 14 (2–7), 16 (2–3); skip 18 (4–7, cycle); take 22 (4–5); skip 24 (5–7, cycle); take 25 (5–6). Total = 10 + 12 + 14 + 16 + 22 + 25 = 99, which is option (b).
Q14UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
Given that x = 7.5, j = – 1.0, n = 1.0, m = 2.0 the value of --x + j == x > n >= m is :
A0
B1
C2
D3
Show answerHide answer
Correct answer: (A) 0
Explanation
Relational operators > and >= have higher precedence than ==, so the expression is (--x + j) == ((x > n) >= m). --x makes x = 6.5, so LHS = 6.5 + (–1.0) = 5.5. RHS: (6.5 > 1.0) = 1, then (1 >= 2.0) = 0. 5.5 == 0 is false, so the value is 0.
Q15UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
What is the output of the following program? (Assume that the appropriate directive are included and there is no syntax error)
main ()
{ char S[ ] = "ABCDEFGH",
printf ("%C", * (&S[3]));
printf ("%s", S + 4);
printf ("%u", S);
/* Base address of S is 1000*/ }
AABCDEFGH1000
BCDEFGH1000
CDDEFGHH1000
DDEFGH1000
Show answerHide answer
Correct answer: (D) DEFGH1000
Explanation
S occupies addresses 1000 to 1008: A B C D E F G H \0. S[3] is 'D', and *(&S[3]) is 'D' itself, so %c prints D. S + 4 skips 4 characters, so %s prints "EFGH". %u prints the base address of S, 1000. Final output: DEFGH1000.
Q16UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
A LRU page replacement is used with four page frames and eight pages. How many page faults will occur with the reference string 0172327103 if the four frames are initially empty?
Q17UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
Let Pᵢ and Pⱼ be two processes, R be the set of variables read from memory, and W be the set of variables written to memory. For the concurrent execution of two processes Pᵢ and Pⱼ which of the following conditions is not true?
AR(Pᵢ) ∩ W(Pⱼ) = Φ
BW(Pᵢ) ∩ R(Pⱼ) = Φ
CR(Pᵢ) ∩R(Pⱼ) = Φ
DW(Pᵢ) ∩W(Pⱼ) = Φ
Show answerHide answer
Correct answer: (C) R(Pᵢ) ∩R(Pⱼ) = Φ
Explanation
Reading of two process won't create any problem, So answer is (c)
Q18UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
In the case of parallelization, Amdahl's law states that if P is the proportion of a program that can be made parallel and (1–P) is the proportion that cannot be parallelized, then the maximum speed-up that can be achieved by using N processors is :
A1 / [(1 – P) + N.P]
B1 / [(N – 1)P + P]
C1 / [(1 – P) + P/N]
D1 / [P + (1 – P)/N]
Show answerHide answer
Correct answer: (C) 1 / [(1 – P) + P/N]
Explanation
By Amdahl's law, the serial part (1 – P) cannot be sped up while the parallel part P is divided among N processors, so the maximum speed-up is 1 / [(1 – P) + P/N].
Q19UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
A disk drive has 100 cylinders, numbered 0 to 99. Disk requests come to the disk driver for cylinders 12, 26, 24, 4, 42, 8 and 50 in that order. The driver is currently serving a request at cylinder 24. A seek takes 6 msec per cylinder moved. How much seek time is needed for shortest seek time first (SSTF) algorithm?
Q20UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
The Unix Kernel maintains two key data structures related to processes, the process table and the user structure. Which of the following information is not the part of user structure?
AFile descriptor table
BSystem call state
CScheduling parameters
DKernel stack
Show answerHide answer
Correct answer: (C) Scheduling parameters
Explanation
The Unix Kernel maintains two key data structures related to processes, the process table and the user structure. In user structure there is no place for scheduling parameter process table store the information of all running process. The process table contains process ID's, memory usage of the process, what are file descriptor used in the process.
Q21UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
Database applications were built directly on top of file system to overcome the following drawbacks of using file-systems :
(1) Data redundancy and inconsistency
(2) Difficulty in accessing Data
(3) Data isolation
(4) Integrity problems
A(1)
B(1) and (4)
C(1), (2) and (3)
D(1), (2), (3) and (4)
Show answerHide answer
Correct answer: (D) (1), (2), (3) and (4)
Explanation
Traditional file system has all mentioned drawbacks. Database applications built by using tables are used to overcome them. eg : Normalization and integrity constraints reduces redundancy & inconsistency. Select * from table provide easy access to data references, joins etc removes data is action primary & foreign key along with check predicates solves integrity problem
Q22UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
For a weak entity set to be meaningful, it must be associated with another entity set in combination with some of their attribute values, is called as :
ANeighbor Set
BStrong Entity Set
COwner Entity Set
DWeak Set
Show answerHide answer
Correct answer: (C) Owner Entity Set
Explanation
Every weak entity must be associated with an identifying entity i.e. the weak entity set is said to be existence dependent on the identifying set. The identifying entity set is said to own the weak entity set that it identifies. It is also called owner entity set.
Q23UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
Drop Table cannot be used to drop a Table referenced by ______constraint.
(1) Primary key
(2) Sub key
(3) Super key
(4) Foreign key
A(1)
B(1), (2) and (3)
C(4)
D(1) and (4)
Show answerHide answer
Correct answer: (C) (4)
Explanation
If you drop child table first, the foreign key will be dropped as well. If you attempt to drop percent table first you will get an "could not drop object "a" because it is referenced by a foreign key constraint error, Drop table can not be used to drop a table reference by a foreign key constraint. The referencing foreign key constraint or the referencing table must be dropped.
Q24UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
Which of the following statements is FALSE about weak entity set?
AWeak entities can be deleted automatically when their strong entity is deleted
BWeak entity set avoids the data duplication and consequent possible inconsistencies caused by duplicating the key of the strong entity
CA weak entity set has no primary keys unless attributes of the strong entity set on which it depends are included
DTuples in a weak entity set are not partitioned according to their relationship with tuples in a strong entity set
Show answerHide answer
Correct answer: (D) Tuples in a weak entity set are not partitioned according to their relationship with tuples in a strong entity set
Explanation
We have weak entities for several reasons : • We want to avoid the data duplication and consequent entity. Possible inconsistencies caused by duplicating the key of strong. • Weak entities be stored physically with their strong entities • Weak entities can be detected automatically when their strong entity is detected. So (d) is incorrect statement, Hence (d) is the answer.
Q25UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
An assertion is a predicate expressing a condition we wish database to always satisfy. The correct syntax for Assertion is :
CREATE ASSERTION <assertion name> CHECK <predicate> is the proper syntax. For example, an assertion demanding that there is no more than one president among the employees: CREATE ASSERTION AT_MOST_ONE_PRESIDENT CHECK ((SELECT COUNT(*) FROM EMP e WHERE e.job = 'PRESIDENT') <= 1).
Q26UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
Which of the following concurrency protocol ensures both conflict serializability and freedom from deadlock?
(1) 2-phase Locking
(2) Time stamp - ordering
ABoth (1) and (2)
B(1) only
C(2) only
DNeither (1) nor (2)
Show answerHide answer
Correct answer: (C) (2) only
Explanation
In basic two-phase locking there is a chance of deadlock. The timestamp-ordering protocol ensures conflict serializability and, since no transaction waits, it is free from deadlock. So the answer is (2) only.
Q27UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
Which of the following is not associated with the session layer?
ADialog control
BToken management
CSemantics of the information transmitted
DSynchronization
Show answerHide answer
Correct answer: (C) Semantics of the information transmitted
Explanation
Semantics of the information transmitted is not associated with the session layer but associated with presentation layer So correct option is (c).
Q28UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
Which of the following is/are restriction (s) in classless addressing?
AThe number of addresses needs to be power of 2
BThe mask needs to be include in the address to define the block
CThe starting address must be divisible by the number of addresses in the block
DAll of the above
Show answerHide answer
Correct answer: (D) All of the above
Explanation
In class addressing : (1) the number of addresses needs to be power of 2 (2) The mask needs to be included in the address to define the block (3) The starting address must be divisible by the number of addresses in block So answer is (d)
Q29UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
Which of the following statement is incorrect for parallel virtual machine (PVM)?
AThe PVM communication model asynchronous blocking send, asynchronous blocking receive, and non-blocking receive function.
BMessage buffers are allocated dynamically
CThe PVM communication model assumes that any task can send a message to any other PVM task and that there is no limit to the size or number of such messages
DIn PVM model, the message order is not preserved.
Show answerHide answer
Correct answer: (D) In PVM model, the message order is not preserved.
Explanation
PVM provides fault tolerance through dynamic addition and deletion of hosts/processes, and message buffers are allocated dynamically. PVM guarantees that message order between any pair of tasks is preserved, so statement (d) is incorrect.
Q30UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
Which of the following protocols is an application layer protocol that establish, manages and terminates multimedia sessions?
ASession maintenance protocol
BReal – time streaming protocol
CReal – time transport control protocol
DSession Initiation protocol
Show answerHide answer
Correct answer: (D) Session Initiation protocol
Explanation
Session initiation protocol is an application layer control protocol that can establish, modify & terminate multimedia sessions such as internet telephony calls.
Q31UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
Match the following port numbers with their uses :
List - I
(A) 23
(B) 25
(C) 80
(D) 119
List - II
(i) World wide web
(ii) Remote login
(iii) USENET news
(iv) E-mail
Codes : A B C D
A(iv) (i) (ii) (iii)
B(ii) (i) (iv) (iii)
C(ii) (iv) (iii) (i)
D(ii) (iv) (i) (iii)
Show answerHide answer
Correct answer: (D) (ii) (iv) (i) (iii)
Explanation
23 port number is (TELNET) that uses by remote login 25 port number is (SMTP) that uses by E-mail 80 port number is (HTTP) that uses by world wide web 119 port number is used by USENET news
Q32UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
What is the size of the 'total length' in IPv4 datagram?
A4 bits
B8 bits
C16 bits
D32 bits
Show answerHide answer
Correct answer: (C) 16 bits
Explanation
Total length 16 bit field define the entire packet size in IPv4, including header and data, in bytes. The minimum length packet is 20 bytes (20 byte header. + 0 byte data) and maximum is 65, 535 bytes the maximum value of a 16 bit word.
Q33UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
Which process model is also called as classic life cycle model?
AWaterfall model
BRAD model
CPrototyping model
DIncremental model
Show answerHide answer
Correct answer: (A) Waterfall model
Explanation
The waterfall model was first process model to be introduce. • It is also referred as linear sequential life cycle model • It is very simple to understand and use. In this each phase must be complicated fully before the next phase can begin. • In this model the testing stands only after the development is complete • In this model phases do not overlap
Q34UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
Match the following :
List - I
(A) Size-oriented metrics
(B) Function-oriented metrics
(C) Extended function point metrics
(D) Function point
List - II
(i) Uses number of external interfaces as one of the measurement parameter
(ii) Originally designed to be applied to business information system
(iii) Derived by normalizing quality and/or productivity measures by considering the size of the software
(iv) uses algorithm characteristics as one of the measurement parameter
Codes : A B C D
A(iii) (iv) (i) (ii)
B(ii) (i) (iv) (iii)
C(iv) (ii) (iii) (i)
D(iii) (i) (iv) (ii)
Show answerHide answer
Correct answer: (D) (iii) (i) (iv) (ii)
Explanation
(a) Size oriented metrics is directly implied with (iii) (b) Function oriented metrics is number of user inputs, number of user outputs, number of files, number of external interfaces. So it satisfies (i) (c) Extended function point metrics is a superset of the function point measure that can be applied to system. It uses algorithm characteristics as one of the measurement parameter. (d) Function point is a "unit of measurement" to express the amount of business functionality an information provides to a user.
Q35UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
Which one from the following is highly associated activity of project planning?
AKeep track of the project progress
BCompare actual and planned progress and costs
CIdentify the activities, milestones and deliverables produced by a project
DBoth (b) and (c)
Show answerHide answer
Correct answer: (C) Identify the activities, milestones and deliverables produced by a project
Explanation
Project planning means identifying the activities, milestones and deliverables produced by a project. It is commonly perceived as creating a Gantt chart, which is incorrect; a Gantt chart is merely a visual representation of the project schedule.
Q36UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
Cohesion is an extension of :
AAbstraction concept
BRefinement concept
CInformation hiding concept
DModularity
Show answerHide answer
Correct answer: (C) Information hiding concept
Explanation
A cohesion module performs a single task within a software procedure, requiring little interaction with little procedures in other parts of software. Type of cohesion : • A module that performs takes that are related logically is logically cohesion • When a module contains takes that are related by the fact that all must be executed with the same span of time, the exhibits temporal cohesion • At the low end of the spectrum, a module that performs a set of takes that relate to each other loosely called coincidentally cohesive.
Q37UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
In which testing strategy requirements established during requirements analysis are validated against developed software?
AValidation testing
BIntegration testing
CRegression testing
DSystem testing
Show answerHide answer
Correct answer: (A) Validation testing
Explanation
Validation is "Are we building the right product? According to the capability maturity model Software validation : The process of evaluating software during or at the end of the development process to determine whether it satisfies specified requirements.
Q38UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
When the inheritance is private, the private methods in base class are _______ in the derived class (in C++).
AInaccessible
BAccessible
CProtected
DPublic
Show answerHide answer
Correct answer: (A) Inaccessible
Explanation
Inaccessible in the derived class, only public or protected members are inherited So answer is (a)
Q39UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
Which of the following in C++, is inherited in a derived class from base class?
AConstructor
BDestructor
CData Members
DVirtual Methods
Show answerHide answer
Correct answer: (C) Data Members
Explanation
Data members in C++ is inherited in a derived class from base class. Constructor is a member function of a class which initialize objects of a class. In C++, constructor is automatically called when object create. It is special member function of the class. Destructor is a member function which destructs or deletes an object. Virtual methods is a method which is redefined (over- ridden) in derived class.
Q40UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
Which of the following is incorrect in C++?
AWhen we write overloaded function we must code the function for each usage
BWhen we write function template we code the function only once
CIt is difficult to debug macros
DTemplates are more efficient than macros
Show answerHide answer
Correct answer: (D) Templates are more efficient than macros
Explanation
The first three statements are correct; the fourth is incorrect. Templates are more powerful and obey C++ syntactic rules, whereas macros do not, but templates take more compilation time and code size, so templates are not more efficient than macros.
Paper III 37 questions
Q41UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
For the 8-bit word 00111001, the check bits stored with it would be 0111. Suppose when the word is read from memory, the check bits are calculated to be 1101. What is the data word that was read from memory?
A10011001
B00011001
C00111000
D11000110
Show answerHide answer
Correct answer: (B) 00011001
Explanation
Data bits: d₈ = 0, d₇ = 0, d₆ = 1, d₅ = 1, d₄ = 1, d₃ = 0, d₂ = 0, d₁ = 1. Stored check bits p₈p₄p₂p₁ = 0111. Codeword layout (positions 12 to 1): d₈ d₇ d₆ d₅ p₈ d₄ d₃ d₂ p₄ d₁ p₂ p₁. Syndrome = 0111 XOR 1101 = 1010 = 10, so bit position 10, which holds d₆, is in error. Flipping d₆ gives the word that was read: 00011001.
Q42UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
The equivalent hexadecimal notation for octal number 2550276 is :
Q43UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
The number of flip-flops required to design a modulo – 272 counter is :
A8
B9
C27
D11
Show answerHide answer
Correct answer: (B) 9
Explanation
Remember with 'n' number of flip-flop you can get upto maximum modulo - (2ⁿ) counter. Since 2⁹ = 512 > 272 it can satisfy the condition.
Q44UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
Consider a 32-bit microprocessor, with a 16 - bit external data bus, driven by an 8 MHz input clock. Assume that this microprocessor has a bus cycle whose minimum duration equals four input clock cycles. What is the maximum data transfer rate for this microprocessor?
A8 × 10⁶ bytes/sec
B4 × 10⁶ bytes/sec
C16 × 10⁶ bytes/sec
D4 × 10⁹ bytes/sec
Show answerHide answer
Correct answer: (B) 4 × 10⁶ bytes/sec
Explanation
Since minimum bus cycle duration = 4 clock cycle bus clock = 8 MHZ then, maximum bus cycle rate = 8 m/4sec = 2m/sec Data transferred per bus cycle = 16 bit = 2 B Data transfer rate per second = bus cycle rate × data per bus cycle = 2 M × 2 = 4 × 10⁶ bytes/sec So, option (b) is correct.
Q45UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
The CPU a system having 1 MIPS execution needs 4 machine cycles on an average for executing an instruction. The fifty percent of the cycles use memory bus. A memory read/write employs one machine cycle. For execution of the programs, the system utilizes 90 percent of the CPU time. For block data transfer, an IO device in attached to the system while CPU executes the background programs continuously. What is the maximum I/O data transfer rate if programmed I/O data transfer technique is used?
A500 Kbytes/sec
B2.2 Mbytes/sec
C125Kbytes/sec
D250 Kbytes/sec
Show answerHide answer
Correct answer: (D) 250 Kbytes/sec
Explanation
CPU speed is 1 MIPS = 10⁶ instructions per second. With programmed I/O, each byte transferred needs about one instruction-equivalent of 4 machine cycles (status check, branch, read/write data), so the maximum transfer rate = 10⁶ / 4 = 250,000 bytes/sec = 250 Kbytes/sec.
Q46UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
In the indexed scheme of blocks to a file, the maximum possible size of the file depends on :
AThe number of blocks used for index and the size of index
BSize of Block and size of Address
CSize of index
DSize of Block
Show answerHide answer
Correct answer: (B) Size of Block and size of Address
Explanation
Number of pointers that can be stored in the index block – which depends on the size of the index block and the size of each address. Size of each data block – because each pointer points to a block, so the larger the block size, the more data each pointer represents.
Q47UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
An all-pairs shortest-paths problem is efficiently solved using :
ADijkstra' algorithm
BBellman-Ford algorithm
CKruskal algorithm
DFloyd-Warshall algorithm
Show answerHide answer
Correct answer: (D) Floyd-Warshall algorithm
Explanation
The Floyd-Warshall algorithm solves the all-pairs shortest-paths problem efficiently in O(n³) time using dynamic programming.
Q48UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
The travelling salesman problem can be solved in :
APolynomial time using dynamic programming algorithm
BPolynomial time using branch-and-bound algorithm
CExponential time using dynamic programming algorithm or branch-and-bound algorithm
DPolynomial time using backtracking algorithm
Show answerHide answer
Correct answer: (C) Exponential time using dynamic programming algorithm or branch-and-bound algorithm
Explanation
It will be solved by using branch and bound technique. The travelling salesman problem is NP- complete problem. It can also be solved by- one of the earliest application of dynamic programming is the Held-Karp algorithm to solve TSP in time O(n².2ⁿ).
Q49UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
Which of the following statements is true for branch - and - bound search?
AUnderestimates of remaining distance may cause deviation from optimal path
BOverestimates can't cause right path to be overlooked.
CDynamic programming principle can be used to discard redundant partial paths.
DAll of the above
Show answerHide answer
Correct answer: (C) Dynamic programming principle can be used to discard redundant partial paths.
Explanation
Branch and bound is an algorithm design paradigm for discrete and combinatorial optimization problems; it systematically enumerates candidate solutions by state space search. In branch and bound, the dynamic programming principle can be used to discard redundant partial paths.
Q50UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
Module design is used to maximize cohesion and minimize coupling. Which of the following is the key to implement this rule?
AInheritance
BPolymorphism
CEncapsulation
DAbstraction
Show answerHide answer
Correct answer: (C) Encapsulation
Explanation
The golden rule in module design is to maximize cohesion and minimize coupling. Encapsulation is the key to implementing this rule.
Q51UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
In Java , when we implement an interface method, it must be declared as :
APrivate
BProtected
CPublic
DFriend
Show answerHide answer
Correct answer: (C) Public
Explanation
Interface: It is used to provide total abstraction. That means all the methods in interface are declared with empty body and are public and all fields are public, static and final default.
Q52UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
Which one of the following is correct?
AJava applets can be written in any programming language
BAn applet is not a small program
CAn applet can be run on its own
DApplets are embedded in another applications
Show answerHide answer
Correct answer: (D) Applets are embedded in another applications
Explanation
An applet is a small program that is intended not to be run on its own, but rather to be embedded inside-another application.
Q53UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
Which of the following statements is not true for multi level feedback queue processor scheduling algorithm?
AQueues have different priorities
BEach queue may have different scheduling algorithm
CProcesses are permanently assigned to a queue
DThis algorithm can be configured to match a specific system under design
Show answerHide answer
Correct answer: (C) Processes are permanently assigned to a queue
Explanation
Processes are not permanently assigned to a queue they can vary between queues as their priorities change
Q54UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
What is the most appropriate function of Memory management Unit (MMU)?
AIt is an associative memory to store TLB
BIt is a technique of supporting multiprogramming by creating dynamic partitions
CIt is a chip to map virtual address to physical address
DIt is an algorithm to allocate and deallocate main memory to a process
Show answerHide answer
Correct answer: (C) It is a chip to map virtual address to physical address
Explanation
Memory management unit (MMU), sometimes called paged memory management unit (PMMU), is a computer hardware unit having all memory references passing through itself, primarily performing the translation of virtual memory addresses to physical addresses. It is usually implemented as part of the central processing unit (CPU), but it also can be in the form of a separate integrated circuit. So we can say it is a chip to map virtual address to physical address
Q55UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
In _____ allocation method for disk block allocation in a file system, insertion and deletion of blocks in a file is easy.
AIndex
BLinked
CContiguous
DBit Map
Show answerHide answer
Correct answer: (B) Linked
Explanation
Just like linked list where insertion, deletion of blocks is easy. In linked allocation only pointer needs to be changed. In linked allocation each file is a linked list of disk blocks. The directory contains a pointer to the first block of the file, for example, a file of 5 blocks which starts at block 4, might continuous at block 7, then block 16, block 10, 8 finally block 27. Each block constrains a pointer to the next block & the last block contains a NIL-pointer. The value-1 may be used for NIL to differential it from block 0.
Q56UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
WOW32 is a :
AWin 32 API library for creating processes and threads
BSpecial kind of file system to the NT name space
CKernel - mode objects accessible through Win 32 API
DSpecial execution environment used to run 16 bit Window applications on 32-bit machines
Show answerHide answer
Correct answer: (D) Special execution environment used to run 16 bit Window applications on 32-bit machines
Explanation
Wow 32 is a running environment used in windows to run 16 bit windows application on a 32 bit machine
Q57UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
The Unix command : $ vi file1 file2
AEdits file1 and stores the contents of file1 in file2
BBoth files i.e. file1 and file2 can be edited using 'ex' command to travel between the files
CBoth files can be edited using 'mv' command to move between the files
DEdits file1 first, saves it and then edits file2
Show answerHide answer
Correct answer: (B) Both files i.e. file1 and file2 can be edited using 'ex' command to travel between the files
Explanation
You can edit more than one file at a time with vi. vi file1 file2 vi two (or more) files at the same time.
Q58UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
A Unix file may be of the type :
ARegular file
BDirectory file
CDevice file
DAny one of the above
Show answerHide answer
Correct answer: (D) Any one of the above
Explanation
A Unix file may be of any of the type like regular file, directory file, or device file.
Q59UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
Let E₁ and E₂ be two entities in E-R diagram with simple single valued attributes. R₁ and R₂ are two relationships between E₁ and E₂ where R₁ is one - many and R₂ is many - many. R₁ and R₂ do not have any attribute of their own. How minimum number of tables are required to represent this situation in the Relational model?
A4
B3
C2
D1
Show answerHide answer
Correct answer: (B) 3
Explanation
One table for each entity : 2 R₁ is one to many (No separate table): 0 R₂ is many to many and requires one separate table: 1 Total number of tables: 3
Q60UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
The STUDENT information in a university stored in the relation STUDENT (Name, SEX, Marks, DEPT _Name) Consider the following SQL query SELECT DEPT_Name for STUDENT where SEX = 'M' group by DEPT_Name having avg (Marks) > SELECT avg (Marks) STUDENT. It Returns the Name of the Department for which :
AThe average marks of male students is more than the average marks of students in the same Department
BThe average marks of male students is more than the average marks of students in the University
CThe average marks of male students is more than the average marks of male students in the University
DThe average marks of students is more than the average marks of male students in the University
Show answerHide answer
Correct answer: (B) The average marks of male students is more than the average marks of students in the University
Explanation
The average marks of male students is more than the average marks of student in the university.
Q61UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
Select the 'False' statement from the following statements about Normal forms :
ALossless preserving decomposition into 3NF is always possible
BLossless preserving decomposition into BCNF is always possible
CAny Relation with two attributes is in BCNF
DBCNF is stronger than 3NF
Show answerHide answer
Correct answer: (C) Any Relation with two attributes is in BCNF
Explanation
Note: statement (c) is actually true (every two-attribute relation is in BCNF); the false statement is (b), so the book's key appears wrong. A BCNF decomposition that is both lossless and dependency preserving is not always possible. Example: R(a, b, c) with FDs ab → c and c → b cannot be decomposed into BCNF while preserving ab → c.
Q62UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
The Relation Vendor Order (V_no, V_ord_no, V_name, Qty_sup, unit_price) is in 2NF because :
ANon_key attribute V_name is dependent on V_no which is part of composite key
BNon_key attribute V_name is dependent on Qty_sup
CKey attribute Qty_sup is dependent on primary_key unit price
DKey attribute V_ord_no is dependent on primary_key unit price
Show answerHide answer
Correct answer: (A) Non_key attribute V_name is dependent on V_no which is part of composite key
Explanation
Option (a) is which it is clearly mentioned that partial dependency exists is against 2NF principle. Question seems incomplete, because there is nothing said about functional dependency.
Q63UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
Which of the following statement(s) is/are incorrect?
(1) Mapping the co-ordinates of the points and lines that form the picture into the appropriate co-ordinates on the device or workstation is known as viewing transformation
(2) The right-handed Cartesian co-ordinates system in whose co-ordinates we describe the picture is known as world co-ordinate system
(3) The co-ordinate that corresponds to the device or workstation where the image is to be displayed is known as physical device co-ordinate system
(4) Left - handed co-ordinate system in which the display area of the virtual display device corresponds to the unit (1 × 1) square whose lower left-hand corner is at the origin of the co-ordinate system, is known as normalized device co-ordinate system
A(1) only
B(1) and (2)
C(3) only
D(4) only
Show answerHide answer
Correct answer: (D) (4) only
Explanation
Normalized device co-ordinates describe positions on a virtual plotting device: the lower left corner is (0,0) and the upper right corner is (1,1). NDC is a right-handed system, not left-handed, so statement (4) is incorrect.
Q64UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
Which transmission technique guarantees that data packets will be received by the receiver in the same order in which they were sent by the sender?
ABroadcasting
BUnicasting
CPacket switching
DCircuit switching
Show answerHide answer
Correct answer: (D) Circuit switching
Explanation
Circuit switching transmission technique guarantees the data packets will be received by the receiver in the same order in which they were sent by the sender because path is fixed and all packet goes through that path in same order.
Q65UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
A message "COMPUTER NETWORK" encrypted (ignore quotes) using columnar transposition cipher with a key "LAYER". The encrypted message is :
ACTTOEWMROPNRUEK
BMROUEKCTTPNROEW
COEWPNRCTTUEKMRO
DUEKPNRMROOEWCTT
Show answerHide answer
Correct answer: (C) OEWPNRCTTUEKMRO
Explanation
Key LAYER gives column order L = 3, A = 1, Y = 5, E = 2, R = 4. Writing the message row-wise:
C O M P U
T E R N E
T W O R K
Reading columns in order 1 (A), 2 (E), 3 (L), 4 (R), 5 (Y): OEW PNR CTT UEK MRO. Encrypted message: OEWPNRCTTUEKMRO.
Q66UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
Which of the following control fields in TCP header is used to specify whether the sender has no more data to transmit?
AFIN
BRST
CSYN
DPSH
Show answerHide answer
Correct answer: (A) FIN
Explanation
FIN control fields in TCP header is used to specify whether the sender has no more data to transmit i.e., close the connection from sender side.
Q67UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
Which are the two modes of IP security?
ATransport and certificate
BTransport and tunnel
CCertificate and tunnel
DPreshared and transport
Show answerHide answer
Correct answer: (B) Transport and tunnel
Explanation
Transport mode:- IP header, IPSec, headers IP payload. Tunnel Mode:- New IP header, IPSec, headers, old IP header, IP payload. IP Sec can be implemented in a host-to-host transport mode, as well as in network tunning mode.
Q68UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
The maximum payload of a TCP segment is :
A65, 535
B65, 515
C65, 495
D65, 475
Show answerHide answer
Correct answer: (C) 65, 495
Explanation
The maximum payload of TCP segment is 65, 495 bytes. Because maximum IP packet is 65, 535 bytes out of which 20 is used for header. TCP header is 20 bytes. So, 2¹⁶ – 20 – 20 = 65535 – 40 = 65495 bytes left for TCP.
Q69UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
Which design metric is used to measure the compactness of the program in terms of lines of codes ?
AConsistency
BConciseness
CEfficiency
DAccuracy
Show answerHide answer
Correct answer: (A) Consistency
Explanation
Note: the metric that measures compactness of a program in lines of code is conciseness, so option (b) appears correct; the book keys (a). Consistency is the use of uniform design and documentation techniques throughout the software development project.
Q70UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
Requirements prioritization and negotiation belongs to :
ARequirements validation
BRequirements elicitation
CFeasibility study
DRequirements reviews
Show answerHide answer
Correct answer: (B) Requirements elicitation
Explanation
Elicitation is the process of gathering, understanding and documenting requirement. Prioritization and negotiation are key activities within the elicitation process to ensure a feasible and well defined set of requirements for the project. Requirements Validation– This is the process of checking if the gathered requirements are correct, complete and consistent. Feasibility study– This is an assessment of whether a project is viable and achievable, considering factors like cost, resources and technology. Requirements Reviews– These are formal assessments of the requirements documentation, typically conducted by stakeholders and experts, to identify potential issues and ensure quality.
Q71UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
A software design is highly modular if :
ACohesion is functional and coupling is data type
BCohesion is coincidental and coupling is data type
CCohesion is sequential and coupling is content type
DCohesion is functional and coupling is stamp type
Show answerHide answer
Correct answer: (A) Cohesion is functional and coupling is data type
Explanation
We know our aim is to maximize cohesion & minimum coupling Strong form of cohesion is functional cohesion weakest form of coupling is data coupling.
Q72UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
Adaptive maintenance is a maintenance which ______
ACorrect errors that were not discovered till testing phase
BIs carried out to port the existing software to a new environment
CImproves the system performance
DBoth (b) and (c)
Show answerHide answer
Correct answer: (B) Is carried out to port the existing software to a new environment
Explanation
Adaptive maintenance is a modification of a software product performed after delivery to keep it usable in a changed or changing environment, e.g. porting the existing software to a new environment.
Q73UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
In XML we can specify the frequency of an element by using the symbols :
A+ * !
B# * !
C+ * ?
D– * ?
Show answerHide answer
Correct answer: (C) + * ?
Explanation
In an XML DTD, + means one or more times, * means zero or more times and ? means zero or one time.
Q74UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
In XML, DOCTYPE declaration specifies to include a reference to _____file.
ADocument type Definition
BDocument type declaration
CDocument transfer definition
DDocument type language
Show answerHide answer
Correct answer: (A) Document type Definition
Explanation
In XML, DOCTYPE declaration can be used to define special characters & character string used in the document & it include a reference of document type definition file
Q75UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
A Design concept refinement is a :
ATop-down approach
BComplementary of abstraction concept
CProcess of elaboration
DAll of the above
Show answerHide answer
Correct answer: (D) All of the above
Explanation
Refinement is surly a top down approach as we are extracting a particular type like person entity to s/w engineer. Refinement, process of elaboration, start with the statement of function defined at the abstract level, decompose the statement function in a step wise fashion until programming language statements are reached.
Q76UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
The redundancy in images stems from :
APixel decorrelation
BPixel correlation
CPixel quantization
DImage size
Show answerHide answer
Correct answer: (B) Pixel correlation
Explanation
The redundancy in images stems from pixel correlation. If the image is transformed to a representation where the pixels are decorrelated, the redundancy is eliminated and the image can be compressed.
Q77UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions) · Paper III
Which of the following is false for the programming language PROLOG?
AA PROLOG variable can only be assigned to a value once
BPROLOG is a strongly typed language
CThe scope of a variable in PROLOG is a single clause or rule
DThe scope of a variable in PROLOG is a single query
Show answerHide answer
Correct answer: (B) PROLOG is a strongly typed language
Explanation
Since prolog is a dynamically typed language. Which is to say that programs are not checked for type errors until run time.