
Python Basics
Authored by Adon Anglon
Computers
1st Grade - University
Used 21+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the print() function do?
Connects to the nearest printer and prints the current file
Displays the written contents of the entire file
Displays the output of the code in the function
Displays the code written in the function
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
What are the pieces of a for loop?
Colon; :
Parenthesis; ()
Range function; range(int)
Placeholder variable; count
While keyword; while
3.
OPEN ENDED QUESTION
2 mins • Ungraded
In your own words, explain the problem(s) with this code
x = "Akash"
print("Knock knock)
print("Who's there?")
print("It's " + y)
Evaluate responses using AI:
OFF
4.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
What are the errors in this code?
Select all that apply.
var1 = "A"
2nd_var = "B#"
if var1 = 2nd_var:
print("Harmony")
else:
print("Discord")
Nothing is wrong
Invalid variable name
Invalid use of special characters in String
Incorrect Boolean comparison operator
Incorrect syntax for if statement
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What must be added? (Look carefully)
pageCount = 500
if pageCount > 500:
print("This book 500 pages or more!")
else:
print("Find a longer book.")
Add an equal sign to the greater than sign
Add the str() function to 500 in the print statement
Add parenthesis to the if statement
Another ! to the first print statement
6.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
What do the str(), int(), and float() functions have in common? Select all that apply.
(Hint: These functions can "convert" their own types too)
All can properly convert '16' without error
All convert any value to a specified data type
All can convert each other's types always
All can properly use '42.5' without error
All convert one data type to another
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the problem
counter = 0
while counter < 10:
print(counter + 1)
Missing parenthesis from while function
counter variable never increases
Operation within print function
Missing quotation marks from print function
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Review PAT TIK kelas 5
Quiz
•
5th Grade
10 questions
Contact Center Sevices
Quiz
•
7th - 10th Grade
12 questions
ICT P2: Topic 5 - Recording & Presentation
Quiz
•
2nd Grade
10 questions
Coding Concepts A
Quiz
•
3rd Grade
13 questions
Which of these softwares???
Quiz
•
4th - 5th Grade
10 questions
ICT as Platform for Change
Quiz
•
11th - 12th Grade
10 questions
emtech
Quiz
•
12th Grade
10 questions
Visual Basic 2010
Quiz
•
8th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade