What does the following loop print?

QUIZ For day 2

Quiz
•
Other
•
9th - 12th Grade
•
Hard
BENYAPORN SANGKHIAO
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the value of array[3] after executing the following code?
A) 3
B) 4
C) 7
D) 5
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid way to declare an array?
A) int array[];
B) int[] array;
C) int array[5];
D) Both A and B
Similar Resources on Quizizz
10 questions
Pemrograman Berorientasi Objek

Quiz
•
11th Grade
13 questions
Fingerprints

Quiz
•
12th Grade
10 questions
PE Theory F1 (Sports Nutrition)

Quiz
•
7th - 9th Grade
10 questions
INFORMATIKA 9 S1 HAL 011 PA 1

Quiz
•
9th Grade
10 questions
TEST 2 PISAV XII TAV Audio Paging

Quiz
•
12th Grade - Professi...
10 questions
OPEN LOOP & CLOSE LOOP

Quiz
•
12th Grade
11 questions
Feedback Loops

Quiz
•
10th - 12th Grade
10 questions
Partnership Firm :Basic Concept Part -3

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Other
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade