
Python Programming Quiz

Quiz
•
Other
•
University
•
Medium
Steffan Limon
Used 2+ times
FREE Resource
51 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
What is the command to mount Google Drive in Google Colab?
drive.load('/content/drive')
google.colab.mount('/content/drive')
load.drive('/content/drive')
drive.mount('/content/drive')
2.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
Which of the following is a valid integer declaration in Python?
x = 5
x = True
x = '5'
x = 5.0
3.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
Boolean: What is the output of print(3 * 2 == 7)?
True
False
None
Error
4.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
Which of the following is NOT a basic data type in Python?
int
float
char
bool
5.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
What will be the output of print(10 // 3)?
Error
3
4
3.33
6.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
What is the purpose of the str() function in Python?
Convert a number to a string
None of the above
Check the type of a variable
Convert a string to a number
7.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
Which operator is used for floor division in Python?
/
//
**
%
Create a free account and access millions of resources
Similar Resources on Wayground
53 questions
Java Loops Quiz

Quiz
•
University
49 questions
265 exam 1

Quiz
•
University
50 questions
DDPK AKL (LH) KELAS X

Quiz
•
10th Grade - University
46 questions
Câu hỏi về danh sách trong Python

Quiz
•
University
50 questions
Đề thi cuối kỳ: Lập trình giao diện (2019-2020) - ĐH Mở TP.HCM

Quiz
•
University
50 questions
MIDTERM EXAMINATION IN LIVING IN THE IT ERA

Quiz
•
University
48 questions
Chapter 15: Nutrition and Hydration Assessment CNA

Quiz
•
12th Grade - University
50 questions
Retail IT Social Quiz

Quiz
•
University
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade