Search Header Logo

QUIZ For day 2

Authored by BENYAPORN SANGKHIAO

Other

9th - 12th Grade

QUIZ For day 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the following loop print?

A) 0 1 2 3 4 5

B) 0 1 2 3 4

C) 1 2 3 4 5

D) 0 1 2 3

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which loop is best when the number of iterations is not known beforehand?

A) for loop

B) do-while loop

C) while loop

D) None of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the following method return?

A) The sum of a and b

B) The division of a and b

C) The multiplication of a and b

D) None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

A) 1

B) 2

C) 3

D) 4

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following methods has a void return type?

A) Method that returns an object

B) Method that returns an integer value

C) Method that doesn't return anything

D) Method that returns a boolean value

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the input values called that you pass into a method?

A) Arguments

B) Parameters

C) Variables

D) Both A and B

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the default value of the elements in an array of integers in Java?

A) null

B) 0

C) 1

D) Undefined

Access all questions and much more by creating a free account

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?