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

Total Questions: 80

71. Consider the following statements:

A. Dynamic metrics are collected by measurements made of a program in execution
B. Static metrics are collected by measurements made of representations of the system
C. The assessment of software quality is an objective process
D. An important part of quality assurance in the selection of standards that should apply to the software development process.
Choose the correct answer from the options given below:

Correct Answer: (d) A, B and D only
Solution:

Analyze these statements-
(A) Dynamic metrics are indeed collected from a program while it's running, providing insight into its behavior during execution. So, the statement (A) is correct.
(B) Static metrics, on the other hand, are gathered from representations of the system, like the source code, without executing it. So, the statement(B) is correct.
(C) The assessment of software quality is not strictly objective; it involves both objective measures, like metrics and standards, as well as subjective judgments, such as user experience and satisfaction So, the statement (C) is incorrect.
(D) Selecting appropriate standards for the software development process is crucial for ensuring quality assurance and consistency in development practices. So the statement (D) is correct.

72. The following table shows the time between failures for a software:

Correct Answer: (c)
Solution:

73. Which of the following statement is correct?

Correct Answer: (c)
Solution:

74. How will you free the memory allocated by the following program?

Correct Answer: (d) free (p);
Solution:

This code first allocates memory for on array of pointers 'p' then allocates memory for each row pointed to by p[i]; Finally, it frees the memory for each row and then frees the memory for the array of pointers itself.

75. Which is not a basic approach to the problem of conflict resolution in a production system?

Correct Answer: (d) Assigning a preference based on the action that the matched object would perform
Solution:

In a production system, conflicts are typically resolved by considering factors such as the rule that matched, the objects involved, or the actions that the matched rules would perform. Assigning preference based on the action that the matched object would perform does not directly address the conflict resolution within the system's rule-based framework. This approach might be less common because it's not directly tied to the rule-based logic of the system.

76. Match List I with List II

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

77. The clipping process in computer graphics is used for

Correct Answer: (d) Removing objects and lines
Solution:

The clipping process in computer graphics is used to remove objects and lines or portions of objects that fall outside the viewing area or viewport, ensuring only the necessary parts are rendered. It helps optimize rendering and improves performance by not processing unnecessary data.

78. Consider a disk system with cylinders. The request to access the cylinders occurs in the following sequence.

4,34,10,7,19,73,2,15,6,20
Assuming that the head is currently at cylinder 50, what is the time taken to satisfy all request if it takes 1 ms to move from one cylinder to adjacent one ans shortest seek time first policy is used?

Correct Answer: (a) 119
Solution:

79. Consider the rectangle with vertices (0,0), (0,2), (3,0) (3,2). There is scaling of 2 towards x-axis and 3 towards y-axis. The new coordinates of the rectangle are

Correct Answer: (c) (0,0), (6,0), (0,6), (6, 6)
Solution:

To find new coordinates after. scaling you multiple each coordinate by the scaling factor. For the x-axis scaling of 2 the new x - coordinates will be twice the original ones, And for y-axis scaling of 3, the new y-coordinates will be 3 times the original ones.
Original rectangle vertices:
(0, 0), (0, 2), (3, 0), (3, 2)
After scaling by 2 on the x- axis
(02, 0), (02, 2), (32, 0), (32, 2)
= (0, 0) (0, 2) (6, 0) (6, 2)
After sealing by 3 on the y - axis:
(0, 03), (0, 23), (3, 03), (3, 23)
= (0, 0), (0, 6), (3, 0), (3, 6)
So, the new coordinates of the rectangle are:
(0, 0), (6, 0), (0, 6), (6, 6)

80. Which of the following transforms in 2 dimension is used to resize a 2-dimensional object?

Correct Answer: (c) Scaling
Solution:

Scaling transformation refer to the process of resizing an object or an image in a coordinate system. It involves multiplying the coordinates of each point in the object by a scale factor to either enlarge or reduce its size. Scaling transformation in 2 dimension is used to resize a2-dimensional object.