
Python Basics

Quiz
•
Computers
•
8th Grade
•
Medium
Bijimol Rajesh
Used 4+ times
FREE Resource
22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1.A player wants to remove the space between the variable name and the text when printing. Which of the following is correct?
print('Hello', name + '.')
print('Hello' "name")
print('Hello' name + '.')
print("Hello', name + '.')
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2.A variable name can start with a number.
True
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3.The player needs to guess the number. Which of the following code snippets is correct?
pick = input('What is your guess?')
num-pick = int(pick)
pick == input('What is your guess?')
num_pick = int(pick)
pick = input(“what is your guess’)
num_pick = int(pick)
pick = input('What is your guess?')
num_pick = int(pick)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4.What is a string in Python?
A data type used for numbers
A sequence of characters
A Boolean value
A type of loop
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5.Which of the following is the correct syntax to define a variable in Python?
name : 'value'
value => name
name = ('value')
value = "name"
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6.What is the purpose of the else keyword in Python?
To declare a function
To handle code when the if condition is False
To define a loop
To import a module
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7.Why do you need to use penup() in Turtle graphics?
To refill the pen’s ink
To undo the drawing
To stop the drawing without leaving marks
All of the above
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Digital Graphics and Pictures

Quiz
•
7th - 8th Grade
26 questions
Y8 - SUM2 - Intro to Python (No Iteration)

Quiz
•
8th Grade
18 questions
Python ծրագրավորման լեզու

Quiz
•
8th Grade
25 questions
Data Types- Python

Quiz
•
7th - 11th Grade
19 questions
Grade 8

Quiz
•
8th Grade
20 questions
Introduction to Python programming

Quiz
•
6th - 8th Grade
18 questions
StVirgils Python Loops and Conditionals Quiz

Quiz
•
8th Grade
20 questions
For vs While

Quiz
•
8th - 10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade
25 questions
How to Email a Teacher- https://youtu.be/NioeNhfpVfI

Quiz
•
6th - 8th Grade
20 questions
Computer Hardware

Quiz
•
6th - 8th Grade
21 questions
Gear Ratio Practice

Quiz
•
6th - 8th Grade