Some Python basics

Some Python basics

6th - 8th Grade

16 Qs

quiz-placeholder

Similar activities

Python for Class 7

Python for Class 7

7th - 8th Grade

11 Qs

Basics Python

Basics Python

8th - 10th Grade

20 Qs

Python

Python

6th - 10th Grade

17 Qs

Python Review Quiz

Python Review Quiz

7th - 9th Grade

20 Qs

Python Part 1

Python Part 1

1st Grade - University

16 Qs

Codesters Units

Codesters Units

6th - 8th Grade

20 Qs

Entry Level - Programming Techniques

Entry Level - Programming Techniques

8th - 9th Grade

13 Qs

Intro to Python

Intro to Python

6th - 8th Grade

20 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?