Exam 14: Java-Fx: Graphics, Effects, and Media

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

JavaFX provides transition classes that allow the creation of animations by causing a node to change, over time, from one state to another.

Free
(True/False)
4.9/5
(35)
Correct Answer:
Verified

True

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

Free
(True/False)
4.8/5
(37)
Correct Answer:
Verified

True

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

Free
(Multiple Choice)
4.9/5
(35)
Correct Answer:
Verified

A, D

What does the following code snippet do when the animation is played, given that imageView has been created? FadeTransition ftrans = new FadeTransition (new Duration(5000), imageView); Ftrans.setFromValue(1.0); Ftrans.setToValue(0.5); Ftrans.play():

(Multiple Choice)
4.9/5
(33)

Select all that apply. Which of the following are special effects that can be applied to nodes in a scene graph?

(Multiple Choice)
4.8/5
(34)

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

(True/False)
5.0/5
(36)

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

(Multiple Choice)
4.7/5
(44)

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

(Multiple Choice)
5.0/5
(41)

Select all that apply. Which of the following classes are used to play an audio file?

(Multiple Choice)
4.9/5
(36)

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

(Multiple Choice)
5.0/5
(39)

Which of the following creates a blue circle centered at X = 50, Y = 50 with a radius of 50?

(Multiple Choice)
4.8/5
(44)

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

(True/False)
4.8/5
(36)

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

(True/False)
4.8/5
(35)

To animate a node with the ScaleTransition class, you specify starting and ending __________.

(Multiple Choice)
4.9/5
(39)

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

(Multiple Choice)
5.0/5
(36)

Select all that apply. Which of the following are possible states of a MediaPlayer object?

(Multiple Choice)
4.9/5
(44)

Any time a user presses a key, a __________ event occurs.

(Multiple Choice)
4.7/5
(39)

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

(Multiple Choice)
4.7/5
(35)

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

(Multiple Choice)
4.8/5
(44)

The __________ arc type causes a straight line to be drawn from one endpoint of the arc to the other endpoint.

(Multiple Choice)
4.8/5
(35)
Showing 1 - 20 of 40
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)