Python Variables and Subroutines

Python Variables and Subroutines

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Simdig

Simdig

12th Grade - University

10 Qs

12AIT - All About W3C <3

12AIT - All About W3C <3

10th Grade - University

18 Qs

Microsoft Excel

Microsoft Excel

10th Grade

10 Qs

WJEC GCSE ICT Unit 1 E-Mail

WJEC GCSE ICT Unit 1 E-Mail

9th - 10th Grade

13 Qs

Scratch

Scratch

KG - Professional Development

10 Qs

Cyber Skills Quiz 1 - Y9

Cyber Skills Quiz 1 - Y9

9th Grade

19 Qs

Cyber Security KS4

Cyber Security KS4

8th - 12th Grade

15 Qs

LA1.C1: Introduction to Small Basic

LA1.C1: Introduction to Small Basic

9th Grade

15 Qs

Python Variables and Subroutines

Python Variables and Subroutines

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Ray Heyob

Used 8+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given the statement, PRINT ((x*2<4)) and ((5>x)), what output of x will result in true(1)

1

2

3

4

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which variable name shows the use of proper naming conventions?

userChoice1

variable_1

Button1

Abc

variable1

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will this print to the screen?


print(2*4)

2*4

8

4

error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What do we use variables for?

To store data

Print data

Produce functions

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To get the users input what function do we use?

input

input<>

input()

INPUT()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be printed to the screen?

5

10

5 + 10

15

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be printed to the screen?

5 + John

Syntax error - you cannot add str and int together

John

JohnJohnJohnJohnJohn

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?