Which of the following is used to store multiple values of the same data type in a single variable?
Array

Quiz
•
Computers
•
University
•
Hard
Michael Bensi
Used 6+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Weekly Contest #3 - TechXNinjas

Quiz
•
University
10 questions
T_4.2 Identifier, Data Types, Operators & Expressions

Quiz
•
12th Grade - University
14 questions
Java Operators

Quiz
•
University
15 questions
Data Types & Variables

Quiz
•
University
15 questions
Python

Quiz
•
6th Grade - University
11 questions
Array

Quiz
•
University
15 questions
module3

Quiz
•
University
15 questions
BASIC C QUIZ

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade