Java Methods

Java Methods

University

15 Qs

quiz-placeholder

Similar activities

EC335 - Quiz 1

EC335 - Quiz 1

University

10 Qs

Chapter 2: Input Device

Chapter 2: Input Device

12th Grade - University

12 Qs

QUIZ 2

QUIZ 2

University

20 Qs

Fun with Computer Architecture

Fun with Computer Architecture

University

15 Qs

Review Quiz (Chapter 3&4)

Review Quiz (Chapter 3&4)

University

20 Qs

C Programming Unit-1 Test-2

C Programming Unit-1 Test-2

University

20 Qs

Software Testing

Software Testing

University

10 Qs

Java Methods

Java Methods

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

rasyida rahman

Used 1K+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

List all arguments that exist in this program segment:-

double point, String student

point, student

name, mark

name[i], mark[i]

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

List all parameters that exist in this program segment:-

double point, String student

point, student

name, mark

name[i], mark[i]

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Identify the error that exist in this program segment:-

An array data type cannot be use as argument.

The argument was not in the right sequence with the parameter.

The variable name in parameter not as same with the argument.

Program consist 0 error.

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Identify the object that used to call a method.

Status

name[i], mark[i]

mtd

void

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Fix the error by replacing with the correct java statement.

void Status(String student, double point)

void Status ( name[i], mark[i] )

int Status(String student, double point)

void Status ( String name[i], double mark[i] )

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Create a method name Bonus that will read a basic payment and an hour variable as parameter to calculate an extra salary.

Media Image
Media Image
Media Image
Media Image

7.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Media Image

Identify the error that exist in this method program:-

Wrong use of return method type

variable extra was unknown.

doble is not one of the data type

A wrong use of hour data type.

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?