Which of the following statements is true?

Understanding Methods and Inheritance
Quiz
•
Computers
•
11th Grade
•
Hard
James Santiago
Used 1+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Performing a task in a program requires a method.
A method contains the statements that actually performs its task.
The algorithm that the method represents can consist of a combination of sequencing, selection, and iteration.
All of the above.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is false?
An object's attributes are specified in a class.
A Student object would likely have a gpa attribute that represents the current GPA.
Each Student object knows its GPA but not the GPA of other Student objects.
Attributes are specified by the class's methods.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fill in the blank. Inheritance represents a/an ___ relationship.
has-a
has-many
is-a
is-many
None of the above.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following evaluates to false? I. true II. !true III. false IV. !false
II only
III only
I and IV
II and III
III and IV
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the code segment below.
Which of the following initial conditions must be true for the code to run without error?
The Painter object was facing east.
The Painter object had paint.
The Painter object could move forward.
The Painter object does not have any paint.
The Painter object started on paint.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following method header:
public boolean mystery()
How many arguments are needed when calling the mystery() method?
o
1
2
3
infinite
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code segment.
while(!myPainter.isFacingWest()) {
myPainter.turnLeft();
}
What is the most number of times that the turnLeft() method would be called?
0
2
3
4
infinite
Similar Resources on Wayground
10 questions
OOP
Quiz
•
9th - 12th Grade
11 questions
Subclass/Subclass
Quiz
•
11th Grade
8 questions
Object Oriented Programming
Quiz
•
11th - 12th Grade
10 questions
AP CSP Review
Quiz
•
9th - 12th Grade
12 questions
Java Class vocabulary
Quiz
•
9th Grade - University
10 questions
Lesson 8: Multimedia
Quiz
•
11th Grade
10 questions
Resume Knowledge Quiz
Quiz
•
9th - 12th Grade
11 questions
Computer Programming: Graphics
Quiz
•
8th - 11th Grade
Popular Resources on Wayground
25 questions
Equations of Circles
Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)
Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System
Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice
Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers
Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons
Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)
Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review
Quiz
•
10th Grade
