UGC NET · PAPER 2
UGC NET Paper 2 Computer Science – Unit 3: Programming Languages and Computer Graphics PYQ (December 2024)
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:
A. ==
B. −
C. ||
D. >
Choose the correct answer from the options given below:
- D, B, A, C
- B, D, C, A
- B, D, A, C
- A, B, D, C
Q5. Which of the following is NOT true about Global Variables?
- The values of the global variables which are sent to the called function may be changed inadvertently by the called function.
- Functions are supposed to be independent and isolated modules. This character is lost if they use global variables.
- It is not immediately apparent to the reader which values are being sent to the called function.
- A function that uses global variables does not suffer from reusability.
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:
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:
- D, C, B, A
- D, C, A, B
- C, A, B, D
- B, C, A, D
Q36. The entire set of parameters, including the return address, that is stored for a procedure invocation is referred to as
- stack frame
- stack base
- stack limit
- stack record
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?
- 5
- 25
- 15
- 30
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:
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:
- A & B only
- A, B & C only
- B, C & D only
- C, D & E only
Q53. Match List I (Functions) with List II (Uses of functions)
| List I | List 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 |
- A-II, B-III, C-I, D-IV
- A-III, B-I, C-IV, D-II
- A-III, B-I, C-II, D-IV
- A-II, B-IV, C-III, D-I
Q64. Which of the following statements is NOT true?
- A data member of a class can be declared as static and is normally used to maintain values common to the entire class.
- A friend function can be invoked like a normal function without the help of any object.
- The scope resolution operator (::) can be overloaded like normal operators.
- 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.
Q80. The light given off by the phosphor during exposure to the electron beam is known as
- Fluorescence
- Phosphorescence
- Persistence
- Retracing