Question: g.drawLine(a, b, c, d); This statement is used to: a. Draw line start at point(a, d) and end at point(b, c). b. Draw line start

  1. g.drawLine(a, b, c, d); This statement is used to:

    a.

    Draw line start at point(a, d) and end at point(b, c).

    b.

    Draw line start at point (c, d) and end at point (a, b).

    c.

    Draw line start at point (a, c) and end at point (b, d).

    d.

    Draw line start at point (a, b) and end at point (c, d).

1

2

  1. g2d.translate(40, -70); The statement is used to:

    a.

    Translate the point by 40 in y-direction and -70 in x-direction.

    b.

    Translate the point by 40 in x-direction and -70 in x-direction.

    c.

    Translate the point by 40 in y-direction and -70 in y-direction.

    d.

    Translate the point by 40 in x-direction and -70 in y-direction.

1

3

  1. g2d.rotate(Math.PI/2); The statement is used to:

    a.

    Translate the object.

    b.

    Rotate the object by 90 degrees.

    c.

    Compute difference of two areas.

    d.

    Rotate the object by 180 degrees.

1

4

  1. g2d.drawString("MyPoint",a ,b); The statement is used to:

    a.

    Draw string MyPoint at (a, b) point.

    b.

    Draw string a at (a, b) point.

    c.

    Draw a rectangle at (a, b) point.

    d.

    Draw a circle at (a, b) point.

1

5

  1. x.subtract(y); The area after executing this statement is:

    a.

    Area y with intersection of x, y.

    b.

    Area x only without intersection of x, y.

    c.

    Area x, area y and intersection of x, y.

    d.

    Area y only without intersection of x, y.

1

6

  1. The method that compute the symmetric difference of two areas is called

    a.

    Area1. subtract(Area2);

    b.

    Area1. intersect(Area2);

    c.

    Area1. exclusiveOr(Area2);

    d.

    Area1.add(Area2);

1

7

  1. setVisible(true); The statement is not used to:

    a.

    Shows the graphics in the object f

    b.

    Set size of graphics in object f.

    c.

    Hides the graphics in the object f

    d.

    Shows/hides the graphics in the object f

1

8

  1. g2d.setRenderingHint(x,y); The statement is used to

    a.

    Draw a circle.

    b.

    Draw a rectangle.

    c.

    Draw a nice line with more quality.

    d.

    Fill a rectangle.

1

9

  1. BasicStroke bs = new BasicStroke(2.0f);

    g2d.setStroke(bs);

    g2d.drawLine(30,50,30,250);

    This code segment is used to:

    a.

    Draw a line with stroke thickness of 1.0 (pixels)

    b.

    Draw a line with stroke thickness of 4.0 (pixels)

    c.

    Draw a line with stroke thickness of 2.0 (pixels)

    d.

    Draw a line with stroke thickness of 3.0 (pixels)

1

10

  1. Ellipse2D.Double circle4 = circleDouble(x,y,z); The statement is used to:

    a.

    Generate a circle, start point at(x,y) with radius of x.

    b.

    Generate a circle, start point at(x,z) with radius of y.

    c.

    Generate a circle, start point at(x,y) with radius of z.

    d.

    Generate a rectangle, start point at(x,y).

1

11

  1. Given a triangle with corner coordinates (0, 0), (2, 0) and (3, 3). Rotate the triangle by 90 degree anticlockwise direction and find out the new coordinates:

    a.

    (0, 0), (-2, 0), and (2, 3)

    b.

    (0, 0), (0, 2), and (-3, 3)

    c.

    (0, 0), (0, -2), and (-3, -3)

    d.

    (0, 0), (2, 0), and (3, -3)

1

12

  1. Sub-field of computer science which involves display, manipulation and storage of picture

    a.

    Computer Network

    b.

    Computer Programming

    c.

    Computer Security

    d.

    Computer Graphics

1

13

  1. In computer graphics type, user is given control over the image by providing an input device that takes the user request to the computer

    a.

    Passive

    b.

    Interactive

    c.

    Non-interactive

    d.

    Art

1

14

  1. A sequence of line where the following line starts where the previous one ends is called

    a.

    Polyline

    b.

    Point

    c.

    Line

    d.

    Polygon

15

  1. In these systems, the electron beam directed only to the parts of the screen where a picture is to be drawn

    a.

    Raster Scan Display.

    b.

    Accelerating Systems.

    c.

    Random Scan System.

    d.

    Cathode Ray Tube.

16

  1. A block of contiguous memory that stores the contents of an image (to be displaced) pixel by pixel

    a.

    FrameBuffer

    b.

    Image Scanner

    c.

    Pixel

    d.

    Voice System

17

  1. A positively charged which attracts the negatively charged electrons and causes them to converge towards center of the screen

    a.

    Connector pins

    b.

    Anode

    c.

    Control grid

    d.

    Cathode

18

  1. Given a line object with coordinate points: A(5, 9), B(10, 5). Apply the scaling parameter 0.2 towards X axis and 2 towards Y axis and obtain the new coordinates of the object as

    a.

    (5, 9) and (10, 5)

    b.

    (10, 1.8) and (20, 1)

    c.

    (5.2, 11) and (10.2, 7)

    d.

    (1, 18) and (2, 10)

19

  1. The resultant line after translate the line with coordinate points: a (1, 2), and b (4,7) by 4 in x-direction and 8 in y-direction

    a.

    (5, 10) and (8, 15).

    b.

    (6, 11) and (9, 14).

    c.

    (4, 8) and (16, 56).

    d.

    (9, 6) and (12, 11).

20

  1. The points of a line are given as (3, 6) and (4, 2). The points after reflecting the triangle around x-axis are

    a.

    (3, -6) and (-4, 2)

    b.

    (3, -6) and (4, -2)

    c.

    (-3, 6) and (-4, 2)

    d.

    (-3, 6) and (4, -2)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!