
Java Methods
Authored by rasyida rahman
Computers
University
Used 1K+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
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
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
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
Identify the object that used to call a method.
Status
name[i], mark[i]
mtd
void
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
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.
7.
MULTIPLE SELECT QUESTION
1 min • 1 pt
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.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?