
W6_PASS(W5)_Quiz
Authored by Shu Li
Other
1st - 3rd Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which type of loop is best known for its boolean condition that controls entry to the loop?
do-while
while
for
for-each
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following can iterate through an array without referring to the elements by index?
do-while
while
for
for-each
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is not a true statement about an array?
An array is allowed to contain duplicate values.
An array uses a zero index to reference the first element.
An array expands automatically when it is full.
None of the above.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you determine the number of elements in an array? Example: int books[] = new int[5];
books.length
books.size
books.length()
books.size()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you determine the number of elements in an ArrayList? Example: ArrayList<String> listOfBooks = new ArrayList <String>();
listOfBooks.length
listOfBooks.size
listOfBooks.length()
listOfBooks.size()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to get the first value in a list called books?
books[0]
books[1]
books.get(0)
books.get(1)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many of them are legal declarations?
None
One
Two
Three
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?