All mock tests are FREE till 31 December — register to save your progress
Paper 2 CS · UNIT 03 · MOCK TEST

Programming Languages and Computer Graphics — Mock Test 7

25 questions · about 30 minutes. Press End Mock any time to see your score and the correct answers.

0 / 25 answered 00:00
Q1.

Multiple Inheritance is permitted directly in.....

A. C++

B. Java

C. Python

D. VB.NET

E. BASIC

Q2.

Match List-I with List-II :

Figure
Q3.

For line drawing, which of the following algorithms are used ?

A. DDA algorithm

B. Bresenham algorithm

C. Mid point algorithm

D. Curve algorithm

Q4.

The least values of a signed and unsigned data type variables requiring 8 bits, would be...

Q5.

Which of the following statements is TRUE?

Q6.

The Hue of a color is related to its:

Q7.

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 if viewed from C.

(D) P2 does not obscure P3 if viewed from C.

Q8.

Match List - I with List - II.

Figure
Q9.

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 tension, IV. Painting, drawing, CAD.

Figure
Q10.

Sutherland Hodgeman method is used on

Q11.

What is x in the following program? # include < stdioh>

int main ()
{typedef (* (* arrfptr [3])()) [10];
arrfptr x ;
return 0;
}
Q12.

The clipping process in computer graphics is used for

Q13.

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

Q14.

Which of the following transforms in 2 dimension is used to resize a 2-dimensional object?

Q15.

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?

Q16.

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'};
Q17.

Match List I with List II

Figure
Q18.

Which of the following is wrong about the data types?

Q19.

If a constructor 'Date' is declared explicitly and has to be defined outside the class, which of the Q following is correct?

Q20.

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. Doubles the horizontal 4. Halves the horizontal

Q21.

Match the List-I and List-II

Figure

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:

Q22.

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 the following

Q23.

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 series of horizontal lines. Television works in a similar fashion. In the light of the above statements, choose the correct answer from the options given below:

Q24.

The hidden surface removal problem with a minimal 3D pipeline can be solved with

Q25.

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