What will happen when this code is run?
Python KS3

Quiz
•
Computers
•
6th - 9th Grade
•
Hard
Debbie Watson
Used 279+ times
FREE Resource
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Nothing there is an error on line 2
It will print the following:
Hello World!
Oh, you are a wally
It will print the following:
"Hello World!"
Then wait for next instruction
Nothing, there is no instruction given to the user.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will happen when this code is run?
Nothing there is an error on line 5
It will print the following:
10
10
20
It will print the following:
13.3333334
It will print the following:
10
10
20
Average = 13.33333334
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will happen when this code is run?
Nothing there is an error on line 2
It will print the following:
is it raining today?
It will print the following:
is it raining today, yes or no?
It will print the following:
is it raining today?
Is it windy today?
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will happen when this code is run and the user types in yes?
It will print the following:
is it raining today?
yes
The code will return:
Better take a brolly
or you will get wet
Enjoy the weather
Is it windy today?
It will print the following:
is it raining today?
yes
The code will return:
Better take a brolly
or you will get wet
Is it windy today?
It will print the following:
is it raining today?
yes
The code will return:
Better take a brolly
or you will get wet
It will print the following:
is it raining today?
yes
The code will return:
Better take a brolly
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Where is there an error in this code?
Line 2
No need for white space
Line 3
No need for ==
Line 8
There is no print instruction
Line 3 missing a colon ( : )
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will happen when this code is run and the user types in Finham Park?
The code will return:
Try again...
The code will return:
You bet it is, ", name, "is the best!
The code will return:
You bet it is, Finham Park is the best!
Nothing there is an error on
Line 5, missing a colon ( : )
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the operator != on line 3 represent
Is exactly
Is an integer
Is a statement
Is not
Create a free account and access millions of resources
Similar Resources on Quizizz
12 questions
Python

Quiz
•
7th - 8th Grade
20 questions
End of year quiz: Small Basic

Quiz
•
7th Grade
16 questions
Python - Variables and Input

Quiz
•
1st - 10th Grade
16 questions
Variables, Inputs and Concatenation

Quiz
•
9th Grade
17 questions
Python KS3

Quiz
•
8th Grade
15 questions
Selection in Python

Quiz
•
1st - 9th Grade
20 questions
Python - lists,loops,basics

Quiz
•
9th - 11th Grade
14 questions
GCSE Computing - Subprograms

Quiz
•
9th - 10th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
20 questions
Final Exam Vocabulary

Quiz
•
6th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade