Some Python basics

Some Python basics

6th - 8th Grade

16 Qs

quiz-placeholder

Similar activities

Python Inputs

Python Inputs

6th - 10th Grade

11 Qs

Python year 9

Python year 9

8th - 11th Grade

20 Qs

Python - Data Types and Operators

Python - Data Types and Operators

7th Grade

12 Qs

IST P-STEM Unit 1 Hardware and Python Review

IST P-STEM Unit 1 Hardware and Python Review

8th - 12th Grade

20 Qs

Python (The Basics)

Python (The Basics)

6th - 10th Grade

20 Qs

Year 9 Homework Quiz 1 - Python

Year 9 Homework Quiz 1 - Python

8th Grade

15 Qs

Python - Variables and Input

Python - Variables and Input

1st - 10th Grade

16 Qs

Input and Output Operations in Python

Input and Output Operations in Python

6th - 10th Grade

11 Qs

Some Python basics

Some Python basics

Assessment

Quiz

Computers

6th - 8th Grade

Hard

Created by

M Ellis

FREE Resource

16 questions

Show all answers

1.

DRAG AND DROP QUESTION

1 min • 5 pts

Media Image

The ​ (a)   in the program are sword, axe, dagger and weapon.

if, elif and else are ​ (b)   .

print and input are ​ (c)   .

int ​ (d)   a string to an ​ (e)   .

selection
functions
casts
integer
assignments
float
sequence
iteration
variables

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

A ??? is a storage location paired with an associated symbolic name (an identifier) which contains a value.

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

A choice or decision in a program.

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

A program that runs one line after another in order

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

The '=' symbol is used to ??? a value to a variable

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following checks if something is equal to, in Python?

=

==

===

\=

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

num1 = int(input("Enter a number "))

Which statement describes the code above correctly?

The variable num1 is assigned to the input function that prompts the user to type in a response by displaying the string 'Enter a number'. It casts the answer as an integer.

The string num1 is assigned to the input function that prompts the user to type in a response by displaying the string 'Enter a number'. It casts the answer as an integer

The variable num1 is assigned to the input function that prompts the user to type in a response by displaying the string 'Enter a number'. It casts the answer as a float.

The variable num1 is assigned to the input function that prompts the user to select a response by displaying the string 'Enter a number'. It casts the answer as an integer

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?