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. What is a correct way of printing the “m” in the string “ADMEC”?

 
 
 
 

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

 
 
 
 

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

 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

13. What does the function re.match do?

 
 
 
 

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

 
 
 
 

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

 
 
 
 

16. Which module in Python supports regular expressions?

 
 
 
 

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

 
 

18. How do you insert COMMENTS in Python code?

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 

24. A string is immutable in Python

 
 

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

 
 
 
 

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