Method Review II

Method Review II

12th Grade

11 Qs

quiz-placeholder

Similar activities

AP CSP Review

AP CSP Review

9th - 12th Grade

10 Qs

XII Practical Exam

XII Practical Exam

12th Grade

12 Qs

AP Computer Science Principles

AP Computer Science Principles

9th - 12th Grade

14 Qs

Java Methods

Java Methods

12th Grade

10 Qs

Casting in Java

Casting in Java

9th - 12th Grade

11 Qs

Code.org CSP Unit 4 Review

Code.org CSP Unit 4 Review

9th - 12th Grade

6 Qs

Method Review II

Method Review II

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Mr. Kedwell

Used 2+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword defines you do not need to create an object of this class to call this method?
public static void fullName(userFirst,userMiddle,userLast);

fullName

public

static

void

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can you have two methods with the same name and same parameter list in the same class file?

YES

NO

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a method, the return type should be __________ when the method returns no value.
Static
Private
Public
Void

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

These control the behavior of a program.

class
object
method
void

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can you have two methods with the same name in the same class file?

YES

NO

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the return type of the method declared below?

public static void doubleNum(int numRec){}

int

nothing

static

numRec

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the return type of the method declared below?

public static double doubleNum(int numRec){}

int

nothing

double

static

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?