Font size
Worksheetspython quiz
Total questions: 92
Worksheet time: 1hrs 22mins
print "Hello"
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
Какой язык программирования ты учил последние полгода?
Python
Delphi
C/C++
PHP
Для вывода сообщений на екран консоли используеться функция:
input()
print()
int()
string()
Для преоброзования даных в число испульзуется функция:
string()
print()
input()
int()
Для преоброзования даных в текст используется функция:
string()
input()
print()
int()
Для развлетвения используется:
if
while
for
def
Перед названием функции должно быть:
def
for
if
while
Для цикла используют:
if
while
def
class
Для создания класса используют ключевое слово:
for
class
if
while
> – это следующий знак:
больше
меньше
больше или равно
меньше или равно
< – это следующий знак:
больше
меньше
больше или равно
меньше или равно
Что будет выведено на экран?
42 + 5
42
Mamkin hatzker!
Rodion
Символ переходан на новую строку
\v
\t
\n
\r
Что будет выведено на экран?
42 + 5
42
47
5
Что будет выведено на экран?
You are a Rodion! I don't know you!
You are a stranger! I don't know you!
Hello, Kyrylo!
Hello, Rodion!
What would this print?
What is the Python built-in function used to display numbers and text on the screen?
input
output
command
Each item in a list has an index. What is the first index in a Python list?
0
1
a
A
What will the output be from the following Python code?
Print("Hello world!")
NameError
Hello world!
"Hello world"
Print(Hello world!)
What is the Python built-in function to converts a number to a string?
str()
int()
parseInt()
convert
What will the output be from the following Python code?
print(Hello world!)
Hello world!
SyntaxError
Hello world
print(Hello world!)
What will the output be from the following Python code?
print(9/3)
3
3.0
9/3
SyntaxError
Which of these is correct Python conditional statement?
IF answer == "Yes":
if answer == "Yes"
if answer == "Yes":
if answer = "yes":
What will the output be from the following code?
print(3+4)
3+4
7
SyntaxError
print(3+4)
If you want to create an empty list called colours in Python, which of the following is correct?
colours = [ ]
colours = ( )
colours = { }
colours = <>
What sort of robot is this?
Humanoid
Non Humanoid
What sort of robot is this?
Humanoid
Non Humanoid
Which of the following are advantages of using robots?
They don’t get tired
They don’t need to be paid
They don't need electricity
They can adapt to change
Which of the following are advantages of using humans?
They don’t get tired
They don’t need to be paid
They don't need electricity
They can adapt to change
Which flowchart shape is this?
Decision Box
Input / Output box
Process box
Start / Stop box
Which flowchart shape is this?
Decision Box
Input / Output box
Process box
Start / Stop box
Which flowchart shape is this?
Decision Box
Input / Output box
Process box
Start / Stop box
Which flowchart shape is this?
Decision Box
Input / Output box
Process box
Start / Stop box
What is an algorithm?
a step by step set of instructions
a musical instrument
a programming language
a piece of hardware
a sensor which detects if a robot has collided with another object
proximity sensor
bumper
light sensor
temperature sensor
a sensor which measures how hot or cold something is
proximity sensor
bumper
light sensor
temperature sensor
a sensor which measures how bright or dark it is
proximity sensor
bumper
light sensor
temperature sensor
Robots and computer systems are useful for doing ....
boring, repetitive and dangerous tasks
creative, problem solving tasks and being able to think for themselves
humans are better at doing ....
boring, repetitive and dangerous tasks
creative, problem solving tasks and being able to think for themselves
AN algorithm is a sequence of instructions
True
False
AN algorithm is a sequence of instructions that needs to be in the right order
True
False
An algorithm is a sequence of instructions that needs to be in the right order and it needs to be ......
short
precise
complicated
written in English
AN algorithm needs to be precise to ensure there are no errors.
True
False
An algorithm is used to create a _____________________ such as a game or an application.
application
sequence
instruction
program
subtraction
Less than or equal to
