Java Method

Java Method

12th Grade

19 Qs

quiz-placeholder

Similar activities

Topic 4.5 Method Part 2

Topic 4.5 Method Part 2

12th Grade

19 Qs

Java Programming Quiz unit 3

Java Programming Quiz unit 3

12th Grade

21 Qs

Java Strings and Math Quiz

Java Strings and Math Quiz

12th Grade

15 Qs

4thQuarter Review Comprog 2

4thQuarter Review Comprog 2

11th Grade - University

20 Qs

Java 1 Practice

Java 1 Practice

9th - 12th Grade

21 Qs

Computer Quiz

Computer Quiz

12th Grade - University

16 Qs

Lesson 2 - Queues

Lesson 2 - Queues

11th - 12th Grade

14 Qs

Unit 20 building a PC

Unit 20 building a PC

10th - 12th Grade

15 Qs

Java Method

Java Method

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Harith Hasan

Used 25+ 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?