Array
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Michael Bensi
Used 6+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to store multiple values of the same data type in a single variable?
Array
Constant
Variable
Class
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following symbol is used when declaring an array?
<>
{}
()
[]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following property is used to find out how many elements an array has?
size
width
length
count
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way of creating an array of integers with an initial value?
int num[]= 1,2,3
int[] num= 1,2,3
int[] num={"1,2,3"}
int[] num={1,2,3}
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the following code: int[] = {7,9,5,6,7,8};
What is the value of age[2]?
9
7
5
6
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the following code: int[] sum={6,8,7,9,3,2,1};
What is the index of 3?
3
2
4
5
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the following code: int[] sum= {5,8,7,9,6,3,1,2,4};
What is the value of sum.length;?
8
7
9
6
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?
Similar Resources on Wayground
15 questions
Archivos y Colecciones
Quiz
•
University
10 questions
Adobe Photoshop
Quiz
•
University
10 questions
Choose the level of Bloom’s Taxonomy
Quiz
•
University
15 questions
After Effect Intoduction
Quiz
•
10th Grade - University
10 questions
Pengantar Coding
Quiz
•
University
14 questions
Linux: Users and Groups
Quiz
•
9th Grade - University
15 questions
Graphs
Quiz
•
University
12 questions
Spreadsheet Starter
Quiz
•
7th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
