Java

Java

Assessment

Assessment

Created by

Wayne Hines

others

Hard

Student preview

quiz-placeholder

140 questions

Show all answers

1.

OPEN ENDED

30 sec • 1 pt

Which of the following elements is not required in a variable declaration?

Answer explanation

an assigned value

2.

OPEN ENDED

30 sec • 1 pt

If a class is named Student, the class constructor name is____.

Answer explanation

Student()

3.

OPEN ENDED

30 sec • 1 pt

The compiler determines which version of a method to call by the method's ____.

Answer explanation

signature

4.

OPEN ENDED

30 sec • 1 pt

If you use the automatically-supplied default constructor when you create an object, ____.

Answer explanation

numeric fields are set to 0 (zero)

5.

OPEN ENDED

30 sec • 1 pt

The individual operations used in a computer program are often grouped into logical units called ____.

Answer explanation

procedures

6.

FILL IN THE BLANK

30 sec • 1 pt

A sequence of characters enclosed within double quotation marks is a _____.

7.

OPEN ENDED

30 sec • 1 pt

Which of the following data types can store a value in the least amount of memory?

Answer explanation

byte

8.

OPEN ENDED

30 sec • 1 pt

Identify the false statement. a. A class's instance variables override locally declared variables with the same names that are declared within the class's methods. b. You cannot declare the same variable name more than once within a block, even if a block contains other blocks. c. A variable ceases to exist, or goes out of scope, at the end of the block in which it is declared.

Answer explanation

A class's instance variables override locally declared variables with the same names that are declared within the class's methods.

9.

OPEN ENDED

30 sec • 1 pt

Identify the false statement. a. When it is part of the same program as void myMethod (int age, String name), the following method would be ambiguous: String myMethod (int zipCode, String address) b. When it is part of the same program as void myMethod (int age, String name), the following method would be ambiguous: void myMethod (int x, String y) c. When it is part of the same program as void myMethod (int age, String name), the following method would be ambiguous: void myMethod (String name, int age)

Answer explanation

When it is part of the same program as void myMethod (int age, String name), the following method would be ambiguous: void myMethod (String name, int age)

10.

OPEN ENDED

30 sec • 1 pt

Identify the false statement. a. Java packages are available only if you explicitly name them within your program. b. The creators of Java have produced hundreds of classes for you to use in your programs. c. The implicitly imported java.lang package contains fundamental Java classes.

Answer explanation

Java packages are available only if you explicitly name them within your program.

Explore all questions with a free account

or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Find a similar activity

Create activity tailored to your needs using

Quizizz AI