
Java Methods Quiz

Passage
•
Computers
•
Professional Development
•
Medium
Thanh Le
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are Java methods called in C and C++?
Functions
Procedures
Classes
Variables
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the return type of a method that does not return anything in Java?
int
double
void
String
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of using methods in Java?
To increase the file size
To perform operations
To create redundancy
To confuse the code
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Java, what is the keyword used to return a value from a method?
return
back
exit
finish
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the access modifier for a method that can be accessed from anywhere in the program in Java?
static
protected
private
public
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the name of the method in Java that adds two numbers?
addTwoNumbers
sum
calculate
addition
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the parameter type for the 'age' in the method 'minor or adult' in Java?
int
double
String
boolean
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
Elementos del Frontend

Quiz
•
Professional Development
15 questions
JS

Quiz
•
Professional Development
11 questions
DEWE-03_RA 1.1_Tema A

Quiz
•
Professional Development
15 questions
24/01/2024

Quiz
•
Professional Development
13 questions
Java Chapter 1 Review Questions

Quiz
•
Professional Development
10 questions
CS - Introduction to React Native

Quiz
•
Professional Development
10 questions
Java MCQs

Quiz
•
Professional Development
15 questions
It jobs

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade