Font size
WorksheetsJuly
Total questions: 194
Worksheet time: 2hrs 10mins
KEY TERMS
The things that are considered right and wrong, it consists of the standards of behaviour that are acceptable within society, they are the moral principles and values.
ethical
legal
cultural
environmental
KEY TERMS
The things that are actually right and wrong, things are passed and enforced to help protect the users of computers.
ethical
legal
cultural
environmental
KEY TERMS
How groups of people of particular beliefs, practices or languages may be affected by a particular situation concerning the use of computers/technology.
ethical
legal
cultural
environmental
KEY TERMS
How we impact the natural world, E-Waste, sustainability, recycling and energy demand, are issues regarding technology.
ethical
legal
cultural
environmental
In what year was the Data Protection Act passed?
(a)
LEGISLATION
This act looks after the personal data of people.
(a)
Select all the things an organisation must do if they collect your personal data.
(according to the Data Protection Act)
keep the data accurate and up to date
it must not be kept any longer than necessary
must not be transferred to other countries
must share it with other people who request it
Select all the things an organisation must do if they collect your personal data.
(according to the Data Protection Act)
must notify you of a breach within 72 hours
must keep any breaches secret
must be protected from unauthorised access
can be viewed by anyone who wished to view it
Select all the rights you have, according to the Data Protection Act
the right to view your data for free
the right to be forgotten
must consent to having marketing sent to you
the right to withdraw consent
the right to change inaccurate data
Select all the penalties for breaking the Data Protection Act
warnings sent to the organisation
ordering the company to comply
a fine of 4% of the company turnover
a fine of 6% of the company turnover
... are sent to a user's computer from websites, thy allow a website to store data about your browsing, remember you are logged in, track you and target your advertising. They must be consented to.
(a)
In what year was the Copyright, Designs and Patents Act passed?
(a)
Select all the examples which are protected by the Copyright, Designs and Patents Act
artwork
ideas
music
films
Who can edit the material, under the Copyright, Designs and Patents Act?
the owner
anybody
someone with permission
the government
How many years after the death of a creator dies the Copyright, Designs and Patents Act last?
(a)
Select all the penalties of breaking the Copyright, Designs and Patents Act
£3000
up to 1 year of imprisonment
up to 10 years of imprisonment
£5000
A translator for high level code that translates code all at once into machine code
Assembler
Compiler
Interpreter
Programmer
A translator for high level code that translate codes as the program is being run.
Compiler
Interpreter
Assembler
Programmer
Enables the program to be run in an IDE to test the program
Breakpoints
Code Editor
Error diagnostics
Run time environment
Helps the programmer follow syntax (programming rules) by colour coding, line numbering, auto-indentation etc...
Error diagnostics
Run time environment
Translator
Editor Tools
A programming language like Python that is designed to be easy for humans to read and write and uses English command words and needs to be translated using a compiler or interpreter
Translator
High level language
Low level language
Machine code
A programming language that is uses short/basic English, is harder for a human to understand
Translator
High level language
Low level language
Machine code
Converts either a high level language or a low level language into machine code
Translator
High level language
Low level language
Machine code
Binary code that can be directly run by a computer without being translated
Python Code
High Level Code
Low Level Code
Machine Code
Helps the programmer by highlighting errors and giving some information/feedback
Error diagnostics
Run time environment
Translator
Editor Tools
Code is translated one at a time (errors are given as the code is running)
Compilier
Interpreter
Code is translated all at once (and a list of errors returns at the end)
Compilier
Interpreter
print("Hello World!") is an example of...
High-level language
Low-level language
Machine Code
10001010 10011101 is an example of...
High-level language
Low-level language
Machine Code
'LDA 14, STA 5, INP 12' is an example of...
High-level language
Low-level language
Machine Code
We sometimes use Low-level language because (tick 2)...
It uses less memory (RAM)
It is easier to spot errors
It is easier for humans to read as uses more English-type words
The code can be passed easily to different CPUs
We sometimes use High-level language because (tick 2)...
It uses less memory (RAM)
It is easier to spot errors
It is easier for humans to read as uses more English-type words
The code can be passed easily to different CPUs
An error in a program that prevents the program from running as expected.
mistake
bug
crash
help
What is a list of steps that a computer can follow to finish a task called?
algorithm
instructions
directions
commands
An error in a program that prevents the program from running as expected.
mistake
bug
crash
help
What is a list of steps that a computer can follow to finish a task called?
algorithm
instructions
directions
commands
What is a computer bug?
An internet virus
A search
A bonus question
An error
What happens when you debug?
A new program starts
The computer dies
Errors are fixed
New problems start
What can you make with programming?
Games
Websites
Apps
All of these
What is an algorithm?
a list of shopping items you need
a list of tech items you want
a list of steps to complete a task
What is debugging?
taking an insect out the computer
fixing a program in an algorithm
breaking down a problem
How many times will the bee collect nectar?
5
7
8
6
A list of steps to complete a task
Algorithm
Program
CPU
Hardware
the brains of the computer where most calculations take place.
Algorithm
Program
CPU
Hardware
Finding and fixing problems in an algorithm or program.
Software
Bug
Debug
Computer
What kind of device is a keyboard?
A. Internal device
B. Input device
C. Output device
D. Storage device
Which of the following is an output device?
A. DVD-ROM
B. Touchpad
C. Hard drive
D. Printer
What is the main circuit board inside the computer called?
A. CD-ROM
B. Video card
C. ROM
D. Mother board
Which of the following would hold the most information?
A. 500 megabytes
B. 5 gigabytes
C. 5,000,000 bytes
D. 50,000,000 kilobytes
Eric’s computer slows down when he opens several computer programs. Why does this happen?
A. Eric has limited RAM space
B. Eric has a small hard drive
C. Eric does not have a powerful video card
D. Eric has a bad ROM
Which of the following is usually used to connect a monitor to a computer?
A. DVI cable
B. USB cable
C. Ethernet cable
D. SATA cable
Which of the following software maintenance steps erases gaps caused by deleting files from the hard drive?
A. Update system software
B. Defragging
C. Virus scan
D. Installing firewall
Joe’s computer crashed and now he is looking for a replacement. Which of the following criteria is the least important?
A. RAM
B. Money
C. Color
D. Usage
In a PC, which of the following components stores the BIOS?
A. CPU
B. RAM
C. ROM
D. Hard drive
What does the BIOS chip stand for?
A. Basic Input Output System
B. Basic Input Operating System
C. Basic Internal Operating System
D. Basic Internal Output System
A sequence of steps is described as a
code
algorithm
processor
cat
Programming is making your own code from nothing
true
false
RAM memory stores information
permanently
for a short period of time
Ram does not store information
not this choice
A function is when
you define a command and give it a name
something is useful
you make a videogame
I don't know
IF a zombie appears, THEN run in the opposite direction.
This sentence is an example of:
Function
Loops
Condition
What do you think of the class so far? No one will see your answers don't worry.
Game mechanics help...
make the game challenging
make the character
make the background
Beyonce
Every game has:
(several options may be correct)
character
goal
setting
background
controls
What is computer science?
Choose the best answer
the science of computers
the study of computing
the study of building computers
What is a loop?
a repetitive sequence
a type of cereal
when you define a new command and give it a name
The brain of a computer is the
fan
motherboard
hard drive
processor
The set of rules that help a sentence or code make sense
syntax
condition
function
loops
My favorite videogame is
holds whole numbers
holds a decimal point in a number
print("Hello world!" * 2)
print(Hello world!)
What is the term for * / + -
Operations
Operators
Operands
Opticals
Select all examples of iteration
FOR loop
WHILE loop
START loop
REPEAT loop
How did python get its name?
The creator invented it whilst in hospital from a snake bite
The code is written in a snaking structure
The creator named it after Marty Python
The creator named it after Monty Python
What will be the output if the user enters 'child' and 'friday'?
£4.00
£2.50
There will be a syntax error
£2.00
What is the process of identifying and fixing errors in your code?
Rebugging
Syntax Solving
Debugging
Abstraction
What will be the output of print ("Theo_is_awesome")
Theo sucks.
theo_is_awesome
Theo is awesome
Theo_is_awesome
Abstraction is the process of removing necessary details from a problem
True
False
What will be the output of: print ("3+57")
3 + 57
90
60
3+57
What is the white space used to enter code called?
Whitespace
IDOL
Shell
IDLE
Python performs calculations in binary integers
True
False
REPEAT loops can only be used when:
The integers in a calculation aren't decimal
The data to be repeated is in hexadecimal
They don't exist in python
Dealing with named variables
What does MOD do in a calculation
returns the decimal outcome of a division
returns the remainder after a division
divides a previous division statement
returns two divided integers to their initial value
What can be used to create a line break in printed text?
\N
\\n
/n
\n
How many variables can you assign in a piece of code?
Depends on your PC's clock speed
256
infinity gauntlet
infinite
What is the term given to breaking down a problem into more, easier to discern steps?
Abstraction
Abtraction
Subtraction
Attraction
Select the best description to explain what a binary search algorithm is.
Put the elements in order, check each item in turn.
Put the elements in order, compare with the middle value, split the list in order and repeat.
Elements do not need to be in order, check each item in turn.
Elements do not need to be in order, compare to the middle value, split the list in order and repeat
12 6 8 1 3
How many comparisons would it take to find number 1?
3 5 9 10 23
How many comparisons would it take to find number 9?
1 5 10 13 48 68 100 101
How many comparisons would it take to find number 101?
Which of these algorithms searches for something by first looking in the middle of a list?
Bubble sort
Merge sort
Linear search
Binary search
Which of these algorithms eliminates half of its possibilities each time it makes a check?
Binary search
Bubble sort
Merge sort
Linear search
What is an algorithm?
Patterns and trends used to solve a problem
A set of step-by-step instructions to resolve a problem
A programming language
What are algorithms used for?
To plan out the solution to a problem
As a platform to program a solution
To test a solution to a problem
Which of these is NOT an algorithm?
Following recipe instructions
Working out how an engine works
Tying your shoelaces
Making a cup of coffee
What does an algorithm need to be (choose more than 1)
Clear instructions
Exact
Easy to understand
Complex
When can an algorithm be used?
Only with computers
For programming
To design a solution to any problem
What is decomposition?
Searches the computer's memory for data
Repeats a program
Getting small part of a problem and adding them together
Breaking down a complex problem
What is abstraction?
Removal of certain details, keeping relevant the information
Stores data in a program for retrieval
Freedom from representing art
Detects errors while program is running
If it is AFTER 7am, what do you need to do?
Take the bus
Take the subway
Check the time
Leave home
What should be considered when designing an algorithm?
If there is more than one way to solve the problem
If the correct hardware is being used
If the correct software is being used
You are at the yellow arrow, pointing in the direction indicated. How would you move to fill in the 2 black squares?
Straight, Turn right, Straight x 1, Fill Square, Straight x 2, Turn left, Straight x 1, Fill Square
Straight x 2, Turn right, Straight x 1, Fill Square, Straight x 2, Turn left, Straight x 1, Fill Square
Straight x 2, Turn right, Straight x 1, Fill Square, Straight x 2, Turn right, Straight x 1, Fill Square
Straight x 2, Turn right, Straight x 1, Fill Square, Straight x 2, Turn left, Straight x 2, Fill Square
A variable is...
A memory location used to store a value that can change.
A memory location used to store a value that cannot change
A constant is...
A memory location used to store a value that can change.
A memory location used to store a value that cannot change
'Sequence' means...
When lines of code only run if a condition is met. e.g. IF, ELIF, ELSE
When lines of code loop e.g. WHILE, FOR
When lines of code runs one line after the other
'Selection' means...
When lines of code only run if a condition is met. e.g. IF, ELIF, ELSE
When lines of code loop e.g. WHILE, FOR
When lines of code runs one line after the other
'Iteration' means...
When lines of code only run if a condition is met. e.g. IF, ELIF, ELSE
When lines of code loop e.g. WHILE, FOR
When lines of code runs one line after the other
A STRING is...
A TRUE/FALSE or YES/NO value
A word, or number not used in Maths.
A whole number
A number with a decimal point
An INTERGER is...
A TRUE/FALSE or YES/NO value
A word, or number not used in Maths.
A whole number
A number with a decimal point
A FLOAT is...
A TRUE/FALSE or YES/NO value
A word, or number not used in Maths.
A whole number
A number with a decimal point
A BOOLEAN value is...
A TRUE/FALSE or YES/NO value
A word, or number not used in Maths.
A whole number
A number with a decimal point
The data value '4.5' would be a...
STRING
INTERGER
FLOAT
BOOLEAN
The data value 'Steve' would be a...
STRING
INTERGER
FLOAT
BOOLEAN
The data value '250' would be a...
STRING
INTERGER
FLOAT
BOOLEAN
The data value 'TRUE' would be a...
STRING
INTERGER
FLOAT
BOOLEAN
The data value 'Phone Number: 07284 281837' would be a...
STRING
INTERGER
FLOAT
BOOLEAN
'Casting' means...
Converting data types e.g. int(), str()
Removing unwanted data
Creating a new variable
Creating a new constant
file = open("textfile.txt", "r") means...
Open a file called 'textfile' and add to it.
Open a file called 'textfile', empty it and then write to it
Open a file called 'textfile' and read it.
file = open("textfile.txt", "a") means...
Open a file called 'textfile' and add to it.
Open a file called 'textfile', empty it and then write to it
Open a file called 'textfile' and read it.
file = open("textfile.txt", "w") means...
Open a file called 'textfile' and add to it.
Open a file called 'textfile', empty it and then write to it
Open a file called 'textfile' and read it.
SQL statements always use...
WHERE
FROM
SELECT
SELECT
FROM
WHERE
FROM
SELECT
WHERE
SELECT
WHERE
FROM
To create a sub program, we use:
We create a random number (between 1-6) with...
random = [1,2,3,4,5,6]
random1-6:
random.num(6)
random.randint(1,6)
The examples of maintainability below are... (select 3):
Comments in code
Indentation
Appropriate variable names
Abstraction
Changing an input so it works in a program (e.g. turning lowercase into uppercase)
Input Sanitation
Input Validation
Input Creation
Input Testing
Testing an input and ensuring it is in the correct format or range
Input Sanitation
Input Validation
Input Creation
Input Testing
Authentication means...
Checking a user is who they say they are (e.g. username/password)
Helping a piece of code become more readable
Testing a program while it is being created,
A syntax error means...
An error that still allows the code to run, however not as expected.
An error that prevents the code from running as it does not follow the code language rules.
A logic error means...
An error that still allows the code to run, however not as expected.
An error that prevents the code from running as it does not follow the code language rules.
prnit("Welcome to the Game")
is an example of a...
Logic Error
Syntax Error
score = 1
print("score")
is an example of a...
Logic Error
Syntax Error
The purpose of testing in programming is... (select 2):
To check that the program hits the user requirements
To save variables in the correct places in RAM
To add comments into the code
To check the code runs as expected.
Final/terminal testing takes place...
Many times throughout a programming project
At the end of a programming project
Iterative testing takes place...
Many times throughout a programming project
At the end of a programming project
Normal test data is used to...
Test a value that is just inside/outside of what should/shouldn't be accepted.
Test a value that is expected in a program and should work.
Test a value that should be rejected by the program.
Boundary test data is used to...
Test a value that is just inside/outside of what should/shouldn't be accepted.
Test a value that is expected in a program and should work.
Test a value that should be rejected by the program.
Erroneous test data is used to...
Test a value that is just inside/outside of what should/shouldn't be accepted.
Test a value that is expected in a program and should work.
Test a value that should be rejected by the program.
What logic gate is this?
AND
NOT
OR
What logic gate is this?
AND
NOT
OR
What logic gate is this?
AND
NOT
OR
If 1 is the input, the output will be...
0
1
If input A is 1, and input B is 1, the output will be...
0
1
If input A is 1 and input B is 0, the output will be...
0
1
DIV means...
Dividing without including the remainder
Dividing, but only writing the remainder
Multiplying the number by itself
MOD means...
Dividing without including the remainder
Dividing, but only writing the remainder
Multiplying the number by itself
^ means...
Dividing without including the remainder
Dividing, but only writing the remainder
Multiplying the number by itself
13 DIV 4 =
(a)
29 DIV 5 =
(a)
63 DIV 10 =
(a)
34 MOD 5 =
(a)
12 MOD 6 =
(a)
100 MOD 9 =
(a)
4^2 =
(a)
2^3 =
(a)
3^3 =
(a)
High-level language means...
A programming language that uses short and basic single words
A programming language that uses English-like words
1s and 0s - used by the CPU
Low-level language means...
A programming language that uses short and basic single words
A programming language that uses English-like words
1s and 0s - used by the CPU
Machine code means...
A programming language that uses short and basic single words
A programming language that uses English-like words
1s and 0s - used by the CPU
" score = input("Enter a number") "
is an example of...
High-level language
Low-level language
Machine code
INP 10
STA 12
OUT 28
is an example of...
High-level language
Low-level language
Machine code
1001 0101
0011 1111
0101 1110
is an example of...
High-level language
Low-level language
Machine code
A translator...
Tests an input and changes it to fit with the program (e.g. lowercase to uppercase)
Tests the code and checks for errors
Tells the program where the variables are stored in RAM
Converts high-level language into machine code so the CPU can run the program.
A complier translator... (select 2):
... is used during development of code
...is used at the end when the code is finished
...is quick and reports errors as is translates
...takes some time and produces a list of errors at the end
An interpreter translator... (select 2):
... is used during development of code
...is used at the end when the code is finished
...is quick and reports errors as is translates
...takes some time and produces a list of errors at the end
2 examples of IDE tools are...
Editor tools (e.g. line numbering, colour coding)
Selection (when lines of code run one after another)
Iteration (when lines of code loop)
Translators
2 examples of IDE tools are...
Variable names must be suitable and appropriately named.
Run-time environment (You can run the code before its finished)
Debugging tools (errors are reported and advice is given to the user)
Selection (lines of code only runs if a condition is met)
The user can input something using the code...
input("Enter a value")
print("Enter a value")
variable("Enter a value")
while("Enter a value")
We can output something using the code...
input("Hello")
print("Hello")
variable("Hello")
while("Hello")
194-203.
Answer the questions below after watching the video
What data type is used to represent fractional numbers in programming?
String
Integer
Boolean
Float
What operator is used to perform exponentiation in programming?
+
**
^
*
What is the result of '15 div 2' in integer division?
7
8
7.5
15
What does the modulus operator (%) compute?
Remainder
Sum
Product
Quotient
Which operation would you use to concatenate two strings?
Subtraction
Concatenation
Multiplication
Addition
What keyword is used to declare a constant in programming?
var
const
let
static
What is the purpose of an 'if' statement in programming?
Define a function
Declare a variable
Repeat a block of code
Make a decision
In a switch statement, what is the 'default' case used for?
To handle unexpected values
To declare variables
To start a loop
To define a function
Which loop will always execute at least once regardless of the condition at the start?
If loop
Do-while loop
While loop
For loop
Which type of loop is controlled by a condition rather than a count?
For loop
While loop
All of the above
Do-while loop
