Search Header Logo

Some Python basics

Authored by M Ellis

Computers

6th - 8th Grade

Some Python basics
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

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?