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
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
BASIC C QUIZ

Quiz
•
University
7 questions
Python Round 4

Quiz
•
University
15 questions
Trắc nghiệm kiến thức Java Core - Phần I

Quiz
•
University
15 questions
Java Quiz based on array

Quiz
•
University
14 questions
JavaScript

Quiz
•
University
15 questions
Data Types & Variables

Quiz
•
University
15 questions
module3

Quiz
•
University
10 questions
C++ Array

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University