Home
Courses
Tutorials
Online Compiler
Practice Questions
Learning Paths
About
Contact
Coding
Rider
Sign Up
Login
C
C++
C#
Node.js
React.js
DSA
PHP
MySQL
HTML
CSS
JavaScript
Python
Java
Bootstrap
UI/UX
Home
/
Practice
/
Python Fundamentals Quiz
Python Fundamentals Quiz
Test your knowledge on Python syntax, variables, lists, and loops.
Question 1 of 5
10 Points
What is the correct extension for Python source files?
A)
.pyt
B)
.py
C)
.python
D)
.pt
Question 2 of 5
10 Points
What will be the output of this code snippet?
x = [1, 2, 3] print(len(x))
A)
2
B)
3
C)
4
D)
Error
Question 3 of 5
10 Points
Which keyword is used to define a function in Python?
A)
function
B)
fun
C)
def
D)
define
Question 4 of 5
10 Points
Which data type is immutable in Python?
A)
list
B)
dict
C)
set
D)
tuple
Question 5 of 5
10 Points
What is the result of 10 // 3 in Python?
A)
3.333
B)
3
C)
1
D)
Error
Submit Answers for Grading