Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

launch application. start method is invoked. start method is invoked. Test const

ID: 3570882 • Letter: L

Question

launch application. start method is invoked.

start method is invoked. Test constructor is invoked.

Test constructor is invoked. start method is invoked.

launch application. start method is invoked. Test constructor is invoked.

launch application. Test constructor is invoked. start method is invoked.

Assume Calendar calendar = new GregorianCalendar(). ________ returns the week of the year.

calendar.get(Calendar.MONTH)

calendar.get(Calendar.MONTH_OF_YEAR)

calendar.get(Calendar.WEEK_OF_MONTH)

calendar.get(Calendar.WEEK_OF_YEAR)

A variable defined inside a method is referred to as ________.

a global variable

a method variable

a block variable

a local variable

Check all that apply

Which of the following is poor design?

A data field is derived from other data fields in the same class.

A method must be invoked after/before invoking another method in the same class.

A method is an instance method, but it does not reference any instance data fields or invoke instance methods.

A parameter is passed from a constructor to initialize a static data field.

Check all that apply

Which of the following statements are correct?

Every subclass of Node has a no-arg constructor.

Circle is a subclass of Node.

Button is a subclass of Node.

Pane is a subclass of Node.

Scene is a subclass on Node.

Code fragment A runs faster than code fragment B.

Code fragment B runs faster than code fragment A.

Code fragment A runs as fast as code fragment B.

Check all that apply

The ________ properties are defined in the javafx.scene.text.Text class.

text

x

y

underline

strikethrough

launch application. start method is invoked.

start method is invoked. Test constructor is invoked.

Test constructor is invoked. start method is invoked.

launch application. start method is invoked. Test constructor is invoked.

launch application. Test constructor is invoked. start method is invoked.

What is the output of the following JavaFX program? Code fragment A runs faster than code fragment B. Code fragment B runs faster than code fragment A. Code fragment A runs as fast as code fragment B. Check all that apply The ________ properties are defined in the javafx.scene.text.Text class. launch application. start method is invoked. start method is invoked. Test constructor is invoked. Test constructor is invoked. start method is invoked. launch application. start method is invoked. Test constructor is invoked. launch application. Test constructor is invoked. start method is invoked. Assume Calendar calendar = new GregorianCalendar(). ________ returns the week of the year. calendar.get(Calendar.MONTH) calendar.get(Calendar.MONTH_OF_YEAR) calendar.get(Calendar.WEEK_OF_MONTH) calendar.get(Calendar.WEEK_OF_YEAR) A variable defined inside a method is referred to as ________. a global variable a method variable a block variable a local variable Check all that apply Which of the following is poor design? A data field is derived from other data fields in the same class. A method must be invoked after/before invoking another method in the same class. A method is an instance method, but it does not reference any instance data fields or invoke instance methods. A parameter is passed from a constructor to initialize a static data field. Check all that apply Which of the following statements are correct? Every subclass of Node has a no-arg constructor. Circle is a subclass of Node. Button is a subclass of Node. Pane is a subclass of Node. Scene is a subclass on Node. Suppose list1 is an ArrayList and list2 is a LinkedList. Both contains 1 million double values. Analyze the following code:

Explanation / Answer

a) launch application. start method is invoked.
b) calendar.get(Calendar.WEEK_OF_YEAR)
c) a local variable
d) A parameter is passed from a constructor to initialize a static data field.
e) Every subclass of Node has a no-arg constructor
f) Code fragment A runs faster than code fragment B.
g) All of below