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 (22 June 2026)

8 questions · answer key at the end · updated 1 Oct 2026
Q62. Match the LIST-I with LIST-II
LIST-ILIST-II
A. long signed intI. %lf
B. doubleII. %Lf
C. long doubleIII. %c
D. unsigned characterIV. %ld
Choose the correct answer from the options given below:
  1. A-II, B-I, C-IV, D-III
  2. A-IV, B-I, C-II, D-III
  3. A-III, B-I, C-II, D-IV
  4. A-I, B-II, C-IV, D-III
Answer & explanation →
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:
  1. A, B, C & D only
  2. A, C & D only
  3. B, C & D only
  4. C, D & E only
Answer & explanation →
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:
  1. B, A, C, D
  2. A, B, D, C
  3. D, C, B, A
  4. A, B, C, D
Answer & explanation →
Q76. Which of the following would be the value of z for the C program code?
x = 16;
y = 4;
z = x >> y;
  1. 5
  2. 4
  3. 2
  4. 1
Answer & explanation →
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;
}
  1. 0 1 2 3 4 5 6 7 8 9
  2. 1 2 3 4 5 6 7 8
  3. 1 3 5 7 9
  4. 2 4 6 8
Answer & explanation →
Q134. Match the LIST-I with LIST-II.
LIST-ILIST-II
A. Pivot pointI. Reflection
B. Fixed pointII. Shear
C. Mirror imageIII. Rotation
D. DistortionIV. Scaling
Choose the correct answer from the options given below:
  1. A-III, B-IV, C-I, D-II
  2. A-III, B-IV, C-II, D-I
  3. A-IV, B-III, C-II, D-I
  4. A-I, B-II, C-III, D-IV
Answer & explanation →
Q136. The number of pixel columns divided by the number of scan lines that can be displayed by the system, is called
  1. Pixmap
  2. Bitmap
  3. Aspect ratio
  4. Depth
Answer & explanation →
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:
  1. A, D only
  2. A, C only
  3. B, C only
  4. B, D only
Answer & explanation →

Answer key

  1. 62 – B
  2. 69 – B
  3. 72 – D
  4. 76 – D
  5. 133 – C
  6. 134 – A
  7. 136 – C
  8. 139 – C