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
18 questions
OCR GCSE Computer Science: 1.1 Architecture (Part 2)

Quiz
•
10th Grade
17 questions
Translators

Quiz
•
9th - 12th Grade
18 questions
Programming Terms & Structures

Quiz
•
11th Grade
17 questions
Micro:bit Python #1

Quiz
•
9th - 12th Grade
15 questions
Quiz on Computational Thinking and Representing Algorithms 10B

Quiz
•
10th Grade
20 questions
Grade 10 - Reviewer

Quiz
•
10th Grade
20 questions
Translators and Computing Languages: GCSE 9-1

Quiz
•
9th Grade - University
17 questions
High and low level languages

Quiz
•
10th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University