WorksheetsIntroduction to Programming
Total questions: 27
Worksheet time: 27mins
What is an algorithm?
A sequence of steps that lead to the solution of a problem.
An infinite set of steps
A drawing
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
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
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
print "Hello"
How can an algorithm be represented?
As a flowchart only
As pseudocode only
As a flowchart or pseudocode
<
distanceToSchool = 10
What is the value of the variable?
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
What section of a Pascal program is used to declare variables and assign data types? ......
BEGIN
CONST
VAR
TYPE
The actual instructions for the program to run can be found after _____________
The 'WRITELN' statement
The 'VAR' statement
The 'BEGIN' statement
The 'CONST' statement
Which of the following is a valid Pascal output statement?
print('Hello Class!');
println('Hello Class!');
write("Hello Class!');
writeln('Hello Class!');
What is this ( := )?
The equal sign
The assignment operator
The assignment sign
The equal operator
In the programming language Pascal, which of the following is NOT a standard data type?
floating point
char
boolean
integer
What would be the result of the following Pascal statement?
write( 'Total is', 20 );
Total 20
Total = 20
20
Total is 20
Which statement is the correct one for input in Pascal?
input(num);
scanf(num)
readln(num);
inputln(num);
Which is the correct variable declaration statement?
name := string;
string : name;
name : string;
string := name;
Briefly Compare High Level Languages vs Low Level Language
In your own words. What is Syntax?
Explain the use of Internal & External Documentation.
.
.
The action of fixing errors on your code
coding
hacking
debugging
algorithm
Define 2 of the following terms:
webpage, website, URL, HTML, HTTP
