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

Total Questions: 100

71. Match List - I with List - II according to input to the compiler phase that process it:

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

72. Match List - I with List - II.

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

73. Match List - I with List - II.


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

74. Match List - I with List-II.

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

75. Match List - I with List - II.

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

76. Arrange the following in ascending order:

Correct Answer: (c) (A), (C), (B), (D)
Solution:

77. In most general case, the computer needs to process each instruction with the following sequence of steps:

(A) Calculate the effective address
(B) Execute the instruction
(C) Fetch the instruction from memory
(D) Fetch the operand from memory
(E) Decode the instruction
Choose the correct answer from the options given below :

Correct Answer: (c) (C), (E), (A), (D), (B)
Solution:

The correct sequence of steps in the most general case of processing an instruction by a computer is:
(3) fetch the incarnation from memory
(5) Recode the instruction
(1) Calculate the effective address
(4) Fetch the operand from memory
(2) Execute the instruction
Therefore, the correct answer is (c)
- (C), (E), (A), (D), (B)

78. Consider the following code segment:

int arr [ ] = {0, 1, 2, 3, 4};
int i = 1, *ptr;
ptr = arr + 2;
arrange the following printf statements in the
increasing order of their output.
(A) printf ("%d", ptr[i]);
(B) printf ("%d", ptr[i + 1]);
(C) printf ("%d", ptr[- i]);
(D) printf ("%d", ptr[- i + 1]);
Choose the correct answer from the options given below:

Correct Answer: (b) (C), (D), (A), (B)
Solution:

Let's analyze the code segment.

79. The steps for analysis and design of object oriented system.

(A) Draw interaction diagrams
(B) Draw state chart and object diagram
(C) Draw use case and activity diagram
(D) Draw component and deployment diagram
(E) Draw class diagram
Choose the correct answer from the options given below:

Correct Answer: (d) (C)→(A)→(E)→(B)→(D)
Solution:

The correct sequence for the steps for analysis and design of object oriented system is.
(C) Draw use case and activity diagram
(A) Draw interaction diagrams
(E) Draw class diagram
(B) Draw state chart and object diagram
(D) Draw component and deployment diagram
So, the correct option is (d).

80. Arrange the following levels of interrupt protection within the Linux Kernel, in the order of increasing priority.

(A) user mode programs
(B) bottom half interrupt handlers
(C) kernel system service routines
(D) top half interrupt handlers
Choose the correct answer from the options given below:

Correct Answer: (b) (A), (C), (B), (D)
Solution:

The correct order of increasing priority for the given levels of interrupt protection within the Linux kernel is-
(A) User mode programs
(C) Kernel system service routines
(B) Bottom half interrupt handlers
(D) Top half interrupt handlers