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. A string is immutable in Python

 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

7. Which module in Python supports regular expressions?

 
 
 
 

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

 
 

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

 
 
 
 

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

 
 
 
 

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

 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

21. What does the function re.match do?

 
 
 
 

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

 
 
 
 

23. How do you insert COMMENTS in Python code?

 
 
 
 

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

 
 
 

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

 
 
 

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