Filters
Question type

Study Flashcards

Which mouse event occurs when the user presses and releases the mouse button?


A) MOUSE_PRESSED
B) MOUSE_RELEASED
C) MOUSE_CLICKED
D) MOUSE_DRAGGED

Correct Answer

verifed

verified

A polygon, created by the Polygon class is, by default, filled with the color black.

Correct Answer

verifed

verified

What does the following code snippet do? Circle myCircle = new Circle(50, 50, 25) ; TranslateTransition rtrans = New TranslateTransition(new Duration(5000) , myCircle) ;


A) It creates a circle with center point (50, 25) , radius = 50, and duration = 5000 seconds.
B) It creates a circle with center point (50, 50) , radius = 25, and duration = 5 seconds.
C) It creates a circle with center point (25, 50) , radius = 25, and duration = 5 seconds.
D) It creates a circle with center point (50, 25) , radius = 50, and duration = 50 seconds.

Correct Answer

verifed

verified

Which class is used to move a node from one position on the screen to another?


A) AnimationTransition
B) MoveTransition
C) RotateTransition
D) TranslateTransition

Correct Answer

verifed

verified

D

The Rotate class creates a rotating animation.

Correct Answer

verifed

verified

To create a circle, you need to specify only the X and Y coordinates of the center point.

Correct Answer

verifed

verified

Given a window that is 640 (width) by 480 (height) , which of the following represents the lowest position on the left side?


A) (639, 0)
B) (0, 639)
C) (0, 479)
D) (479, 0)

Correct Answer

verifed

verified

Select all that apply. Which of the following are transition classes?


A) FadeTransition
B) StrokeTransition
C) RotateTransition
D) RunTransition

Correct Answer

verifed

verified

Select all that apply. Which of the following classes are used to play videos?


A) MediaView
B) Media
C) MediaPlayer
D) VideoPlayer

Correct Answer

verifed

verified

The setInterpolator method allows you to specify how a transition begins and ends.

Correct Answer

verifed

verified

Which effect class do you use to increase an image's brightness?


A) Glow
B) Reflection
C) ColorAdjust
D) SepiaTone

Correct Answer

verifed

verified

All the transition classes inherit a method named __________ which allows you to specify how the animation begins and ends.


A) setFromTo
B) setInterpolator
C) setInterpreter
D) setStartEnd

Correct Answer

verifed

verified

Since the Node class's setEffect method only accepts one effect object as an argument, it is impossible to combine effects.

Correct Answer

verifed

verified

Select all that apply. Which of the following will cause a counterclockwise rotation of a RotateTransition object, rtrans?


A) rtrans.setFromAngle(60.0) ;
Rtrans.setByAngle(15.0) ;
B) rtrans.setFromAngle(-60.0) ;
Rtrans.setByAngle(15.0) ;
C) rtrans.setFromAngle(60.0) ;
Rtrans.setByAngle(-15.0) ;
D) rtrans.setAngle(60.0, 15.0) ;

Correct Answer

verifed

verified

Which transition class causes a node to become larger or smaller?


A) FillTransition
B) SizeTransition
C) ScaleTransition
D) TranslateTransition

Correct Answer

verifed

verified

Which of the following statements draws the string "Love to animate!" starting at coordinates (200, 50) ?


A) Text myText = new myText(200, 50, "Love to animate!") ;
B) Text myText = new Text(50.0, 200.0, "Love to animate!") ;
C) Text myWords = new Text(200.0, 50.0, "Love to animate!") ;
D) Text Words = new Words(200, 50, "Love to animate!") ;

Correct Answer

verifed

verified

Which of the following code snippets creates a Line and uses a RotateTransition object to animate it for seven seconds?


A) Line myLine = new Line(25, 50, 100, 50) ;
RotateTransition rtrans =
New RotateTransition(new Duration(7000) , myLine) ;
B) Line myLine = new Line(25, 50, 100, 50) ;
RotateTransition rtrans =
New RotateTransition(new Duration(7) , myLine) ;
C) Line myLine = new Line(25, 50, 100, 50) ;
RotateTransition rtrans =
New Duration(7000) , myLine;
D) Line myLine = new Line(25, 50) ;
RotateTransition rtrans =
New RotateTransition(new Duration(7000) , Line) ;

Correct Answer

verifed

verified

Select all that apply. Which of the following are key events?


A) when a user rolls a mouse over the monitor
B) when a user presses a key
C) when a user presses and releases a key that produces a Unicode character
D) when a user releases a key

Correct Answer

verifed

verified

B, C, D

Select all that apply. Which of the following are subclasses of the Animation class and the Transition class?


A) StrokeTransition
B) TextFillTransition
C) ReverseTransition
D) ScaleTransition

Correct Answer

verifed

verified

A, D

The following statement will draw the string "Welcome!" starting at the top left corner of the screen. Text welcomeText = new Text(0, 0, "Welcome!");

Correct Answer

verifed

verified

Showing 1 - 20 of 40

Related Exams

Show Answer