Python Tests / Quizes
Python hosting: Host, run, and code Python in the cloud!
If you finished the Python beginner series, you could do this quiz to test your understanding of Python. Don’t worry, more tutorials are being created on a weekly and sometimes daily basis.
We hope you like our tutorials and enjoy the quizes!
Related Course:
Python Programming Bootcamp: Go from zero to hero
Python Beginner Quiz
Quiz-summary
0 of 20 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
Information
A quiz to understand your understanding of Python. This quiz only covers parts of the beginners series and not all of the topics covered on this site including variables, functions, classes, objects and many more. We recommend you do the beginner series first if you have not done so yet.
The quiz consists of 20 questions.
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 20 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
Categories
- Not categorized 0%
-
Thanks for taking our quiz. We hope you enjoyed it, please check out our other tutorials on this site.
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- Answered
- Review
-
Question 1 of 20
1. Question
1 pointsWhich function displays a message on the screen in Python?
Correct
Incorrect
-
Question 2 of 20
2. Question
1 pointsHow do we get a variable from the command line?
Correct
Incorrect
-
Question 3 of 20
3. Question
1 pointsWhich of these prints the length of a string s?
Correct
Incorrect
-
Question 4 of 20
4. Question
1 pointsIf we have a list x [1,2,3,4], how do we print the first element?
Correct
Incorrect
-
Question 5 of 20
5. Question
1 pointsHow do we remove an element from a list?
Correct
Incorrect
-
Question 6 of 20
6. Question
1 pointsWhich operator is used to compare two numbers for equality?
Correct
Incorrect
-
Question 7 of 20
7. Question
1 pointsHow can we define a function in Python?
Correct
Incorrect
-
Question 8 of 20
8. Question
1 pointsWhich is the correct output for :
for i in range(1,10):
print(i)
Correct
Incorrect
-
Question 9 of 20
9. Question
1 pointsWhat is the binary number 00001010 in decimal?
Correct
Incorrect
-
Question 10 of 20
10. Question
1 pointsShould you use recursion for factorial?
Correct
Incorrect
-
Question 11 of 20
11. Question
1 pointsCheck the correct box
Correct
Incorrect
-
Question 12 of 20
12. Question
1 pointsWhat is inheritance used for?
Correct
Incorrect
-
Question 13 of 20
13. Question
1 pointsTrue or false, a dictionary is always in order.
Correct
Incorrect
-
Question 14 of 20
14. Question
1 pointsIf User is a class, how do we make a new User object?
Correct
Incorrect
-
Question 15 of 20
15. Question
1 pointsAn object can contain:
Correct
Incorrect
-
Question 16 of 20
16. Question
1 pointsWhen would you use a while loop?
Correct
Incorrect
-
Question 17 of 20
17. Question
1 pointsWhat is a nested loop?
Correct
Incorrect
-
Question 18 of 20
18. Question
1 pointsHow can you include a module in Python?
Correct
Incorrect
-
Question 19 of 20
19. Question
1 pointsHow to find your Python version?
Correct
Incorrect
-
Question 20 of 20
20. Question
1 pointsTrue or false, a function can be defined inside a function
Correct
Incorrect
Python Beginner Quiz 2
Quiz-summary
0 of 10 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Information
Another Python quiz to test your knowledge of Python for the beginners series. The quiz includes some general questions on the Python programming langage.
You may be surprised to find some of the answers.
The test Consists of 10 questions.
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 10 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- Answered
- Review
-
Question 1 of 10
1. Question
Who originally created Python?
Correct
Incorrect
-
Question 2 of 10
2. Question
Which of these is not a Python datatype?
Correct
Incorrect
-
Question 3 of 10
3. Question
How can we add two strings together?
Correct
Incorrect
-
Question 4 of 10
4. Question
How can we create a newline in a print function?
Correct
Incorrect
-
Question 5 of 10
5. Question
Which is not a valid Python loop?
Correct
Incorrect
-
Question 6 of 10
6. Question
What is a nested loop?
Correct
Incorrect
-
Question 7 of 10
7. Question
How to access list elements?
Correct
Incorrect
-
Question 8 of 10
8. Question
When was Python first created?
Correct
Incorrect
-
Question 9 of 10
9. Question
Does python support object oriented programming?
Correct
Incorrect
-
Question 10 of 10
10. Question
Does Python have support for random numbers?
Correct
Incorrect