stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
OOP Object Oriented Concepts #2 Flashcards | StudBud
Explore
/
OOP Object Oriented Concepts #2
OOP Object Oriented Concepts #2
11 terms
·
StudBud Administration
·
74 plays
A quiz about Object Oriented Programming concepts for APCS! #apcs #oop #programming
Flashcards
11 cards
F
Practice quiz
P
Host live
L
Questions
11
Answers
1
What does the keyword
static
mean?
The variable does not change
The code runs when play is pressed in Eclipse
There is only one copy for all of the running code
The method does not change
2
To create a new variable of type Animal you would use the code
Animal = new Animal();
Animal a = Animal();
Animal a = new Animal();
a = new Animal();
3
The code to create a new object is called a ...
Instance Variable
Class
Method
Constructor
4
Why are wrapper classes needed?
To allow class types to be treated like primitive types
There is no need for them
To provide conversion from one type to another
To allow primitive types to be treated like class types
5
A mutator method...
changes the state of an object
does nothing within a class
returns a private instance variable
prints out to the screen
6
refers to electronic environments that are sensitive and responsive to the presence of people.
ambient intelligence
humanoid awareness
concrete abstraction
biologic programming
7
Which is an example of a wrapper class?
Scanner
boolean
String
Integer
8
An accessor method...
provides a consistent method to access instance variables
allows a class to be instantiated
allows another class to call a specific method
provides access to a constructor of a class
9
What does the keyword
public
signify?
other objects of the same type may access that entity only
no other objects my access that entity
only objects in the same folder may access that entity
any other classes may access that entity
10
Which is an example of a primitive type?
String
Person
boolean
Scanner
11
Classes contain 3 things. These are...
a toString method, a constructor, and other methods
instance variables, constructors, and methods
instance variables, comments, and constructors
instance variables, a main method, static variables