Python

A creative illustration of a computer screen displaying Python code snippets, with a bright and engaging background, featuring elements like a question mark and coding symbols.

Python Proficiency Quiz

Test your knowledge of Python with our engaging quiz! This quiz consists of 10 questions that will challenge your understanding of various Python concepts and functions.

Boost your programming skills and see how well you can tackle these topics:

  • Data Types
  • String Manipulation
  • List Operations
  • Functions and Methods
10 Questions2 MinutesCreated by CodingNinja42
1 - Which of the following data types is not supported in python?
A - Numbers
B - String
C - List
D - Slice
2 - What is the output of print str[2:] if str = 'Hello World!'?
A - llo World!
B - H
C - llo
D - None of the above.
3 - What is the output of print tinylist * 2 if tinylist = [123, 'john']?
A - [123, 'john', 123, 'john']
B - [123, 'john'] * 2
C - Error
D - None of the above.
4 - Which of the following function convert an object to a string in python?
A - int(x [,base])
B - long(x [,base] )
C - float(x)
D - str(x)
5 - Which of the following function convert an integer to hexadecimal string in python?
A - unichr(x)
B - ord(x)
C - hex(x)
D - oct(x)
6 - Which of the following function returns a random item from a list, tuple, or string?
A - choice(seq)
B - randrange ([start,] stop [,step])
C - random()
D - seed([x])
7 - Which of the following function checks in a string that all characters are alphanumeric?
A - shuffle(lst)
B - capitalize()
C - isalnum()
D - isdigit()
8 - Which of the following function returns the min alphabetical character from the string str?
A - lower()
B - lstrip()
C - max(str)
D - min(str)
9 - What is the output of len([1, 2, 3])?
A - 1
B - 2
C - 3
D - 4
10 - What is the following function removes last object from a list?
A - list.index(obj)
B - list.insert(index, obj)
C - list.pop(obj=list[-1])
D - list.remove(obj)
{"name":"Python", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge of Python with our engaging quiz! This quiz consists of 10 questions that will challenge your understanding of various Python concepts and functions.Boost your programming skills and see how well you can tackle these topics:Data TypesString ManipulationList OperationsFunctions and Methods","img":"https:/images/course7.png"}
Powered by: Quiz Maker