Chapter 3 - Classes and Objects

Chapter 3 - Classes and Objects

9th - 12th Grade

35 Qs

quiz-placeholder

Similar activities

PowerPoint  2016

PowerPoint 2016

7th Grade - University

40 Qs

Ujian Semester 2 Informatika x

Ujian Semester 2 Informatika x

10th Grade

30 Qs

Sistemas de Archivos: operaciones

Sistemas de Archivos: operaciones

11th Grade

40 Qs

98-368 Mobility and Devices Fundamentals Study Guide

98-368 Mobility and Devices Fundamentals Study Guide

9th - 12th Grade

40 Qs

SOAL PAS 2018 - Teknik Mikroprosessor & Mikrokontroller XD TEI

SOAL PAS 2018 - Teknik Mikroprosessor & Mikrokontroller XD TEI

10th Grade

40 Qs

GIỮA KỲ 2 -  TIN 8

GIỮA KỲ 2 - TIN 8

8th Grade - University

36 Qs

HOJAS DE CÁLCULO SPS (2)

HOJAS DE CÁLCULO SPS (2)

11th Grade

36 Qs

LO1 iMedia

LO1 iMedia

7th - 10th Grade

31 Qs

Chapter 3 - Classes and Objects

Chapter 3 - Classes and Objects

Assessment

Quiz

Computers

9th - 12th Grade

Easy

Created by

Jeanine Bryde

Used 28+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

35 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

The purpose of a(n) _________ is to initialize the instance variables of a newly instantiated object.

Constructor
Class
Formal Parameter
Object

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following is a correct header line for main in a Java program?

public static void main(args)
public static void main(String args)
public static void main(args [ ])
public static void main(String [ ] args)

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which access type will only let its class access it?

default

public

private

protected

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

These controls the behavior of a program.

class
object
method
void

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following is an accessor method?

public void getName()

public void setName()

public String getName()

public String setName()

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following is the correct way to write a no-args constructor of the class Car

public Car()

public void Car()

private Car()

public Car

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Methods that change an object’s state are called ____________.

Accessors

Mutators

Constructors

Behavior

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?