
Introduction to Python Quiz

Quiz
•
Computers
•
8th Grade
•
Hard
Mahbub Khan
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements about variables is true?
Variables can only store numbers.
Variables can store strings, numbers, and other data types.
Variables must be declared with a type.
Variables cannot change their value once set.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? `print("The result is " + str(5 + 3))`
The result is 8
The result is 5 + 3
The result is 53
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output if the user inputs "Alice"? `name = input("Enter your name: ")` `print("Hello " + name)`
Hello Alice
Hello "Alice"
Hello name
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of using quotes in a `print()` statement?
To indicate a comment
To define a string
To perform a calculation
To declare a variable
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in Python?
1st_name
first-name
first_name
first name
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output if the variable `age` is set to 12? `print("You are " + str(age) + " years old.")`
You are 12 years old.
You are age years old.
You are "12" years old.
Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid way to concatenate strings in Python?
"Hello" + "World"
"Hello" "World"
"Hello" * "World"
"Hello" + " " + "World"
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
แบบทดสอบก่อนเรียนภาษาPython

Quiz
•
10th Grade
10 questions
Python L2 Input & Variable

Quiz
•
6th - 8th Grade
13 questions
Program Development - Python: Errors

Quiz
•
8th - 10th Grade
10 questions
Intro to Python

Quiz
•
KG - University
10 questions
CỦNG CỐ KIẾN THỨC LỆNH VÀO RA TRONG PYTHON

Quiz
•
10th Grade
14 questions
Data types and Input

Quiz
•
7th - 9th Grade
10 questions
Coding3-Final-M.6

Quiz
•
12th Grade
10 questions
Introduction to Python Programming Quiz

Quiz
•
10th Grade
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