Search Header Logo

KS3-Yr8-Python Inputs and Outputs Quiz

Authored by Mr McCallion

Computers

9th Grade

Used 8+ times

KS3-Yr8-Python Inputs and Outputs Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a 'string' in programming?

A type of function

A data type that consists of one of many digits

A data type that consists of one or many alphanumeric characters or symbols

A type of variable

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if quotes are not used when outputting a string in a print() statement?

The program outputs the string

The program crashes with no error

The program looks for a variable with that name

The program outputs "TypeError" with some further information

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can a string and a variable be joined together in a print() statement?

Using the '+' operator

Using the '-' operator

Using the '&' operator

Using the '*' operator

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of using the '+' operator to form sentences in python?

To multiply two strings

To join two strings

To subtract two strings

To divide two strings

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What should be remembered when using the '+' operator to form sentences?

Add commas in the strings

Use the '*' operator instead

Add spaces in the strings in the appropriate positions

Use the '-' operator instead

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?