Solved

Which of the Following Code Snippets Creates a Line and Uses

Question 36

Multiple Choice

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

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents