NEW
Font size
WorksheetsEOT Revision Programming and Algorithms
Total questions: 30
Worksheet time: 16mins
What is the // used for in C sharp programming
input
output
comment
declaration
In an algorithm how does one show the end of an IF statement
full stop
ENDIF
semi colon
stop
Which of the following is used to store a number in a variable?
INPUT
IF
End
How many variable were declared in this program?
1
2
3
4
What is the purpose of the statement in line 7?
To prompt for his year of birth
To store the birth year
To make a decision
To display age
What is the best example of the output from line 10?
age is 25
25
age = 2=5
your age is 25
What type of program is this?
selection
repetition
sequence
for loop
Based on the declaration in lines 5 what type of data does "age" store?
whole number
decimal
fraction
positive
What is the purpose of line 8?
declaration of the variable birthyear
storing a value in birthyear
printing from birthyear
prompting for birthyear
Which line stores the result in the variable "age"?
5
8
13
15
What is missing from line 8?
then
;
<
end
In line 8, what does the symbol ">" mean?
Less than
greater than
go right
forward
What would be printed if line 8 is false
n
n1
false
endif
What type of flowchart is this?
selection
sequence
repetition
loop
Which is the missing statement in this flowchart?
write num2
write num1
if num1 > num2
if num1 = num2
Which statement is the same as input?
Start
Stop
Print num1
Read num1, num2
Name two ways that algorithms can be done?
videos and audio
flowchart or pseudocode
programs and code
What is pseudocode?
An algorithm represented using text
A type of programming language
A graphical representation of an algorithm
What is a flowchart?
An algorithm represented using text
A type of programming language
A graphical representation of an algorithm
What is the symbol for a decision in a flowchart?
A diamond
A rectangle
A parallelogram
An oval
Which of these is the correct symbol for a process in a flowchart?
A diamond
A rectangle
A parallelogram
An arrow
How are symbols connected together in a flowchart?
by arrow
by words
by numbers
by diamonds
Which symbol is used for an input or output in a flowchart?
A parallelogram
A diamond
A circle
oval
Used to start and end a flowchart
process
decision
terminator
input
When can algorithms be used?
Only with computers and devices
To design a solution to any problem
For programming activities only
Only for some internet activities
What type of program is this?
sequence
selection
repetition
loop
Which method, used in this program, changes the input to integer?
ReadLine()
WriteLine()
ToInt32()
Main()
Which statement is used to display output?
Console.ReadLine()
Convert.ToInt32()
Console.WriteLine()
Convert.ToDouble()
Which word means the same as " to find errors in your program and fix them"
run
compile
declare
debug
If a programmer wants to declare a variable to store the name of a person, which of the following data types should he use?
Integer
Real
Boolean
String
