Java OOP

Java OOP

Assessment

Quiz

Computers

10th - 12th Grade

Medium

Created by

Wendy Dyer

Used 516+ times

FREE Resource

Student preview

quiz-placeholder

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?