
02. Python Variables, Data Types, and User Input Quiz
Authored by Bayu Prasetya
Information Technology (IT)
Professional Development
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in Python?
A function that performs calculations
A type of data structure
A storage location for data
A fixed value that cannot change
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used for modulus in Python?
/
*
%
-
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
msg = "Welcome to the Data Science Class"
print ( msg.capitalize() )
The output of the code is ...
Welcome to the data science class
welcome to the data science class
WELCOME TO THE DATA SCIENCE CLASS
Welcome To The Data Science Class
error
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
name = input("Input name: ")
age = input("Input age: ")
print( name + "was born in" + (2021 - age) )
If the user enters Budi and 25 in the terminal, which is the correct output for the code above?
Budi was born in 1996
Budi was born in 25
error
Budi was born in (2021 - age)
Budi was born in 2021-25
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
x = "2.5"
x = int(x)
What the type of x ?
error
integer
float
string
boolean
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code: print(type(3.14))?
error
float
int
string
7.
FILL IN THE BLANK QUESTION
45 sec • 1 pt
msg = "Data Science Purwadhika"
print( msg[-4:].title() )
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
UNI-MBA-IAS4 DATA MANAGEMENT
Quiz
•
Professional Development
10 questions
Post-test Cyber Security CN Group
Quiz
•
Professional Development
10 questions
Implikasi UU PDP terhadap penerapan cybersecurity di Bank
Quiz
•
Professional Development
10 questions
Webinar Seris #8 : Membangun Website 3D yang Menarik
Quiz
•
Professional Development
10 questions
How Cyber Safe Are You? Part 3
Quiz
•
Professional Development
12 questions
Data Types
Quiz
•
Professional Development
10 questions
AI in Lesson Planning Quiz- LIA
Quiz
•
Professional Development
13 questions
Wake up
Quiz
•
Professional Development
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
Discover more resources for Information Technology (IT)
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...