Unit 2: Computer Graphics And Gaming · B: Generalized Bresenham`s Algorithm C: DDA Line Algorithm...

12
Unit 2: Computer Graphics And Gaming SE Computer (PAT: SE-2012) SNJB’S KBJ COE, Chandwad. Question 1: A line connecting the points (1,1) and (5,3) is to be drawn, using DDA algorithm.Find the value of x and y increments A: X-increments = 1; y-increments =1 B: X-increments = 0.5; y-increments =1 C: X-increments = 1; y-increments =0.5 D: None of above Correct Answer: C Question 2: The method which used either delta x or delta y, whichever is larger, is chosen as one raster unit to draw the line .the algorithm is called? A: Bresenham`s Line Algor`thm B: Generalized Bresenham`s Algorithm C: DDA Line Algorithm D: Midpoint Line Algorithm Correct Answer: C Question 3: The basic principle of Bresenham`s line algorithm is__? A: To select the optimum raster locations to represent a straight line B: To select either Δx or Δy, whichever is larger, is chosen as one raster unit C: We find on which side of the line the midpoint lies D: Both a and b Correct Answer: A Question 4: Line produced by moving pen is __ at the end points than the line produced by the pixel replication? A: Thin B: Straight C: Thicker D: Both a and b Correct Answer: C Question 5: Expansion of DDA is A: Device Display Analyzer. B: Digital Differential Analyzer C: Digital Device Analyzer D: Digital Display Analyzer

Transcript of Unit 2: Computer Graphics And Gaming · B: Generalized Bresenham`s Algorithm C: DDA Line Algorithm...

Page 1: Unit 2: Computer Graphics And Gaming · B: Generalized Bresenham`s Algorithm C: DDA Line Algorithm D: Midpoint Line Algorithm Correct Answer: C Question 3: The basic principle of

Unit 2: Computer Graphics And GamingSE Computer (PAT: SE-2012)SNJB’S KBJ COE, Chandwad.

Question 1: A line connecting the points (1,1) and (5,3) is to be drawn, using DDAalgorithm.Find the value of x and y incrementsA: X-increments = 1; y-increments =1B: X-increments = 0.5; y-increments =1C: X-increments = 1; y-increments =0.5D: None of aboveCorrect Answer: C

Question 2: The method which used either delta x or delta y, whichever is larger, is chosen asone raster unit to draw the line .the algorithm is called?A: Bresenham`s Line Algor`thmB: Generalized Bresenham`s AlgorithmC: DDA Line AlgorithmD: Midpoint Line AlgorithmCorrect Answer: C

Question 3: The basic principle of Bresenham`s line algorithm is__?A: To select the optimum raster locations to represent a straight lineB: To select either Δx or Δy, whichever is larger, is chosen as one raster unitC: We find on which side of the line the midpoint liesD: Both a and bCorrect Answer: A

Question 4: Line produced by moving pen is __ at the end points than the line produced by thepixel replication?A: ThinB: StraightC: ThickerD: Both a and bCorrect Answer: C

Question 5: Expansion of DDA isA: Device Display Analyzer.B: Digital Differential AnalyzerC: Digital Device AnalyzerD: Digital Display Analyzer

Page 2: Unit 2: Computer Graphics And Gaming · B: Generalized Bresenham`s Algorithm C: DDA Line Algorithm D: Midpoint Line Algorithm Correct Answer: C Question 3: The basic principle of

Correct Answer: B

Question 6: The center of display screen is computed asA: X max ,y maxB: Xmax/2,ymax/2C: Xmax/3,ymax/3D: None of theseCorrect Answer: B

Question 7: BSP Stands for________________.A: Bit Space-Partitioning.B: Binary Space- Partitioning.C: Bit Space- positioning.D: Binary Space- Positioning.Correct Answer: B

Question 8: A standard method for fitting a function to a set of data points is calledas____________ algorithm.A: Fitting.B: straight-lineC: least-squaresD: DDACorrect Answer: C

Question 9: After refreshing each scan line is called the __________.A: vertical retrace.B: horizontal retrace.C: interlaceD: buffer line.Correct Answer: B

Question 10: Which of the following algorithm follows "Error Term"?A: Brakeman's Line Drawing AlgorithmB: Bresenham's Circle Drawing AlgorithmC: DDA Line AlgorithmD: Mid-point Circle Drawing AlgorithmCorrect Answer: A

Question 11: In Bresenham's line generation algorithm, the initial value of the decisionparameter as p0 = __________, where slope MOD (m) < 1.

Page 3: Unit 2: Computer Graphics And Gaming · B: Generalized Bresenham`s Algorithm C: DDA Line Algorithm D: Midpoint Line Algorithm Correct Answer: C Question 3: The basic principle of

A: 2Δy – ΔxB: 2Δy – 2ΔxC: Δx – ΔyD: None of the aboveCorrect Answer: A

Question 12: If a line whose end point is (10, 12) and start point is (20, 20), then slope m =?A: 1.2B: 0.8C: -0.4D: None of the aboveCorrect Answer: B

Question 13: A particular font and associated styles can be set using the functionA: setTextfont (tf)B: setfont (tf)C: setFont (tf)D: SetTextFont()Correct Answer: A

Question 14: A line connecting the points (1,1) and (5,3) is to be drawn, using DDAalgorithm.Find the value of x and y incrementsA: x-increments = 1; y-increments =1B: x-increments = 0.5; y-increments =1C: x-increments = 1; y-increments =0.5D: None of aboveCorrect Answer: C

Question 15: We can draw the circle using ____________________A: PentaneB: HexanesC: TridentD: OctantsCorrect Answer: D

Question 16: Integer arithmetic only increased the speed of algorithms. Which of the followingline algorithms used integer only arithmetic to rasterize lines?A: Bresenham’s Line AlgorithmB: The DDA Line AlgorithmC: The FFTW Line Algorithm

Page 4: Unit 2: Computer Graphics And Gaming · B: Generalized Bresenham`s Algorithm C: DDA Line Algorithm D: Midpoint Line Algorithm Correct Answer: C Question 3: The basic principle of

D: noneCorrect Answer: A

Question 17: Which one used a “decision parameter” to solve for how to change the secondarypixel?A: Bresenham’s Line AlgorithmB: The DDA Line AlgorithmC: The FFTW Line AlgorithmD: noneCorrect Answer: A

Question 18: The distortion of information due to low-frequency sampling is known asA: SamplingB: AliasingC: Inquiry functionD: Anti-aliasingCorrect Answer: B

Question 19: Another method for determining the percentage of pixel area within a boundary isA: Mid-print algorithmB: Mid-point algorithmC: Pixel intensityD: By using inquiry functionsCorrect Answer: B

Question 20: The technique that is more accurate method for anti-aliasing lines isA: FilteringB: Area-samplingC: Super-samplingD: NoneCorrect Answer: A

Question 21: For a 45% line, the line path is________ on the polygon area.A: HorizontalB: CenteredC: VerticalD: Any of theseCorrect Answer: B

Page 5: Unit 2: Computer Graphics And Gaming · B: Generalized Bresenham`s Algorithm C: DDA Line Algorithm D: Midpoint Line Algorithm Correct Answer: C Question 3: The basic principle of

Question 22: If we want to use more intensity levels to anti-alias the line, thenA: We increase the number of sampling positionsB: We decrease the number of sampling positionsC: We increase the number of pixelsD: Only cCorrect Answer: A

Question 23: Raster objects can also be anti-aliased by shifting the display location of pixelareas is known asA: Super-samplingB: Pixel shapingC: Pixel phasingD: Any of theseCorrect Answer: C

Question 24: Area-sampling is also known asA: Pre-filteringB: Pixel phasingC: Post-filteringD: Anti-aliasingCorrect Answer: A

Question 25: Anti-aliasing by computing overlap areas is referred to asA: Area-samplingB: Super-samplingC: Pixel phasingD: Only bCorrect Answer: A

Question 26: The sampling of object characteristic at a high resolution and displaying the resultat a lower resolution is called?A: Super-samplingB: Post-filteringC: Anti-aliasingD: a or bCorrect Answer: D

Question 27: Slope equation of line is ________A: y=mx+bB: Dx/Dy

Page 6: Unit 2: Computer Graphics And Gaming · B: Generalized Bresenham`s Algorithm C: DDA Line Algorithm D: Midpoint Line Algorithm Correct Answer: C Question 3: The basic principle of

C: y=m+bD: y=mb+xCorrect Answer: A

Question 28: The equation of slope is _____A: Dx/DyB: X2-x1/y2-y1C: Dy/DxD: All of theseCorrect Answer: C

Question 29: The basic attributes of a straight line segment areA: TypeB: WidthC: ColorD: All of theseCorrect Answer: D

Question 30: A dashed line could be displayed by generating_________.A: Inter dash spacingB: Very short dashesC: Botha a and bD: A or BCorrect Answer: A

Question 31: A dotted line can be displayed by generatingA: Very short dashes with spacing equal to and greater than dash sizeB: Very long dashes with spacing equal to or greater than dash sizeC: Very short dashes with spacing equal to and greater than dash sizeD: DotsCorrect Answer: C

Question 32: Which of the following is not a line-type?A: Dashed lineB: Dark lineC: Dotted lineD: Thick lineCorrect Answer: B

Page 7: Unit 2: Computer Graphics And Gaming · B: Generalized Bresenham`s Algorithm C: DDA Line Algorithm D: Midpoint Line Algorithm Correct Answer: C Question 3: The basic principle of

Question 33: In an application program, to set line-type attributes the following statement isused.A: SetLinetype(lt)B: setLinetype(lt)C: SETLINETYPE(lt)D: SETLINE()Correct Answer: B

Question 34: To set the line-width attribute the following command is used.A: SETLINEWIDTHSCALEFACTOR (lw)B: Setlinewidth()C: Setlinewidthscalefacto (lw)D: setLineWidthScaleFactor (lw)Correct Answer: D

Question 35: The parameter to “setLineWidthScaleFactor (lw) “function specifies?A: Standard widthB: Relative width of the lineC: Thickness of the lineD: All the aboveCorrect Answer: B

Question 36: We can adjust the shape of the line ends to give them a better appearance by usingA: Line spacingB: More dotsC: Line capsD: Round capCorrect Answer: C

Question 37: Thick line drawn withA: Butt capsB: Round capsC: Projecting square capsD: All of the mentionedCorrect Answer: D

Question 38: We set the line-color value in PHIGS with the functionA: setPolylineColorIndex (lc)B: setline Color()C: SETPOLYLINECOLORINDEX (lc)

Page 8: Unit 2: Computer Graphics And Gaming · B: Generalized Bresenham`s Algorithm C: DDA Line Algorithm D: Midpoint Line Algorithm Correct Answer: C Question 3: The basic principle of

D: Only bCorrect Answer: A

Question 39: If the angle between 2 connected line segments is very small then ________ cangenerate a long spike that distorts the appearance of the polyline.A: Miter joinB: Round joinC: Bevel joinD: NoneCorrect Answer: A

Question 40: A line drawn in the background color isA: VisibleB: InvisibleC: Visible or InvisibleD: DarkCorrect Answer: B

Question 41: To avoid losing information from periodic objects we needA: Sampling frequency twiceB: Nyquist sampling frequencyC: Both a or bD: Neither a nor bCorrect Answer: C

Question 42: Nyquist sampling frequency formula isA: fs=2fmaxB: fs=2fminC: fs=fmaxD: fs=fminCorrect Answer: A

Question 43: A heavy line on a video monitor could be displayed asA: Adjacent perpendicular linesB: Adjacent parallel linesC: Both a and bD: Neither a nor bCorrect Answer: B

Question 44: Thick line drawn with

Page 9: Unit 2: Computer Graphics And Gaming · B: Generalized Bresenham`s Algorithm C: DDA Line Algorithm D: Midpoint Line Algorithm Correct Answer: C Question 3: The basic principle of

A: Butt capsB: Round capsC: Projecting square capsD: All of the mentionedCorrect Answer: D

Question 45: The Cartesian slope-intercept equation for a straight line isA: y = m.x + bB: y = b.x + mC: y = x.x + mD: y = b + m.mCorrect Answer: A

Question 46: For lines with slope magnitude |m|<1, ?x can be_________A: A set corresponding vertical deflectionB: A set proportional to a small horizontal deflection voltageC: Only aD: All of theseCorrect Answer: B

Question 47: On raster system, lines are plotted withA: LinesB: DotsC: PixelsD: NoneCorrect Answer: C

Question 48: Which algorithm is a faster method for calculating pixel positions?A: Bresenham’s line algorithmB: Parallel line algorithmC: Mid-point algorithmD: DDA line algorithmCorrect Answer: D

Question 49: The disadvantage of line DDA isA: Time consumingB: FasterC: Neither a nor bD: NoneCorrect Answer: A

Page 10: Unit 2: Computer Graphics And Gaming · B: Generalized Bresenham`s Algorithm C: DDA Line Algorithm D: Midpoint Line Algorithm Correct Answer: C Question 3: The basic principle of

Question 50: An accurate and efficient raster line-generating algorithm isA: DDA algorithmB: Mid-point algorithmC: Parallel line algorithmD: Bresenham’s line algorithmCorrect Answer: D

Question 51: In Bresenham’s line algorithm, if the distances d1 < d2 then decision parameter Pkis______A: PositiveB: EqualC: NegativeD: Option a or cCorrect Answer: C

Question 52: Which is the best line algorithm to balance the processing load among theprocessers?A: Parallel line algorithmB: DDA line algorithmC: Bresenham’s line algorithmD: Position Bresenham’s line algorithmCorrect Answer: A

Question 53: The algorithm which uses multiple processors to calculate pixel positions isA: Midpoint algorithmB: Parallel line algorithmC: Bresenham’s line algorithmD: All the aboveCorrect Answer: B

Question 54: Coordinate references in the polyline function are stated asA: Relative coordinate valuesB: Absolute coordinate valuesC: Current positionD: Real coordinate valuesCorrect Answer: B

Question 55: A line can be represented byA: One point

Page 11: Unit 2: Computer Graphics And Gaming · B: Generalized Bresenham`s Algorithm C: DDA Line Algorithm D: Midpoint Line Algorithm Correct Answer: C Question 3: The basic principle of

B: Two pointsC: Three pointsD: Four pointsCorrect Answer: B

Question 56: Bresanham circle algorithm uses the approach ofA: MidpointB: PointC: LineD: None of theseCorrect Answer: A

Question 57: The side effect of scan conversion areA: AliasingB: Anti aliasingC: Both a & bD: None of theseCorrect Answer: A

Question 58: The process of reducing aliasing is calledA: ResolutionB: Anti aliasingC: SamplingD: None of theseCorrect Answer: B

Question 59: Two basic technique for anti aliasing in ray tracing algorithm areA: Pixel sampling and super samplingB: Adaptive sampling and super samplingC: Pixel sampling and super samplingD: None of theseCorrect Answer: B

Question 60: The problem of aliasing areA: StaircaseB: Unequal brightnessC: Picket fence problemD: All of theseCorrect Answer: D

Page 12: Unit 2: Computer Graphics And Gaming · B: Generalized Bresenham`s Algorithm C: DDA Line Algorithm D: Midpoint Line Algorithm Correct Answer: C Question 3: The basic principle of

Question 61: The technique to minimizing aliasing areA: Increased no of resolutionB: Modify pixel intensitiesC: Super samplingD: All of theseCorrect Answer: D