Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Sham Navathe

4th Edition

0321122267, 978-0321122261

More Books

Students also viewed these Databases questions

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago