UGC NET · PAPER 2
UGC NET Paper 2 Computer Science – Unit 3: Programming Languages and Computer Graphics PYQ (June 2024 (Cancelled Exam))
Q1. Which of the following is NOT an object-oriented programming language?
- Perl
- Python
- Smalltalk
- SQL Plus
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;
}- 30
- value of x
- address of x
- Error
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:
A. C++
B. Java
C. Python
D. VB.NET
E. BASIC
Choose the most appropriate answer from the options given below:
- A and B Only
- A and C Only
- B and D Only
- More than one of the above
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:
A. HTML
B. XML
C. DHTML
D. LML
E. PML
Choose the correct answer from the options given below:
- B, C, D Only
- A, C, D Only
- A, C, D, E Only
- A, B, C Only
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:
A. Programming statement
B. Compilation
C. Memory allocation
D. Type of variable
E. Memory deallocation
Choose the correct answer from the options given below:
- A, B, C, D, E
- A, B, D, C, E
- B, A, D, C, E
- C, D, B, E, A
Q54. Match List I with List II
| List I | List II |
|---|---|
| A. Union | I. Virtual Reality |
| B. Function | II. Shadow mask |
| C. Interactive Environment | III. Subroutine |
| D. Output device | IV. User-defined data type |
- A-IV, B-III, C-I, D-II
- A-II, B-IV, C-I, D-III
- A-IV, B-II, C-III, D-I
- A-I, B-III, C-IV, D-II
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:
A. DDA algorithm
B. Bresenham algorithm
C. Mid-point algorithm
D. Curve algorithm
Choose the most appropriate answer from the options given below:
- B and C Only
- C and D Only
- A and B Only
- D and A Only
Q83. The least values of signed and unsigned 8-bit data-type variables would be:
- 0, 128
- −128, 127
- 0, 0
- −128, 0