UGC NET · PAPER 2
UGC NET Paper 2 Computer Science – Unit 3: Programming Languages and Computer Graphics PYQ (December 2022 Shift 1)
Q9. In the context of binding, which one of the following is incorrect?
- Static binding is done at compile time
- Absolute addresses are known at load time
- Internal functions are known at link time
- The target of a function is known at run time
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?
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?
arr[3][4][2]*(*(*(arr + 2) + 3) + 1)*(arr + 2) + *(arr + 3) + *(arr + 1)arr[2][3][2]
Q11. Allowing different derived classes to be used interchangeably through the interface provided by a common base class is called ______
- Derived polymorphism
- Compile-time polymorphism
- Static polymorphism
- Run-time polymorphism
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.
- B-spline curve
- Boxline curve
- Bezier curve
- Gaussian curve
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:
A. Shared interfaces
B. Run-time polymorphism
C. Less redundant information
D. Dynamic binding
Choose the correct answer from the options given below:
- A, B, C only
- A, B, D only
- B, C, D only
- A, C, D only
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:
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:
- A, B, D, E only
- A, B, C only
- A, B, D only
- A and B only
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:
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:
- A, C Only
- B, C Only
- B, D only
- A, D only
Q68. Match List I with List II
| List I | List II |
|---|---|
| A. 2-D Array Input | I. Liquid Crystal Display |
| B. Transmissive device | II. Flat-bed scanner |
| C. Binary image | III. Camera |
| D. 1-D Array input | IV. Inkjet printer |
- A-I, B-III, C-II, D-IV
- A-III, B-I, C-IV, D-II
- A-III, B-I, C-II, D-IV
- A-I, B-II, C-IV, D-III