19 Years of Excellence 99% Hiring Rate

Python Basic Quiz

Play this basic Python quiz and get set go
admec rating   4.5/5 (Rated by 575+ Students on Google)

Be a Python expert to be good at not only web development but also in data analytics. Play this well designed quiz on Python for inspecting your logical understanding and analysis power. This Python quiz contains 20 multiple choice questions in combination with true and false. All questions are of basic level and well enough to check how prepare you are for basic programming in Python.

If you have successfully completed then congratulations. However, not stuck at here jump on the next level by attempting our advance level quiz.

Don’t forget to share your email for getting result.

Please enter your email:

1. What is the right way to print out “ADMEC Multimedia”?

 
 
 
 

2. What does the function re.match do?

 
 
 
 

3. Which one is NOT a legal variable name in Python?

 
 
 
 

4. Which of the following function checks that all characters of a string are in upper case?

 
 
 
 

5. Which of the following functions print the output to the console?

 
 
 
 

6. What is the right way to check if the variable a is equal to true?

 
 
 
 

7. A string is immutable in Python

 
 

8. What is the correct syntax to output the type of a variable or object in Python?

 
 
 
 

9. How do you create a variable with the numeric value 5?

 
 
 
 

10. There are two types of numbers in Python: integers and assigned values.

 
 

11. How do you insert COMMENTS in Python code?

 
 
 
 

12. How do you create a variable with the floating number 3.8?

 
 
 

13. What is the correct way to create a function in Python?

 
 
 

14. Which method can be used to remove any whitespace from both the beginning and the end of a string?

 
 
 
 

15. What would be the result of the print 4/5 expression in Python?

 
 
 
 

16. There are two types of values in Python: numbers and strings

 
 

17. What would be the result of – num = 5 * ‘5’?

 
 
 
 

18. How can you add two strings together in Python?

 
 
 
 

19. Which function does in-place reversal of objects in a list?

 
 
 
 

20. If the array names = [‘Ramesh’, ‘Jatin, ‘Kiran, ‘Mohan, ‘John’, ‘Ahmad, ‘Keyla’], what is the value of names[2]?

 
 
 
 

21. What will be the output of: print type(1J)?

 
 
 
 

22. In Python, ‘Hello’, is the same as “Hello”

 
 

23. What is a correct way of printing the “m” in the string “ADMEC”?

 
 
 
 

24. Which module in Python supports regular expressions?

 
 
 
 

25. What is the correct file extension for Python files?

 
 
 
 

CHECKOUT ALL QUIZZES

Click to check our all the quizzes on various topics.

All Quizzes

Visit Quiz Category

Go back to your quiz category to explore more quizzes

Quiz Category

Quizzes Designed by Experts

These quizzes are designed by highly experienced professionals.

Get Results on Your Email

Receive your quiz results on your email instantly.

Understand the concepts of data and site development with Python course

Similar Quizzes

Have you completed one of our data analytics quizzes i.e. Python? So do not stuck here and move on our other data analytics quizzes and get a clear check on your foundation. Remember to check our highly advanced data analytics courses if you are looking for starting with a right curriculum.

R Langauge Quiz

Talk to Us