What is a variable in Python?
Python Variables, Data Types, and User Input Quiz

Quiz
•
Information Technology (IT)
•
Professional Development
•
Medium
Bayu Prasetya
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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() )
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Quiz tentang Data dan Analisis Data

Quiz
•
Professional Development
10 questions
Business Intelligence x Data Science

Quiz
•
Professional Development
15 questions
Data Analysis and Visualization

Quiz
•
Professional Development
10 questions
Introduction to Data Science Quiz

Quiz
•
Professional Development
10 questions
[FE] Ice Breaking - Deployment

Quiz
•
Professional Development
7 questions
JOG Admin Challenge 2024 - Software Showdown Trivia

Quiz
•
Professional Development
10 questions
CloudRaya Webinar IaC Quiz

Quiz
•
Professional Development
12 questions
Data Types

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade