
QUIZ For day 2
Authored by BENYAPORN SANGKHIAO
Other
9th - 12th Grade

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
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
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
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

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?