
Syed: 1D Array
Authored by Syed M
Computers
9th Grade
Used 20+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
55 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 5 pts
What is an Array?
A data structure consisting of a collection of elements grouped under a single name.
A collection of functions grouped under a single name.
A variable that can store multiple data types simultaneously.
A programming method used to iterate through data elements.
Answer explanation
A data structure consisting of a collection of elements grouped under a single name.
2.
DRAG AND DROP QUESTION
3 mins • 5 pts
Can an Array store values of different datatypes?
(a)Yes
No
Maybe
Not sure
Possibly
Answer explanation
No, an Array cannot store values of different datatypes as it requires all elements to be of the same type.
3.
MULTIPLE CHOICE QUESTION
3 mins • 5 pts
Guess the output.
names=["Lisa","Jane","William"]
print(names[1])
Lisa
Jane
William
Error
Answer explanation
The correct answer is Jane because names[1] accesses the element at index 1 in the list, which is 'Jane'.
4.
MULTIPLE CHOICE QUESTION
3 mins • 5 pts
What is the ouput?
DECLARE nums: ARRAY[0:4] OF INTEGER
nums ← [5, 10, 15, 20, 25]
OUTPUT(nums[2])
5
10
15
25
Answer explanation
The output is 15 because nums[2] refers to the element at index 2 in the array nums, which is 15.
5.
MULTIPLE CHOICE QUESTION
3 mins • 5 pts
If an array data contains five elements [5, 3, 7, 1, 9], what is the value of data[3]?
5
3
7
1
Answer explanation
The value of data[3] is 1 because array indexing starts at 0, so data[3] refers to the fourth element in the array which is 1.
6.
MULTIPLE SELECT QUESTION
3 mins • 5 pts
Which pseudocode initializes an array of size 10.
DECLARE nums: ARRAY[0:9] OF INTEGER
DECLARE nums: ARRAY[1:10] OF INTEGER
DECLARE nums: ARRAY[1:9] OF INTEGER
DECLARE nums: ARRAY[0:10] OF INTEGER
Answer explanation
The correct pseudocode to initialize an array of size 10 is DECLARE nums: ARRAY[0:9] OF INTEGER or DECLARE nums: ARRAY[1:10] OF INTEGER.
7.
MATH RESPONSE QUESTION
3 mins • 5 pts
How many elements are in the following array?
DECLARE items: ARRAY[0:4] OF STRING
items ← ["apple", "banana", "cherry", "date", "elderberry"]
Mathematical Equivalence
ON
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
54 questions
KHỐI 9 - ÔN TẬP CUỐI KÌ 1
Quiz
•
9th Grade
50 questions
Computer Basics Test
Quiz
•
9th - 12th Grade
50 questions
Computer basics
Quiz
•
5th - 9th Grade
50 questions
ASAS SAINS KOMPUTER TINGKATAN 3 - BAB 1
Quiz
•
9th Grade - University
50 questions
2.6 Data Representation All MCQ Revision Quiz
Quiz
•
8th - 10th Grade
60 questions
TIN 6- CÂU HỎI ÔN TẬP GK1
Quiz
•
6th Grade - University
60 questions
IC3_GS6_LV2
Quiz
•
7th Grade - University
50 questions
ASK T1 : Kod Arahan
Quiz
•
7th - 9th Grade
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