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 (September 2022)

8 questions · answer key at the end · updated 11 Oct 2026
Q17. The hidden-surface removal problem with a minimal 3D pipeline can be solved with
  1. Painter's algorithm
  2. Window clipping algorithm
  3. Brute-force rasterisation algorithm
  4. Flood-fill algorithm
Answer & explanation →
Q19. The condition num != 65 cannot be replaced by
  1. num > 65 || num < 65
  2. !(num == 65)
  3. num − 65
  4. !(num − 65)
Answer & explanation →
Q20. Pointers cannot be used to
  1. find the address of a variable in memory
  2. reference a value directly
  3. simulate call by reference
  4. manipulate dynamic data structures
Answer & explanation →
Q21. Which mechanism in XML allows organisations to specify globally unique names as element tags in documents?
  1. root
  2. header
  3. schema
  4. namespace
Answer & explanation →
Q24. The following transformation (with general entries in all four rows) is called
[x']   [a1 b1 c1 d1] [x]
[y'] = [a2 b2 c2 d2] [y]
[z']   [a3 b3 c3 d3] [z]
[w']   [e  f  g  h ] [1]
  1. Scaling
  2. Shear
  3. Homography
  4. Steganography
Answer & explanation →
Q90. A top-down approach to programming calls for:
Statement I: Working from the general to the specific.
Statement II: Postponing the minor decisions.
Statement III: A systematic approach.
Statement IV: Intermediate coding of the problem.
Which of the following is true?
  1. Statement I only
  2. Statements I and II only
  3. Statements I, II and III only
  4. Statements I, II and IV only
Answer & explanation →
Q96. Which of the following is NOT a logical error?
  1. Using '=' instead of '==' to determine if two values are equal
  2. Divide by zero
  3. Failing to initialise counter and total variables before the body of a loop
  4. Using commas instead of the two required semicolons in a for loop header
Answer & explanation →
Q98. Which statement is false?
  1. All function calls in C pass arguments using call by value.
  2. Call by reference enables a called function to modify a variable in the calling function.
  3. Call by value is always more efficient than call by reference.
  4. Programmers use pointers and the indirection operator to simulate call by reference.
Answer & explanation →

Answer key

  1. 17 – A
  2. 19 – D
  3. 20 – B
  4. 21 – D
  5. 24 – C
  6. 90 – C
  7. 96 – D
  8. 98 – C