Font size
Worksheetsprogramming
Total questions: 132
Worksheet time: 41mins
Which of the following is a CONDITIONAL
jump 5 times
if you see an arrow then jump 5 times else sit down
if you see an arrow
An INPUT is
information that goes INTO a computer or device
information that comes OUT of a computer or device
An OUTPUT is
information that goes INTO a computer or device
information that comes OUT of a computer or device
what is a LOOP function?
something that only happens once
something that gets repeated
What is a program
A set of instruction to complete a task
something you watch on TV
What is a BUG in a program?
a small insect
an error in the code
The word sequence means
to stop
to do something in order
What is a computer program?
a collection of instructions that performs a specific task when executed by a computer
Something you can use to write a document
Coding
the act of creating a computer program
a collection of instructions that performs a specific task when executed by a computer
a loop is a sequence of instructions that is continually repeated until a certain condition is reached
What is an algorithm?
a well-defined procedure that allows a computer to solve a problem
The first step of a computer program
a named section of a program that performs a specific task. In this sense it is like a type of procedure or routine
step
function
loop
conditional statement
a sequence of instructions that is continually repeated until a certain condition is reached
variable
function
conditional statement
loop
an error, flaw, failure or fault in a computer program or system that causes it to produce an incorrect or unexpected result
iteration
virus
bug
variable
set of rules performed if a certain condition is me, often referred to as if/then statements
computer program
conditional statement
function
algorithm
some known or unknown quantity of information
number
variable
equation
algorithm
refers to physically or automatically adding data to a system
input
output
coding
bug
Data generated by a computer
input
output
bug
loop
Which of the following is an example of an output device?
mouse
keyboard
printer
Which of the following is an example of an input device?
speakers
monitor
keyboard
printer
What is a variable?
Any inputted data
A type of algorithm
A laballed part of the computer's memory
A way of repeating a block of code
What type of data would your name be?
Real
Boolean
Integer
String
What type of data would Pi be?
Real
Integer
Boolean
Character
What type of data would the letter 'K' be?
Boolean
String
Character
Real
What type of data would either True or False be?
String
Character
Real
Boolean
What type of data would your age in years be?
Real
Integer
String
Boolean
What term is used to describe a variable being given a value?
Equals
Assignment
Input
Algorithm
What is meant by the term iteration?
A list of instructions for completing a task
Repeating a block of code
Giving a value to a variable
Breaking a problem down into simple parts
What is meant by the term 'selection'?
Giving a value to a variable
Making a decision between different conditions
Waiting for user input
Outputting the result of a calculation
Which of the following is NOT a mathematical operator?
+
=
/
&
Which of the following is a relational operator?
+
-
/
>
Which of the following is a logical operator?
IF
THEN
AND
ELSE
Which of the following is NOT a logical operator?
AND
OR
NOT
IF
In this algorithm, on what line is iteration first used?
3
4
5
6
In this algorithm, which of the following is a variable?
password
loop
output
while
Binary is the only language a computer can understand
True
False
Computers must translate everything into binary
True
False
Which level of a programming language is Machine Code?
Low
High
Which level of a programming language is Assembly Code?
Low
High
Which level would create the fastest code to execute?
Low
Assembly
High
Which level would create the easiest code for humans to understand?
Low
Assembly
High
Visual Basic is an example of a High Level programming language
True
False
Which generation?
Machine Code - Low
Assembly Code - Low
High Level
Which generation?
Machine Code - Low
Assembly Code - Low
High Level
Which generation?
Machine Code - Low
Assembly Code - Low
High Level
High Level Code is easier for humans to understand as it is written in English
True
False
distanceToSchool = 10
What is the value of the variable?
<
A flowchart is diagramatic whilst pseudocode is written in a programming language (eg. VB or Java)
What’s an algorithm?
A set of step-by-step instructions to resolve a problem
An algorithm is a type of diagram
Patterns and trends used to solve a problem
A programming language
What problem would you solve with an algorithm?
Study
Music
Math
All of the above.
How can't an algorithm be represented?
As a flowchart
As pseudocode
Coding
As a flowchart or pseudocode
Which picture can be best described as the principle of "algorithm"?
Why is learning to program an important skill?
Because we all need to know how computers work
It teaches us how to solve problems
Without it we will not be able to fix our computers in the future
There is no reason to learn programming
What does this flowchart symbol represent?
Starting and stopping
Actions
Sub-routines
Decisions
What does this flowchart symbol represent?
Starting and stopping
Actions
Sub-routines
Decisions
What does this flowchart symbol represent?
Starting and stopping
Actions
Sub-routines
Decisions
What does this flowchart symbol represent?
Starting and stopping
Actions
Sub-routines
Decisions
What is a Variable?
It is a place where you can store some data
It is a place in your code that changes
It is a name given to a special sub-routine that changes how the program works
It is when you want to add two number together
This is a graphical representation of an algorithm
Computer Program
Binary Diagram
Decomposition
Flowchart
What is an Algorithm?
A picture that you use to make a program
A precise set of instructions
Shapes and symbols connected together
Breaking a problem down into smaller tasks
Loop
Loops that have a predetermined beginning, end, and increment (step interval).
The action of doing something over and over again.
A description of the behavior of a command, function, library, API, etc.
To repeat in order to achieve, or get closer to, a desired goal.
Specific instructions given to a computer.
output
list
rules
command
Precise sequence of instructions for successfully carrying our a task. It can be written in everyday language but the steps might be capable of translation into a programming language.
Decomposing
Algorithm
Logic
Loop/ Repeat
What is a computer program?
a collection of instructions that performs a specific task when executed by a computer
Something you can use to write a document
a named section of a program that performs a specific task. In this sense it is like a type of procedure or routine
step
function
loop
conditional statement
a sequence of instructions that is continually repeated until a certain condition is reached
variable
function
conditional statement
loop
an error, flaw, failure or fault in a computer program or system that causes it to produce an incorrect or unexpected result
iteration
virus
bug
variable
set of rules performed if a certain condition is me, often referred to as if/then statements
computer program
conditional statement
function
algorithm
some known or unknown quantity of information
number
variable
equation
algorithm
What is an Algorithm?
A picture that you use to make a program
A precise set of instructions
Shapes and symbols connected together
Breaking a problem down into smaller tasks
Why is learning to program an important skill?
Because we all need to know how computers work
It teaches us how to solve problems
Without it we will not be able to fix our computers in the future
There is no reason to learn programming
Which statement is NOT correct?
Programming is writing computer code.
Programming is for computers to do a task.
Algorithms are used by everyone.
Computer program understands a human language.
Which statement is NOT correct?
Algorithm is a computer language that a computer understands.
Algorithm has a set of instructions to follow.
One of examples of algorithms is a cooking recipe.
To tell a computer to do something, a program must be written in a computer language.
Which statement is NOT true?
There are many different programming languages.
Scratch is not a programming language.
Programmers are like translators who knows how to talk to computers.
Instructions for computers have to be precise and clear.
What is a programming language?
Written English
A language that computer creates.
A language that a computer understands.
A series of step by step instructions
Which is NOT an example of algorithm?
Poem
Car manual
Written note for how to make a cup of tea
Recipe
What is wrong with the following "code" for opening a bottle?
1. Grip cap with index finger and thumb
2. Remove cap
3. Twist counter-clock-wise until seal is broken
too many steps
not specific
function doesn't apply to every bottle
instructions are out of sequence
A good algorithm must be:
ambiguous
simple
open-ended
detailed
_______ operators are used to compare two values of the same type.
Arithmetic
Relational
Logical
A data value that does not change during the execution of a program is _____.
Variable
Constant
Character
