Java Method

Java Method

12th Grade

19 Qs

quiz-placeholder

Similar activities

Ch 07_Publishing Awesome

Ch 07_Publishing Awesome

9th - 12th Grade

20 Qs

Java Chapter 1 CS2

Java Chapter 1 CS2

9th - 12th Grade

16 Qs

Python Built-in Functions

Python Built-in Functions

11th - 12th Grade

15 Qs

Topic 4.5 Method Part 2

Topic 4.5 Method Part 2

12th Grade

19 Qs

OOP Java

OOP Java

12th Grade

20 Qs

Exam 4 Review

Exam 4 Review

9th - 12th Grade

20 Qs

CSP 1.4 Vocab

CSP 1.4 Vocab

9th - 12th Grade

20 Qs

Progamming - Java Syntax

Progamming - Java Syntax

11th - 12th Grade

15 Qs

Java Method

Java Method

Assessment

Quiz

Computers

12th Grade

Easy

Created by

Harith Hasan

Used 23+ times

FREE Resource

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A method consists of a collection of __________.

lines

statements

parameter

return values

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

  1. Advantages of using the method.

  • Code reusability

Easier to debug

to complicate the solution

  • to organize and simplify coding.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the type of  method based on the description given below:

Programmers need to write their own method and perform action based on given instruction.

User defined method

Predefined method / standard library

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the type of  method based on the description given below:

Programmers can directly use this type of method which is readily available in Java language.

User defined method

Predefined method / standard library

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the type of  method based on the description given below:

Programmers use a Java Math class which returns the square root of a specific number, x.

User defined method

Predefined method / standard library

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the type of  method based on the description given below:

public static void main (String [ ] args) {

   Math.pow (6,3)

User defined method

Predefined method / standard library

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the type of  method based on the description given below:

public static void product3 ( String first ) { 

   System.out.print(“ Hello world” + first ); 

User defined method

Predefined method / standard library

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?