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 2022 Shift 1)

8 questions · answer key at the end · updated 11 Oct 2026
Q9. In the context of binding, which one of the following is incorrect?
  1. Static binding is done at compile time
  2. Absolute addresses are known at load time
  3. Internal functions are known at link time
  4. The target of a function is known at run time
Answer & explanation →
Q10. Given
int arr[3][4][2] = {{{2,4},{7,8},{3,4},{5,6}}, {{7,6},{3,4},{5,3},{2,3}}, {{8,9},{7,2},{3,4},{5,1}}};
Which one of the following can be used to refer to the element 1 in the above 3-D array?
  1. arr[3][4][2]
  2. *(*(*(arr + 2) + 3) + 1)
  3. *(arr + 2) + *(arr + 3) + *(arr + 1)
  4. arr[2][3][2]
Answer & explanation →
Q11. Allowing different derived classes to be used interchangeably through the interface provided by a common base class is called ______
  1. Derived polymorphism
  2. Compile-time polymorphism
  3. Static polymorphism
  4. Run-time polymorphism
Answer & explanation →
Q12. In a ______ curve the first and last vertices of the control polygon lie on the curve, and all other vertices define the derivatives, order and shape of the curve.
  1. B-spline curve
  2. Boxline curve
  3. Bezier curve
  4. Gaussian curve
Answer & explanation →
Q46. Inheritance provides the benefits of
A. Shared interfaces
B. Run-time polymorphism
C. Less redundant information
D. Dynamic binding
Choose the correct answer from the options given below:
  1. A, B, C only
  2. A, B, D only
  3. B, C, D only
  4. A, C, D only
Answer & explanation →
Q47. Which of the following are correct uses of std::string constructors?
A. string s1;
B. string s2(s1);
C. string s3{7};
D. string s4{'a'};
E. string s5{7, 'a'};
Choose the most appropriate answer from the options given below:
  1. A, B, D, E only
  2. A, B, C only
  3. A, B, D only
  4. A and B only
Answer & explanation →
Q48. A corporate website's appearance varies according to the department that owns the documents, but all documents follow the corporate look and feel. The HR department does not need a separate style sheet; it needs only a sheet containing the differences from the corporate sheet. Which statements justify this scenario?
A. Style sheets cannot stack on each other
B. Style sheets can stack on each other
C. Style sheets can override each other
D. Style sheets cannot override each other
Choose the most appropriate answer from the options given below:
  1. A, C Only
  2. B, C Only
  3. B, D only
  4. A, D only
Answer & explanation →
Q68. Match List I with List II
List IList II
A. 2-D Array InputI. Liquid Crystal Display
B. Transmissive deviceII. Flat-bed scanner
C. Binary imageIII. Camera
D. 1-D Array inputIV. Inkjet printer
  1. A-I, B-III, C-II, D-IV
  2. A-III, B-I, C-IV, D-II
  3. A-III, B-I, C-II, D-IV
  4. A-I, B-II, C-IV, D-III
Answer & explanation →

Answer key

  1. 9 – C
  2. 10 – B
  3. 11 – D
  4. 12 – C
  5. 46 – C
  6. 47 – A
  7. 48 – B
  8. 68 – B