JavaScript Data Types and Structures
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Medium
Harold Peaden
Used 5+ times
FREE Resource
Enhance your content in a minute
29 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Which of the following is a simple (primitive) data type in JavaScript?
number
array
object
function
Answer explanation
Correct Answer: number
❌ array → complex data type.
❌ object → complex data type.
❌ function → technically a type of object, not primitive.
2.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
True or False: Strings are considered complex data types.
Answer explanation
Correct Answer: False
❌ Strings are primitive data types.
3.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
What type of data structure is used to hold an ordered list of values?
string
array
boolean
number
Answer explanation
Correct Answer: array
❌ string → holds characters, not a list.
❌ boolean → only true/false.
❌ number → single numeric value.
4.
FILL IN THE BLANK QUESTION
1 min • 3 pts
Fill in the blank: Array indexes in JavaScript start at ____.
Answer explanation
Correct Answer: 0
5.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
10
20
30
undefined
Answer explanation
Correct Answer: 20
❌ 10 → index 0.
❌ 30 → index 2.
❌ undefined → only happens if index doesn’t exist.
6.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Which code correctly changes the second item in an array to 50?
Answer explanation
Correct Answer: nums[1] = 50;
❌ nums[2] = 50; → changes the third item.
❌ nums[0] = 50; → changes the first item.
❌ nums.update() → not valid in JS.
7.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
True or False: The .length property of an array returns the last index.
Answer explanation
Correct Answer: False
❌ .length returns the total count, not the last index.
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
25 questions
Java Review
Quiz
•
9th Grade - University
25 questions
EMPOWERMENT TECHNOLOGY
Quiz
•
KG - University
24 questions
Grade 12 B - IT - Quiz 1 - Ms. Dina Mohamed
Quiz
•
12th Grade
25 questions
MEDIA AND INFORMATION LITERACY
Quiz
•
12th Grade
24 questions
HYKwCS-CH05-S05-Databases
Quiz
•
9th - 12th Grade
24 questions
Module 2 Questions
Quiz
•
12th Grade
24 questions
Theory of Computation 2 (inc. BNF)
Quiz
•
11th - 12th Grade
25 questions
1st Period Feb 22, 2024 - Virtual AP CompSci AP
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
10 questions
Martin Luther King, Jr. For Kids
Interactive video
•
1st - 12th Grade
10 questions
Dr. King's Speech and Its Impact
Interactive video
•
7th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
7 questions
Anti-Bullying ARS 15-341
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
15 questions
TSI Math Practice Questions
Quiz
•
8th - 12th Grade
24 questions
Identify Properties of Polygons and Quadrilaterals
Quiz
•
9th - 12th Grade
