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 554 Students on Google)
Contact Us

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. How can you add two strings together in Python?

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

6. How do you insert COMMENTS in Python code?

 
 
 
 

7. A string is immutable in Python

 
 

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

 
 
 

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

 
 

10. What does the function re.match do?

 
 
 
 

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

 
 
 
 

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

 
 
 
 

13. Which module in Python supports regular expressions?

 
 
 
 

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

 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

Talk to Us