UGC NET · PAPER 2
UGC NET Paper 2 Computer Science – Unit 3: Programming Languages and Computer Graphics PYQ (22 June 2026)
Q62. Match the LIST-I with LIST-II
Choose the correct answer from the options given below:
| LIST-I | LIST-II |
|---|---|
| A. long signed int | I. %lf |
| B. double | II. %Lf |
| C. long double | III. %c |
| D. unsigned character | IV. %ld |
- A-II, B-I, C-IV, D-III
- A-IV, B-I, C-II, D-III
- A-III, B-I, C-II, D-IV
- A-I, B-II, C-IV, D-III
Q69. Which of the following are correct about constructors in C++?
A. They have the same name as the class.
B. They can return values.
C. They are called automatically when an object is created.
D. They can be overloaded.
E. They can be inherited.
Choose the correct answer from the options given below:
A. They have the same name as the class.
B. They can return values.
C. They are called automatically when an object is created.
D. They can be overloaded.
E. They can be inherited.
Choose the correct answer from the options given below:
- A, B, C & D only
- A, C & D only
- B, C & D only
- C, D & E only
Q72. Arrange the following data types in non-decreasing order according to the length of their representation in C++.
A. char
B. int
C. float
D. double
Choose the correct answer from the options given below:
A. char
B. int
C. float
D. double
Choose the correct answer from the options given below:
- B, A, C, D
- A, B, D, C
- D, C, B, A
- A, B, C, D
Q76. Which of the following would be the value of z for the C program code?
x = 16;
y = 4;
z = x >> y;
x = 16;
y = 4;
z = x >> y;
- 5
- 4
- 2
- 1
Q133. What will be the output of the following program?
#include<stdio.h>
int main()
{ int i;
for (i = 0; i++<10; )
printf("%d", i++);
return 0;
}- 0 1 2 3 4 5 6 7 8 9
- 1 2 3 4 5 6 7 8
- 1 3 5 7 9
- 2 4 6 8
Q134. Match the LIST-I with LIST-II.
Choose the correct answer from the options given below:
| LIST-I | LIST-II |
|---|---|
| A. Pivot point | I. Reflection |
| B. Fixed point | II. Shear |
| C. Mirror image | III. Rotation |
| D. Distortion | IV. Scaling |
- A-III, B-IV, C-I, D-II
- A-III, B-IV, C-II, D-I
- A-IV, B-III, C-II, D-I
- A-I, B-II, C-III, D-IV
Q136. The number of pixel columns divided by the number of scan lines that can be displayed by the system, is called
- Pixmap
- Bitmap
- Aspect ratio
- Depth
Q139. The above figure shows a triangle at an original position (vertices labelled 2, 1, 3) to the left of the y-axis, and the same triangle, filled/hatched, at a reflected position (vertices labelled 2, 1, 3) to the right of the y-axis, mirrored about the vertical axis.
A. Reflection of object about x axis.
B. Reflection of object about y axis.
C. Reflection of object about x = 0
D. Reflection of object about y = 0
Choose the correct answer from the options given below:
A. Reflection of object about x axis.
B. Reflection of object about y axis.
C. Reflection of object about x = 0
D. Reflection of object about y = 0
Choose the correct answer from the options given below:
- A, D only
- A, C only
- B, C only
- B, D only