U.G.C. NET Exam. June 2023 Paper-II (COMPUTER SCIENCE)

Total Questions: 80

31. What will be the output of the following code? # include int main () { int a, b, c; a = ox10; b= o10; c = a + b; printf ("%d",c); return 0; }

Correct Answer: (b) 24
Solution:

In C language, If number starts with 'o' it is octal and if it starts with 'ox' it is hexadecimal. In Given code 'o × 10' is hexadecimal representation of 16, and 'o10' is octal representation of 8. Adding them together '16 + 8 = 24'. so the output of given code is 24.

32. What is the (4+4) fit binary fixed point equivalent of -(3.72)₁₀ ?

Correct Answer: (c) 1100.0100
Solution:

33. Let N denote the set of all natural numbers and R be the relation on NXN defined by (a,b) R (c,d), if ad (b+c) = bc (a + d). Then R is

Correct Answer: (d) An equivalence relation
Solution:

A relation R on a set N is said to an equivalence relation it is Reflexive, symmetric and transitive.
Reflexive: For any (a,b) in N × N, we nee to show that (a, b) R (a, b).
ad (b + a) = ab (a + d), which is true since both sides are equal.
Symmetric: For any (a, b) and (c, d) in N × N,
If (a, b) R (c, d) then (c, d) R (a, b).
if ad (b + c) = bc (a + d), then bc (a + d) = ad (b + c), which is the same relation, so it's symmetric.
Transitive: For any (a, b) (c, d) and (e, f) in N × N, if (a, b)R (c, d) and (c, d) R (e, f) then (a, b) R (e, f). If ad (b + c) = bc (a + d) and ce (d + f) = de (c + e), then ac (b + f ) = be (a + f), which means (a, b) R (e, f).
Since R satisfies all three properties, it is indeed an equivalence relation.

34. The maximum yield length of the following CNF, CFG is.

S→AB
A→CD
B→e
C→a
D→b

Correct Answer: (c) 4
Solution:

35. Answer the following question

Correct Answer: (d)
Solution:

Given,

36. What of the following scenario may lead to an irrecoverable error in a database system?

Correct Answer: (d) A transaction reads a data item after it is written by an uncommitted transaction
Solution:

In database system, reading a data item after it has been written by an uncommitted transaction is an example of a phenomenon known as 'dirty read' or 'uncommitted dependency'. This can lead to inconsistent or incorrect result if the uncommitted transaction is later rolled back.

37. An observational technique that can be used to understand operational process and help to derive requirement for software to support operational process is known as

Correct Answer: (c) Ethnography
Solution:

Ethnography in software engineering is the application of ethnographic research (qualitative) in the development and assessment of computer programs. Specifically, ethnographical research includes the observational recordings of human, social and organizational needs and experiences. In other word, An observational technique that can be used to understand operational process and help to derive requirement for software to support operational process is known as Ethnography.

38. Given below are two statement : one is labelled as Assertion A and the other is labelled as Reason R.

A virtual memory system uses first-in first-out page replacement policy and allocates a fixed number frames to a process
Assertion A: Increasing number of page frames allocated to a process sometimes increases the page fault rate
Reason R: Some programs do not exhibit locality of reference.
In the light of the above statements, choose the correct answer from the options given below.

Correct Answer: (b) Both A and R are true but R is NOT the correct explanation of A
Solution:

Increasing the number of page frames allocated to a process can indeed sometimes increase the page fault rate. This is due to the phenomenon known as 'thrashing', where the overhead of managing a large number of frames can outweigh the benefits of having more frames, leading to more frequent page faults. So the Assertion A is true.
The Reason R is also true. Some programs do not exhibit locality of reference, meaning they don't have predictable memory access patterns that benefit from having more page in memory Programs with irregular or non-local memory access patterns may experience high page page fault rates regardless of the number of page ferames allocated to them. So, both A and R are true but R is not the correct explanation of A.

39. Match List I with List II

Correct Answer: (b) A-III B-IV C-I D-II
Solution:

40. Consider the following language:

Correct Answer: (a) Context free but not linear
Solution: