
Object Functions and Class Methods Quiz

Interactive Video
•
Computers
•
9th - 10th Grade
•
Hard
Jennifer Brown
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary purpose of an object function in a class?
To store data
To add functionality to an object
To initialize variables
To delete an object
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the role of a constructor in a class?
To delete an object
To initialize a new object
To update object attributes
To add new methods
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which attribute is NOT part of the student class described?
General Average
Grade Level
Name
Age
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the minimum general average required for a student to receive 'with honors'?
85
90
95
98
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which conditional statement is used to check if a student has 'highest honors'?
General average > 95
General average < 90
General average >= 98
General average <= 98
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the return type of the 'get honor' function?
Boolean
Integer
Float
String
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What library is included to use string streams in the self-introduction function?
fstream
iostream
iomanip
sstream
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
Distance-Time Graph Analysis

Interactive video
•
9th - 10th Grade
11 questions
P.E. Experiences and Incidents

Interactive video
•
9th - 10th Grade
8 questions
Formative Assessment and Student Support

Interactive video
•
9th - 10th Grade
11 questions
Google Forms Quiz

Interactive video
•
9th - 10th Grade
11 questions
Challenges and Benefits of AP Human Geography

Interactive video
•
9th - 10th Grade
8 questions
GCSE Secondary Maths Age 13-17 - Number: Bounds - Explained

Interactive video
•
9th - 10th Grade
12 questions
Mathematical Concepts and Calculations

Interactive video
•
9th - 10th Grade
11 questions
Data Analysis Concepts and Associations

Interactive video
•
9th - 10th Grade
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
10 questions
Afterschool Activities & Sports

Quiz
•
6th - 8th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
15 questions
Cool Tool:Chromebook

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
20 questions
Bullying

Quiz
•
7th Grade
18 questions
7SS - 30a - Budgeting

Quiz
•
6th - 8th Grade