OOP Long Quiz

Quiz
•
Computers
•
12th Grade
•
Hard

Riggs Manuel Sacdalan
Used 18+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
002_Java Methods

Quiz
•
12th Grade - University
15 questions
Unit 2 Inheritance in Java

Quiz
•
12th Grade - University
22 questions
NV: Java Interface Quiz

Quiz
•
12th Grade
19 questions
Java Method

Quiz
•
12th Grade
18 questions
STATIC KEYWORD IN JAVA

Quiz
•
9th - 12th Grade
15 questions
C# Loops (All)

Quiz
•
9th - 12th Grade
16 questions
Parts of a Method (Java)

Quiz
•
9th Grade - University
12 questions
Java Class vocabulary

Quiz
•
9th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade