Python Self Assessment Test
This test is meant to determine your Python proficiency. It covers the following topics: variables, basic data types (integer, float, string), data structures (list, tuples, dictionary, set), loops, conditional statements, functions and modules. All the multichoice questions are based on Python 3.x. 
Sign in to Google to save your progress. Learn more
Email *
Which of these collections defines a List?
1 point
Clear selection
How do you create a variable with the numeric value 578?
1 point
Clear selection
How do you start writing an if statement?
1 point
Clear selection
Assume that A = “Welcome everybody!”, what is A[-1]?
1 point
Clear selection
How can we get the type of an object x in Python?
1 point
Clear selection
Assume that A is a list and I want to extend it by adding the number 2 as the last entry. How do I do it?
1 point
Clear selection
Which of these collections defines a Dictionary?
1 point
Clear selection
Which of these collections defines a Tuple?
1 point
Clear selection
Submission ID (skip this field) *
⚠️  DO NOT EDIT this field or your time will not be recorded.
Assume that we have A = {"lang1": "French", "lang2": "German", "lang3": "English"}. What is A["lang2"]?
1 point
Clear selection
If A = ("French", "German", "English"), could you  perform the operation A[1] = "Polish"?
1 point
Clear selection
What is the correct file extension for Python files?
1 point
Clear selection
The string 'Welcome', is the same as "Welcome"
1 point
Clear selection
How do you start writing a while loop in Python?
1 point
Clear selection
Which operator is used to multiply two numbers?
1 point
Clear selection
How do you start writing a for loop in Python?
1 point
Clear selection
How do you insert COMMENTS in Python code?
1 point
Clear selection
Assume that A = “Welcome everybody!”, what is A[9:13]?
1 point
Clear selection
The result of the operation   23/4   is:
1 point
Clear selection
Assume that A = “Welcome everybody!”, what is A[2]?
1 point
Clear selection
What is the proper syntax to output "Welcome Everybody!” in Python?
1 point
Clear selection
Assume that the function myfunc is defined in the Python module named mymodule. How do I call myfunc in a Python code?
1 point
Clear selection
How do you create a variable with the floating number 578.67?
1 point
Clear selection
Assume that you have a Python module named mymodule.  Which statement in my Python code ensures that information in mymodule is ready to be used?
1 point
Clear selection
Assume that x=12. The operation x -= 3 gives:
1 point
Clear selection
How can we determine the length of a string X?
1 point
Clear selection
The operation  [1, "Hello"]+[1,"2", 1]   gives:
1 point
Clear selection
Which collection is ordered, changeable, and allows duplicate members?
1 point
Clear selection
What is the output of print(range(5))?
1 point
Clear selection
The result of the operation  13//4   is:
1 point
Clear selection
Assume that A="39" and B=12. The operation A+B gives:
1 point
Clear selection
What is the result of the operation  "ABC"*2  ?
1 point
Clear selection
Which operator can be used to compare two values?
1 point
Clear selection
Which one is not a valid variable name?
1 point
Clear selection
If A = ["French", "German", "English"], could you  perform the operation A[-1] = "Polish"?
1 point
Clear selection
What is the correct way to create a function in Python?
1 point
Clear selection
A copy of your responses will be emailed to the address you provided.
Submit
Clear form
Never submit passwords through Google Forms.
reCAPTCHA
This content is neither created nor endorsed by Google. Report Abuse - Terms of Service - Privacy Policy