Play this basic Python quiz and get set go

Python Basic Quiz

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. There are two types of values in Python: numbers and strings

 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

6. Which module in Python supports regular expressions?

 
 
 
 

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

 
 
 
 

8. How do you insert COMMENTS in Python code?

 
 
 
 

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

 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

16. A string is immutable in Python

 
 

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

 
 
 
 

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

 
 
 

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

 
 
 
 

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

 
 
 
 

21. What does the function re.match do?

 
 
 
 

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

 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

Call Now