
Conditionals & Arrays
Computers
9th - 12th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which property can be used to return the number of rows in an array?
length
size
rank
noRows
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which will occur when an invalid array index is used in a statement?
A syntax error will occur.
A run-time error will occur.
Extra elements will automatically be added to the array.
The statement will be ignored.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Each element in a String array is automatically initialized to
true
false
null
Elements in a string array are not initialized.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The statement gameBoard[3][4] = "T"; assigns the element in the third row, fourth column the letter “T”.
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
An array has a fixed length.
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Elements in an ArrayList must be
integers.
floating point numbers.
Boolean values
objects
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Each element in a String array is automatically initialized to
true.
false.
null.
Elements in a string array
are not initialized.
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?