December 2014 - Paper 3

16:  
Consider a triangle represented by A(0, 0), B(1, 1), C(5, 2). The triangle is rotated by 45 degrees about a point P( -1, -1). The co-ordinates of the new triangle obtained after rotation shall be
A.

A'(-1, √2 -1), B'(-1, 2√2 - 1), C'((3/2)√2 - 1, (9/2)√2 - 1)

B.

A'(√2 -1,- 1), B'( 2√2 - 1, -1), C'((3/2)√2 - 1, (9/2)√2 - 1)

C.

A'(-1, √2 -1), B'(2√2 - 1, -1), C'((3/2)√2 - 1, (9/2)√2 - 1)

D.

A'(-1, √2 -1), B'( 2√2 - 1, -1), C'((9/2)√2 - 1, (3/2)√2 - 1)

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



17:  
Match the following :
a. Cavalier Projection              i. The direction of projection is chosen so that there is no foreshortening of lines                                                                     perpendicular to the xy plane.
b. Cabinet Projection              ii. The direction of projection is chosen so that lines perpendicular to the xy planes are                                                            foreshortened by half their lengths.
c. Isometric Projection           iii. The direction of projection makes equal angles with all of the principal axis.
d. Orthographic Projection    iv. Projections are characterized by the fact that the direction of projection is                                                                                 perpendicular to the view plane.
A.

a  b   c  d

i  iii   iv   ii

B.

a  b   c  d

ii  iii   i   iv

C.

a  b   c  d

iv  ii   iii   i

D.

a  b   c  d

i   ii   iii   iv

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



18:  
Consider the following statements S1, S2 and S3 :
S1 : In call-by-value, anything that is passed into a function call is unchanged in the caller's scope when the function returns.
S2: In call-by-reference, a function receives implicit reference to a variable used as argument.
S3: In call-by-reference, caller is unable to see the modified variable used as argument.
A.

S3 and S2 are true

B.

S3 and S1 are true.

C.

S2 and S1 are true.

D.

S1, S2, S3 are true.

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



19:  
How many tokens will be generated by the scanner for the following statement?
x = x * (a+b) - 5;
A.

12

B.

11

C.

10

D.

7

 
 

Option: B

Explanation :

tokens remove white spaces and comments.

x,=,x,*,(,a,+,b,),-,5 = 11

Click on Discuss to view users comments.

Roopavath Jethya said: (4:01pm on Sunday 28th December 2014)
12 why means count all letter . each letter is one token
Rajwant Singh Rao said: (2:40pm on Friday 20th March 2015)
punctuation symbols are also tokens so semicolon is also a token. therefore total tokens will be 12 (i option A). Reference : Aho, Ullman, compilers principles, techniques, and tools, 2nd edition, 2006, page no. 98.

Write your comments here:



20:  

Which of the following statements is not true?

A.

MPI_lsend and MPI_Irecv are non-blocking message passing routines of MPI.

B.

MPI_lssend and MPI_Ibsend are non-blocking message passing routines of MPI.

C.

MPI_Send and MPI_Recv are non-blocking message passing routines of MPI.

D.

MPI_Ssend and MPI_Bsend are blocking message passing routines of MPI.

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here: