Loading

Quipoin Menu

Learn • Practice • Grow

html / Transformation in Canvas
mcq
Direction: Choose the correct option

Q1.

Which Canvas method translates (moves) the origin?
A. shift(x,y)
B. translate(x,y)
C. move(x,y)
D. transfer(x,y)
Direction: Choose the correct option

Q2.

ctx.translate(50, 50);
ctx.fillRect(0, 0, 100, 100);
Where does the rectangle draw?
A. At (0,0) but shifted
B. At (0,0) absolute
C. At (50,50) from current position
D. At (50,50) relative to original origin
Direction: Choose the correct option

Q3.

Which method rotates the canvas?
A. twist(angle)
B. turn(angle)
C. spin(angle)
D. rotate(angle)
Direction: Choose the correct option

Q4.

How do you scale drawings in canvas?
A. scale(x,y)
B. zoom(x,y)
C. resize(x,y)
D. size(x,y)
Direction: Choose the correct option

Q5.

What method saves the current canvas state?
A. save()
B. backup()
C. store()
D. push()