Java Method

Java Method

12th Grade

19 Qs

quiz-placeholder

Similar activities

OOP Java

OOP Java

12th Grade

20 Qs

Java, part I

Java, part I

11th Grade - University

20 Qs

OOP Long Quiz

OOP Long Quiz

12th Grade

17 Qs

Exam 4 Review

Exam 4 Review

9th - 12th Grade

20 Qs

CME QUIZ

CME QUIZ

12th Grade

20 Qs

U2L7 Accessor Methods by Mr. B

U2L7 Accessor Methods by Mr. B

12th Grade

15 Qs

System Development Life Cycle

System Development Life Cycle

11th - 12th Grade

21 Qs

Python Functions

Python Functions

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?