
Arrays, tuples and records
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Medium
Mr Applewhaite
Used 1+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an array defined as in computer science?
A) A finite, ordered set of elements of the same type
B) An infinite, unordered set of elements of different types
C) A finite, unordered set of elements of different types
D) An infinite, ordered set of elements of the same type
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of an elementary data type?
A) Integer
B) Array
C) Record
D) String
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the example array myArray = [51, 72, 35, 37, 0, 3], what value is assigned to x if x = myArray[2]?
A) 51
B) 72
C) 35
D) 37
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the function len(arrayName) return in most programming languages?
A) The sum of all elements in the array
B) The length of the array
C) The first element of the array
D) The last element of the array
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a tuple in Python?
A mutable list of elements
An ordered set of values that is immutable
A collection of key-value pairs
A dynamic array
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid way to refer to an element in a tuple?
pupil[0] = "Mary"
pupil = "John"
name = pupil[0]
pupil.append("Mary")
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a record in the context of data structures?
A single value in a tuple
A collection of fields in a file
A dynamic array of integers
A mutable list of strings
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
14 questions
Input, output and storage de
Quiz
•
8th Grade - Professio...
10 questions
ZOOM QUIZ
Quiz
•
1st - 12th Grade
15 questions
Visual C# Quiz - Chapter 5: Loops, Files, and Random Numbers
Quiz
•
12th Grade
11 questions
Chapter 6 Part 2 - 4
Quiz
•
11th - 12th Grade
13 questions
bts
Quiz
•
KG - Professional Dev...
10 questions
EMPTECH L4 Q3
Quiz
•
12th Grade
10 questions
JSPS Competition Hackathon - Scratch Language - Grade 1
Quiz
•
2nd Grade - University
10 questions
Microcontroller
Quiz
•
11th 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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
