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 (June 2024 (Cancelled Exam))

8 questions · answer key at the end · updated 11 Oct 2026
Q1. Which of the following is NOT an object-oriented programming language?
  1. Perl
  2. Python
  3. Smalltalk
  4. SQL Plus
Answer & explanation →
Q21. What is the output of the following C program?
#include <stdio.h>
int main(void) {
  int x, *p;
  x = 30;
  p = x;
  printf("%d", *p);
  return 0;
}
  1. 30
  2. value of x
  3. address of x
  4. Error
Answer & explanation →
Q23. Multiple inheritance is permitted directly in:
A. C++
B. Java
C. Python
D. VB.NET
E. BASIC
Choose the most appropriate answer from the options given below:
  1. A and B Only
  2. A and C Only
  3. B and D Only
  4. More than one of the above
Answer & explanation →
Q28. Which of the following are markup languages?
A. HTML
B. XML
C. DHTML
D. LML
E. PML
Choose the correct answer from the options given below:
  1. B, C, D Only
  2. A, C, D Only
  3. A, C, D, E Only
  4. A, B, C Only
Answer & explanation →
Q35. Arrange the following in the correct order so that they follow a proper run-time environment.
A. Programming statement
B. Compilation
C. Memory allocation
D. Type of variable
E. Memory deallocation
Choose the correct answer from the options given below:
  1. A, B, C, D, E
  2. A, B, D, C, E
  3. B, A, D, C, E
  4. C, D, B, E, A
Answer & explanation →
Q54. Match List I with List II
List IList II
A. UnionI. Virtual Reality
B. FunctionII. Shadow mask
C. Interactive EnvironmentIII. Subroutine
D. Output deviceIV. User-defined data type
  1. A-IV, B-III, C-I, D-II
  2. A-II, B-IV, C-I, D-III
  3. A-IV, B-II, C-III, D-I
  4. A-I, B-III, C-IV, D-II
Answer & explanation →
Q80. Which of the following algorithms are used for line drawing?
A. DDA algorithm
B. Bresenham algorithm
C. Mid-point algorithm
D. Curve algorithm
Choose the most appropriate answer from the options given below:
  1. B and C Only
  2. C and D Only
  3. A and B Only
  4. D and A Only
Answer & explanation →
Q83. The least values of signed and unsigned 8-bit data-type variables would be:
  1. 0, 128
  2. −128, 127
  3. 0, 0
  4. −128, 0
Answer & explanation →

Answer key

  1. 1 – D
  2. 21 – D
  3. 23 – B
  4. 28 – D
  5. 35 – B
  6. 54 – A
  7. 80 – C
  8. 83 – D