Python KS3

Python KS3

Assessment

Flashcard

Computers

6th - 9th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

17 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What will happen when this code is run? Options: 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.

Media Image

Back

It will print the following: Hello World! Oh, you are a wally

2.

FLASHCARD QUESTION

Front

What will happen when this code is run? Options: 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

Media Image

Back

It will print the following: 13.3333334

3.

FLASHCARD QUESTION

Front

What will happen when this code is run? Options: 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?

Media Image

Back

It will print the following: is it raining today?

4.

FLASHCARD QUESTION

Front

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 Is it windy today?

Media Image

Back

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?

5.

FLASHCARD QUESTION

Front

Where is there an error in this code? Options: Line 2, No need for white space, Line 3, No need for ==, Line 8, There is no print instruction, Line 3 missing a colon ( : )

Media Image

Back

Line 3 missing a colon ( : )

6.

FLASHCARD QUESTION

Front

What will happen when this code is run and the user types in Finham Park?

Media Image

Back

The code will return:
You bet it is, Finham Park is the best!

7.

FLASHCARD QUESTION

Front

What does the operator != on line 3 represent?

Media Image

Back

Is not

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?