Which of the following best describe examples of abstraction
Unit 1 Review

Quiz
•
Computers
•
10th - 12th Grade
•
Hard
Stephanie Lugo
Used 21+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A developer writing a program for calculating properties of shapes uses a variable pi to store a decimal approximation of the number π (~3.14159). They use this variable whenever they need to use the number π to calculate an area or volume.
A series of steps for creating a model aeroplane is laid out in a clear order, with specific instructions in great detail for completing each step.
Several developers are working on a program together. In order to complete the work efficiently, they split the program up into several parts, and each work on a section, testing as they proceed. When code is complete they add it to a master program.
Answer explanation
This is correct. The constant π, which has an infinite decimal expansion, is represented by a simple variable name of pi. This is therefore an example of abstraction, where a complex system is replaced with a simplified representation.
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Rick is in charge of a team developing a program which will be used by businesses to control stock. The team has already consulted with potential clients and developed an idea of what inputs will be required and the likely outputs that will be produced from these inputs. Which of the following should Rick and his team do next?
Correct Answer
Write segments of code in different languages to see which language will be most suitable for the job
Plan the structure of the program and determine how the major algorithms will work
Make a list of bugs which will occur during development and propose ways these could be fixed
Decide on the schedule for updates and maintenance of the code
Answer explanation
This is correct. When the initial planning and ideas phase of the development cycle is complete, the next step should be to consider the overall design of the program and how it will implement the desired functionality.
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Jama is creating a program which calculates the square roots of whole numbers. The program will store the results of each square-root as a variable. Which of the following data-types would be best used for this variable?
int
string
bool
float
Answer explanation
This is correct. The square root of an integer may be another integer or a non-integer number (e.g. the square root of 2 is 1.4142…). Since the floating point number (float) data type stores decimal numbers, this makes it an ideal data-type for this variable.
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following describes algorithmic solutions to problems:
I. A set of step by step instructions for assembling a piece of furniture.
II. A flowchart used to make important decisions on which actions to take in an emergency situation
III. A recipe for baking a cake with detailed numbered steps to follow
I, II and III
I and III only
I and II only
II and III only
Answer explanation
This is correct. Each of the problems described (assembling a piece of furniture, dealing with an emergency situation and baking a cake) are solved through a set of logically ordered, precise instructions. These solutions can therefore be thought of as being algorithmic in nature.
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following statements about variables in programming are true?
I. Variables allow a value to be stored for future use
II. Once the value of a variable is set it cannot be changed
III. The name given to a variable is important for human comprehension, but not for the computer.
II only
I and III only
I only
I, II and III
Answer explanation
This is correct. The use of a variable is primarily to store values which can be used later. It is important to name variables so that code is comprehensible to people reading it (including the original programmer) and its purpose and function can be quickly determined. Despite this, it makes no difference to the running of the program by the computer what variable names are used.
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Erin has written a program which presents a user with multiple-choice quiz questions to answer and calculates a percent score based on the number the user got right or wrong. Each question has 5 possible answers, and scores presented are from 0 to 100 percent inclusive. Which of the following could be represented by a boolean variable?
The correct answer choice for a particular question.
The percent score of the user
Whether a user got a specific question right or not
The number of questions in the quiz.
Answer explanation
This is correct. A boolean variable can have two possible values - true or false. This makes ideal for determining if a user got an individual question right (true) or not (false).
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following statements are NOT true about high level programming languages? Select one answer:
Code written using high level languages is relatively easy for humans to read, write and parse
Code written using high level languages usually requires compiling before it can be run
Code written using high level languages is guaranteed to be ambiguous
Answer explanation
This is correct. This is a false statement as programming languages are unambiguous (when properly documented), meaning a program only has one possible way of being interpreted.
Create a free account and access millions of resources
Similar Resources on Quizizz
19 questions
3.3.1/3.3.2 Levels of Programming Languages & Translators

Quiz
•
10th Grade
22 questions
Programming Languages and Translators

Quiz
•
10th Grade
20 questions
GCSE Computer Science Programming Knowledge Check Jan 19

Quiz
•
10th Grade
18 questions
SC025 3-weeks enhancement 1

Quiz
•
12th Grade
15 questions
1.2.4 Types of Programming Language

Quiz
•
12th Grade
15 questions
Programming Basics, Unit 10 Review

Quiz
•
9th - 12th Grade
20 questions
SC025 - Topic 1 (Introduction to Programming

Quiz
•
KG - 12th Grade
20 questions
A2-T16-Translation software

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade