Unit 1 Review

Unit 1 Review

10th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

3.3.1/3.3.2 Levels of Programming Languages & Translators

3.3.1/3.3.2 Levels of Programming Languages & Translators

10th Grade

19 Qs

Programming Languages and Translators

Programming Languages and Translators

10th Grade

22 Qs

GCSE Computer Science Programming Knowledge Check Jan 19

GCSE Computer Science Programming Knowledge Check Jan 19

10th Grade

20 Qs

Python 2

Python 2

9th - 12th Grade

20 Qs

GCSE CS - 2.5 Translators and Facilities of Languages

GCSE CS - 2.5 Translators and Facilities of Languages

9th - 11th Grade

23 Qs

Python

Python

7th - 10th Grade

20 Qs

2.5 Translators, Compilers & Interpreters

2.5 Translators, Compilers & Interpreters

12th Grade

15 Qs

Coding Karel 2

Coding Karel 2

KG - University

20 Qs

Unit 1 Review

Unit 1 Review

Assessment

Quiz

Computers

10th - 12th Grade

Hard

Created by

Stephanie Lugo

Used 21+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following best describe examples of abstraction

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?