Search Header Logo

Java OOP

Authored by Wendy Dyer

Computers

10th - 12th Grade

Used 527+ times

Java OOP
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What java library must be imported to get user input for the Scanner class?

DecimalFormat( ) 
javax.swing.JOptionPane;
java.util.Scanner;
java.util.Random

2.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What is a constructor?

another name for an instance variable
the method that creates an object, or instance, of the class
the return type of a method
the instantiation of an object

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What is 1001 0011 in decimal?

148
156
147
none of these

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What does it mean when a method is static?

it modifies or mutates an object
it is private
it applies to the entire class, not just one object or instance
it is overloaded

5.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What is the result of the following expression when x is 3583?
(x/10)%10

3
8
83
300

6.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

GradStudent extends class Student.  Which of these is NOT valid?

Students s = new Student()
 Student s = new GradStudents()
GradStudent g = new Student()
GradStudent g = new GradStudent()

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

The operators * and + have the same precedence.

True
False

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?