Question: QUESTION 1 An array's size declarator can be a negative integer expression. True False 2 points QUESTION 2 When an array is passed to a

QUESTION 1

An array's size declarator can be a negative integer expression.

True

False

2 points

QUESTION 2

When an array is passed to a method, the method has access to the original array.

True

False

2 points

QUESTION 3

A constructor can return a value of type double.

True

False

2 points

QUESTION 4

Two arrays are parallel if they hold the same type of data.

True

False

2 points

QUESTION 5

Only a fixed number of elements can be stored in an ArrayList?

True

False

2 points

QUESTION 6

Every component of an ArrayList object is a reference.

True

False

2 points

QUESTION 7

A class and its members can be described graphically using Unified Modeling Language (UML) notation.

True

False

2 points

QUESTION 8

When a return statement executes in a user-defined method, the method immediately exits.

True

False

2 points

QUESTION 9

The instance variable length is a public member of an array object and can be directly accessed using the dot operator (eg. scores.length ).

double[] scores = new double[7];

True

False

2 points

QUESTION 10

In Java, void methods return a value of type String.

True

False

2 points

QUESTION 11

A method can be defined within the body of another method. This is known as nesting methods.

True

False

2 points

QUESTION 12

The private variables of a class are accessible in any method of that class.

True

False

2 points

QUESTION 13

If a Java method does not use parameters, parentheses around the empty parameter list are still needed.

True

False

2 points

QUESTION 14

Parameters allow you to use different values each time the method is called.

True

False

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!