Programming Languages and Computer Graphics – Previous Year Questions
229 questions from past UGC NET Paper 2 – Computer Science papers, each with the correct answer. Open any question for its explanation.
- Multiple Inheritance is permitted directly in..... A. C++ B. Java C. Python D. VB.NET E. BASIC
- Match List-I with List-II :
- For line drawing, which of the following algorithms are used ? A. DDA algorithm B. Bresenham algorithm C. Mid point algorithm D. Curve algorithm
- The least values of a signed and unsigned data type variables requiring 8 bits, would be...
- Which of the following statements is TRUE?
- The Hue of a color is related to its:
- Consider the three points P1(1,2,0), P2(3,6,20) and P3(2,4,6) and a view point C(0,0,-10). Choose the correct options. (A) P1 obscure P2, if viewed from C. (B) P2 obscure P1, if viewed from C. (C) P3 does not obscure P1…
- Match List - I with List - II.
- Match List I with List II. List I: A. Bezier curves, B. B-splines, C. Sweep representations, D. Natural objects. List II: I. 3D objects that have translational/rotational symmetry, II. Fractal geometry, III. Bias and te…
- Sutherland Hodgeman method is used on
- What is x in the following program? # include < stdioh> int main () {typedef (* (* arrfptr [3])()) [10]; arrfptr x ; return 0; }
- The clipping process in computer graphics is used for
- Consider the rectangle with vertices (0, 0), (0, 2), (3, 0), (3, 2) . There is scaling of 2 towards x -axis and 3 towards y -axis. The new cordinates of the rectangle are
- Which of the following transforms in 2 dimension is used to resize a 2-dimensional object?
- Given int arr[3][4][2] = {{{2,4},{7,8},{3,4},{5,6}}, {{7,6},{3,4},{5,3},{2,3}}, {{8,9},{7,2},{3,4},{5,1}}}; which of the following can be used to refer to the element 1?
- Which of the following is correct using the constructor? A. string s1; B. string s2 (s1); C. string s3{7}; D. string s4{'a'}; E. string s5{7, 'a'};
- Match List I with List II
- Which of the following is wrong about the data types?
- If a constructor 'Date' is declared explicitly and has to be defined outside the class, which of the Q following is correct?
- Given a vector with Cartesian components (x, y), if scaling is done with the matrix [0.5 0; 0 1.5], which of the following are true? 1. Decreases the vertical by three halves 2. Increases the vertical by three halves 3.…
- Match the List-I and List-II d.To gain access to IV. to use explicit differing instances for casting derived classes through base we have Choose the correct answer from the options Q given below:
- In what sequence the initialization, testing and execution of body is done while using do-while loop? I. Commenting II. Execution of the body III. Initialisation IV. Testing the condition Choose the correct answer from…
- Assertion A: A Raster scan device is a CRT graphic device and can use a television monitor for display Reason R: In Raster scan display the picture is composed of Q a series of dots. These dots are traced out as a serie…
- The hidden surface removal problem with a minimal 3D pipeline can be solved with
- The transformation [x̄ ȳ z̄ w̄]ᵀ = [a1 b1 c1 d1; a2 b2 c2 d2; a3 b3 c3 d3; e f g h] · [x y z 1]ᵀ is called
- Of the following, which is NOT a logical error?
- Which statement is false?
- What does the following C function f() return? int f(unsigned int N) { unsigned int counter = 0; while (N > 0) { counter += N & 1; N = N >> 1; } return counter == 1; }
- Consider the following recursive Java function: public static String F(int N) { if (N <= 0) return "-"; return F(N - 3) + N + F(N - 2) + N; } The value of F(5) is:
- Match List I (programming terms) with List II (meaning). List I: A. JNDI, B. RMI, C. JDK, D. JRE. List II: I. Runtime support for running Java programs, II. The API in support of naming and directory services, III. The…