
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
17 questions
Python

Quiz
•
6th - 10th Grade
18 questions
PYTHON PRACTICE 1

Quiz
•
8th Grade
20 questions
Ch.8 - Introducing Python

Quiz
•
6th Grade - Professio...
20 questions
Python Functions Quiz

Quiz
•
8th Grade
25 questions
NEW Coding 2 Performance Final

Quiz
•
6th - 8th Grade
20 questions
Python First Steps Homework Quiz

Quiz
•
7th - 9th Grade
25 questions
Introduction to Python

Quiz
•
KG - University
20 questions
ASK T2 - Kod Arahan (Python)

Quiz
•
7th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

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

Interactive video
•
6th - 10th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
20 questions
Copyright and Fair Use

Quiz
•
6th - 8th Grade
15 questions
Computer Components Video

Interactive video
•
8th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade