Question: Consider TV gameroom; String favProgram = Twilight Zone; int sophie = 5; Which of the following are reference variables? (Note that this is a multiple

Consider

TV gameroom; 
String favProgram = "Twilight Zone"; 

int sophie = 5;

Which of the following are reference variables? (Note that this is a multiple answer question.)

Question 2

Consider

TV livingRoom = null;

TV den;

new TV();

den = new TV();

Enter the line number where den is declared. Enter x if there is no such line.

Question 3

Consider

TV livingRoom = null;

TV den;

new TV();

den = new TV();

Enter the first line number in which an object refence is assigned to a variable. Enter x if there is no such line.

Question 4

Consider

TV livingRoom = null;

TV den;

new TV();

den = new TV();

livingRoom = new TV();

Write a statement that calls a method to increase the volume of the den's TV. (Use no spaces in your answer.)

Question 5

A class is to an object as

Question 6

What operator creates an object?

Question 7

Constructors differ from other methods in that they

Question 8

Consider

Date today;

today = new Date();

Date tomorrow;

tomorrow = today;

Which of the following is correct?

Question 9

Consider

TV gameroom; 
String favProgram = "Twilight Zone"; 

int sophie = 5;

Which of the following are data types? (Note that this is a multiple answer question.)

Question 10

Consider

TV livingRoom = null;

TV den;

new TV();

den = new TV();

Enter the line number of the first creation of an object. Enter x if there is no such line.

Question 11

Consider

TV gameroom; 
String favProgram = "Twilight Zone"; 

int sophie = 5;

Which of the following variables are declared as a primitive type? (Note that this is a multiple answer question.)

Question 12

Consider

TV gameroom; 
String favProgram = "Twilight Zone"; 

int sophie = 5;

Which of the following are correct? (Note that this is a multiple answer question.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!