Summary 5.1-5.4

Summary 5.1-5.4

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Static, Non-static and final fields and methods

Static, Non-static and final fields and methods

11th - 12th Grade

10 Qs

Object-Oriented Programming (OOP) in Python 3 Quiz

Object-Oriented Programming (OOP) in Python 3 Quiz

12th Grade

10 Qs

Objects, Classes, and Methods Terminology

Objects, Classes, and Methods Terminology

5th - 12th Grade

11 Qs

004_Java Instance Variables

004_Java Instance Variables

12th Grade - University

15 Qs

java

java

10th Grade

15 Qs

#128 Accessor Methods

#128 Accessor Methods

11th Grade

12 Qs

Object Oriented Programming in Python

Object Oriented Programming in Python

12th Grade

12 Qs

CSAwesome 5.4 - 5.6

CSAwesome 5.4 - 5.6

10th - 12th Grade

8 Qs

Summary 5.1-5.4

Summary 5.1-5.4

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

LaShawne Long Myles

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following class members that should be public?

instance varibles

constructors

methods used within the class

methods used in the main

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the scope of private methods and private instance variables?

the declaring class

the main class

any class

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Classes’ access specifier is generally set to...

accessor

mutator

private

public

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following would be the state of the Object tree?

int height

int girth

boolean deciduous

private boolean deciduous

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

We can set the initial state of an object through...

methods

constructors

variables

instance varibles

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Objects cannot have objects as attributes.

True
False

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

When we use a class as an attribute in another class the class we are using as an attribute will be the ______ _____ of the class that is using it as an attibute.

data type

instance variable

parameter

method

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?