All mock tests are FREE till 31 December — register to save your progress
UGC NET · PAPER 2

UGC NET Paper 2 Computer Science – Unit 3: Programming Languages and Computer Graphics PYQ (December 2024)

9 questions · answer key at the end · updated 11 Oct 2026
Q2. Consider the conditional statement if (m == 20 − 10 || n > 10). The order of execution of the following operations is
A. ==
B. −
C. ||
D. >
Choose the correct answer from the options given below:
  1. D, B, A, C
  2. B, D, C, A
  3. B, D, A, C
  4. A, B, D, C
Answer & explanation →
Q5. Which of the following is NOT true about Global Variables?
  1. The values of the global variables which are sent to the called function may be changed inadvertently by the called function.
  2. Functions are supposed to be independent and isolated modules. This character is lost if they use global variables.
  3. It is not immediately apparent to the reader which values are being sent to the called function.
  4. A function that uses global variables does not suffer from reusability.
Answer & explanation →
Q21. Arrange the 2-D viewing transformation pipeline.
A. Convert world coordinates to viewing coordinates
B. Map viewing coordinates to normalized viewing coordinates using window-viewport specifications
C. Construct world-coordinate scene using modeling-coordinate transformations
D. Map normalized viewport to device coordinates
Choose the correct answer from the options given below:
  1. D, C, B, A
  2. D, C, A, B
  3. C, A, B, D
  4. B, C, A, D
Answer & explanation →
Q36. The entire set of parameters, including the return address, that is stored for a procedure invocation is referred to as
  1. stack frame
  2. stack base
  3. stack limit
  4. stack record
Answer & explanation →
Q50. Consider the following statements:
int x = 10, y = 15;
x = ((x == y) ? (y + x) : (y - x));
What will be the value of x after executing these statements?
  1. 5
  2. 25
  3. 15
  4. 30
Answer & explanation →
Q51. The major adverse side effects of scan conversion are:
A. Staircase appearance
B. Unequal brightness of slanted lines
C. Picket fence problem
D. Rasterization
E. Pre-filtering and Post-filtering
Choose the correct answer from the options given below:
  1. A & B only
  2. A, B & C only
  3. B, C & D only
  4. C, D & E only
Answer & explanation →
Q53. Match List I (Functions) with List II (Uses of functions)
List IList II
A. fseek()I. Gives the current position in the file
B. ftell()II. Sets the position to the beginning of the file
C. feof()III. Sets the position to a desired point in the file
D. rewind()IV. Used to test for an end of file condition
  1. A-II, B-III, C-I, D-IV
  2. A-III, B-I, C-IV, D-II
  3. A-III, B-I, C-II, D-IV
  4. A-II, B-IV, C-III, D-I
Answer & explanation →
Q64. Which of the following statements is NOT true?
  1. A data member of a class can be declared as static and is normally used to maintain values common to the entire class.
  2. A friend function can be invoked like a normal function without the help of any object.
  3. The scope resolution operator (::) can be overloaded like normal operators.
  4. Multiple inheritance may lead to duplication of inherited members from a 'grandparent' base class. This may be avoided by making the common base class a virtual base class.
Answer & explanation →
Q80. The light given off by the phosphor during exposure to the electron beam is known as
  1. Fluorescence
  2. Phosphorescence
  3. Persistence
  4. Retracing
Answer & explanation →

Answer key

  1. 2 – C
  2. 5 – D
  3. 21 – C
  4. 36 – A
  5. 50 – A
  6. 51 – B
  7. 53 – B
  8. 64 – C
  9. 80 – A