Font size
Worksheetsquiz1B1
Total questions: 20
Worksheet time: 11mins
where is this symbol used in a Flowchart?
In the beginning
At the end
Both in the beginning and end
Identify the symbol used in flowchart______
Decision box
Comparison box
Both
This symbol can be used for writing______
INPUT A,B
Correct
Incorrect
May be correct
Click to enlargen the image. What decision will John make if it is 7:15 am?
Take the subway
Take the bus
Walk
Check the time
What is important to remember when designing an algorithm?
whether to use a flowchart or pseudocode
the instructions are in the correct order
that it must be easy to read
print("3+4")
What is the output of the following code: print 10//3
3.5
3
1
Error
print("Hello" + str(2) + "world!")
What gets printed?
cost
0
0+5.25
5.25
What does print("hello) display?
hello
gives you an error
"hello"
"hello
statement in python to find xy
x*y
x^y
x**y
x//y
Which is NOT a data type in Python?
integer
boolean
anchor
float
What is the name of the variable in this program?
colour
input
" "
What are TWO ways I can add 100 to the variable "score"?
score += 100
score = score + 100
score + 100
score = 100
What is the result of the following condition if:
A = 30
B = 21
C = 71
(A > B and A > C) or B < C
True
False
What is an algorithm?
A set of steps for performing a task, like a recipe.
To add something to the end; for example, adding letters onto the end of a string or adding elements to the end of a list or array.
A value passed to a function.
A rhythm designed for people named "Al."
age = '5'
In the code above, age is a
string
integer
floating point
What are variables in Python?
Magical spells
Special codes
Containers for storing information
Hidden messages
