UGC NET · PAPER 2
UGC NET Paper 2 Computer Science – Unit 3: Programming Languages and Computer Graphics PYQ (September 2022)
Q17. The hidden-surface removal problem with a minimal 3D pipeline can be solved with
- Painter's algorithm
- Window clipping algorithm
- Brute-force rasterisation algorithm
- Flood-fill algorithm
Q19. The condition num != 65 cannot be replaced by
- num > 65 || num < 65
- !(num == 65)
- num − 65
- !(num − 65)
Q20. Pointers cannot be used to
- find the address of a variable in memory
- reference a value directly
- simulate call by reference
- manipulate dynamic data structures
Q21. Which mechanism in XML allows organisations to specify globally unique names as element tags in documents?
- root
- header
- schema
- namespace
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]
- Scaling
- Shear
- Homography
- Steganography
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?
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?
- Statement I only
- Statements I and II only
- Statements I, II and III only
- Statements I, II and IV only
Q96. Which of the following is NOT a logical error?
- Using '=' instead of '==' to determine if two values are equal
- Divide by zero
- Failing to initialise counter and total variables before the body of a loop
- Using commas instead of the two required semicolons in a for loop header
Q98. Which statement is false?
- All function calls in C pass arguments using call by value.
- Call by reference enables a called function to modify a variable in the calling function.
- Call by value is always more efficient than call by reference.
- Programmers use pointers and the indirection operator to simulate call by reference.