WorksheetsAP Computer Science Principles - Unit 5: Lists, Loops
Total questions: 10
Worksheet time: 5mins
Name
Class
Date
1.
What was the first computing machine capable of basic arithmetic called?
a)
iPhone 1
b)
Robot
c)
TI Calculator
d)
Babbage Machine
2.
What is an individual value in a list that is assigned a unique index called?
a)
Pointer
b)
Reference
c)
Address
d)
Element
3.
Which of the following is a common method for referencing the elements in a list or string using numbers?
a)
Hashing
b)
Sorting
c)
Indexing
d)
Searching
4.
What is a repetitive portion of an algorithm which repeats a specified number of times or until a given condition is met called?
a)
Condition
b)
Loop
c)
Iteration
d)
Recursion
5.
What occurs when the ending condition will never evaluate to true in a loop?
a)
Logical error
b)
Runtime error
c)
Syntax error
d)
Infinite loop
6.
What is the process of accessing each item in a list one at a time called?
a)
Traversing
b)
Sorting
c)
Indexing
d)
Searching
7.
What is a technique that manages complexity in programs by giving a collection of data a name without referencing the specific details of the representation called?
a)
Data encapsulation
b)
Data hiding
c)
Data abstraction
d)
Data serialization
8.
What is an ordered collection of elements called in programming?
a)
Item
b)
Group
c)
Set
d)
List
9.
Who is credited with writing the first ever computer program?
a)
Ada Lovelace
b)
Bill Gates
c)
Grace Hopper
d)
Apple
10.
Who is credited with inventing the first modern computer?
a)
Alan Turing
b)
John von Neumann
c)
Vint Cert
d)
Steve Jobs
100 %
