There is a long list of programming languages but for techies, Python is a language that tops that list for providing the most promising career options. There are a growing number of career opportunities in this language around the world. This is the reason if you are a developer then this is a language that you must learn.
Take this quiz on Python and determine your level of knowledge for this language. Start learning all the basic concepts of Python in a fun and easy way with us.
Time limit: 0
Quiz Summary
0 of 20 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
Each key in dictionary is separated from its value by a –
Correct
Incorrect
Question 5 of 20
5. Question
What will be the output of the following code?
a=0
def initial(a):
a=a+1
return a
initial(1)
print(a)
Correct
Incorrect
Question 6 of 20
6. Question
Which of the following statements are true about a tuple?
Correct
Incorrect
Question 7 of 20
7. Question
Simple method to get time in a readable format is –
Correct
Incorrect
Question 8 of 20
8. Question
Which function sets the first day of each week to weekday code weekday?
Correct
Incorrect
Question 9 of 20
9. Question
Function blocks in python start with the keyword def and then followed by the function name and
Correct
Incorrect
Question 10 of 20
10. Question
What will be the output of the following code? def x(y): y = y + [6]
z = [2, 3, 4, 5] x(z) print(len(z))
Correct
Incorrect
Question 11 of 20
11. Question
Which module supplies classes for manipulating dates and times?
Correct
Incorrect
Question 12 of 20
12. Question
Which arguments are related to the function calls?
Correct
Incorrect
Question 13 of 20
13. Question
You can use the ______ keyword to create small anonymous functions.
Correct
Incorrect
Question 14 of 20
14. Question
Which of the following is true about a global variable?
Correct
Incorrect
Question 15 of 20
15. Question
What will be the output of the following code? value = [[2, 5, 9, 3], [22, 5, 7, 8]]
a = value[0][0] for lst in value: for element in lst: if a > element: a = element
print(a)
Correct
Incorrect
Question 16 of 20
16. Question
Which statement makes it possible to import all names from a module into the current namespace?
Correct
Incorrect
Question 17 of 20
17. Question
module search path in Python is stored in the system module “sys” as the ______ variable.
Correct
Incorrect
Question 18 of 20
18. Question
Which built-in function returns a sorted list of strings containing the names defined by a module.
Correct
Incorrect
Question 19 of 20
19. Question
The raw_input function –
Correct
Incorrect
Question 20 of 20
20. Question
If you want to re-execute the top-level code in a module then you should use –
Correct
Incorrect
Summary
Companies today around the world are constantly looking for the most skilled and qualified programmers to meet the changing technological needs of the customers. Python and other high-level programming languages is always good as it gives you a competitive advantage over the other programmers.
We hope this quiz helped you clear your doubts and increase the understanding of Python. Happy learning!