QUIZ in JAVA METHOD

QUIZ in JAVA METHOD

12th Grade

20 Qs

quiz-placeholder

Similar activities

Java Arrays Quiz

Java Arrays Quiz

12th Grade

15 Qs

IT tutor

IT tutor

12th Grade

18 Qs

แข่งขันcodingม.ปลาย

แข่งขันcodingม.ปลาย

12th Grade - University

15 Qs

3 Tri C# 3

3 Tri C# 3

12th Grade

25 Qs

Quiz Pemrograman Arduino

Quiz Pemrograman Arduino

10th Grade - University

15 Qs

Unit 3 Karel Programming Review 2

Unit 3 Karel Programming Review 2

9th - 12th Grade

15 Qs

HTML 5 2o. TEC

HTML 5 2o. TEC

12th Grade

15 Qs

3 Tri C# 2

3 Tri C# 2

12th Grade

25 Qs

QUIZ in JAVA METHOD

QUIZ in JAVA METHOD

Assessment

Quiz

Information Technology (IT)

12th Grade

Hard

Created by

Maybelyn Padua

Used 8+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you call a method in Java?

By using arrays with semicolons.

By using a special variable called method, followed by a semicolon.

By using the name of the method followed by two parentheses and a semicolon.

By using the call keyword and the name of the method and a semicolon.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

It is used to store multiple values in a single variable.

Array

Method

For Loop

If.. Else Statement

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In declaring an array, we put ____________ either after the data type or array name.

double quotations

square brackets

curly braces

semicolon

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

We access an array element by referring to the _________.

Imaginary index

Index element

Index card

Index number

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In for loop, this part states if the variable will increased or decreased.

Initialization

Operation

Condition

Semicolon

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Create an array of type float called average.

______ average = {90, 75, 88, 94, 82, 96};

int[]

float

float[]

int

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way of declaring an array of int?

Int myNum{}

Int myNum;

int[] myNum;

int[] myNum[]

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?