
OOP Long Quiz
Authored by Riggs Manuel Sacdalan
Computers
12th Grade
Used 18+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which part of a method declaration is optional and specifies that the method cannot be overridden by a subclass?
Return type
Access modifier
Optional specifier
Method body
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the return type in a method declaration?
To specify whether the method can be accessed outside its class
To define the name of the method
To indicate the data type of the value returned by the method or void if no value is returned
To list the parameters the method accepts
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a method declaration, what does the access modifier private specify?
The method can be accessed by all classes everywhere
The method can only be accessed within its own package
The method can only be accessed within its own class
The method can be accessed by subclasses in other packages
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which part of a method declaration is required and defines what the method does?
Access modifier
Parameter list
Method name
Exception list
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the method body in a method declaration?
To list the method's parameters
To specify the access level of the method
To include the code that defines what the method does
To declare exceptions that the method might throw
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which part of the method declaration is used to indicate that a method belongs to the class rather than an instance of the class?
Access modifier
Return type
Static keyword
Method name
7.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
What will be the output of the following code?
00
0
10
1
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
EMPTECH Lesson 4 quiz 1
Quiz
•
12th Grade
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
15 questions
Quiz 1
Quiz
•
1st - 12th Grade
15 questions
Data Security Worksheet
Quiz
•
10th Grade - University
14 questions
LA5.C5: Branching and Subroutines
Quiz
•
9th Grade - University
13 questions
Stepwise Refinement
Quiz
•
11th - 12th Grade
20 questions
Basic of Computer and Network
Quiz
•
8th Grade - University
13 questions
Guess the Retro Computer 1
Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade
18 questions
Success Strategies
Quiz
•
9th - 12th Grade
10 questions
Valentine's Day Trivia
Quiz
•
9th - 12th Grade