WorksheetsPython Quiz 2
Total questions: 10
Worksheet time: 5mins
When you compare two values, the expression is evaluated and Python returns a Boolean answer.
True
False
When you run a condition in an if statement, Python returns True or False.
True
False
thislist = ["apple", "banana", "cherry"] , print(thislist)
None of these are the compilers response
a, b, c
apple, banana, cherry
['apple', 'banana', 'cherry']
Define zip()
None of these
Returns an iterator, from two or more iterators
Returns an application title, from two or more iterators, and lists alphabetically.
Returns an apoapsis, from two or more sats.
Define vars()
Returns the __dict__ property of an object
None of these
Returns variables within a method.
Returns the count of text within one or more variabels.
Define type()
All of these
Returns the type of an object.
Returns the type of an instance after manipulated object POSTED.
tuple() method returns a tuple aka storing multiple items in a single variable
True
False
Define range()
Returns a sequence of numbers, starting from 8 and increments by 3 (by default)
Returns a sequence of numbers, starting from 0 and increments by 1 (by default)
Returns a sequence of numbers, starting from 1 and increments by 4 (by default)
Returns a sequence of numbers, starting from 1 and increments by 1 (by default)
Returns True if the specified object has the specified attribute (property/method)
hasattr()
hasabs()
hasmethod()
hasprop()
Returns the quotient and the remainder when argument1 is divided by argument2
modsiv()
dividemod()
divmodulus()
divmod()
