Some Python basics

Quiz
•
Computers
•
6th - 8th Grade
•
Hard

M Ellis
FREE Resource
16 questions
Show all answers
1.
DRAG AND DROP QUESTION
1 min • 5 pts
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) .
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
Similar Resources on Wayground
15 questions
Intro to Small Basic

Quiz
•
KG - 7th Grade
16 questions
Iteration Recap

Quiz
•
8th - 9th Grade
16 questions
Program Development - Python: Code Basics 1

Quiz
•
8th - 10th Grade
16 questions
Python - Variables and Input

Quiz
•
1st - 10th Grade
20 questions
Python year 9

Quiz
•
8th - 11th Grade
11 questions
print(), int and input() - Python

Quiz
•
6th - 8th Grade
14 questions
Data types and Input

Quiz
•
7th - 9th Grade
17 questions
Python Review

Quiz
•
7th - 8th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Computers
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
13 questions
Primary and Secondary Sources

Quiz
•
6th Grade
15 questions
Decimal Operations

Quiz
•
6th Grade
10 questions
Plotting Points on the Coordinate Plane

Quiz
•
7th - 8th Grade