What is a DBM in Python?
Given a list defined as numbers = [1,2,3,4], what is the value of numbers[-2]?
What is the correct syntax for defining a class called Game, if it inherits from a parent class called LogicGame?
What is the best way to check if the object 'myobject' is iterable in Python?
What is the type of each element in sys.argv ?
What is the proper way to define a function?
What is the correct syntax for creating a variable that is bound to a dictionary?
What is the default encoding in the string function encode()?
What is the del statement used for?
When running a python script what is sys.argv[0] equal to?
What is the purpose of the self keyword when defining or calling methods on an instance of an object?
The following lines do the same work. What is the difference between them? lines = string.split(text, '\n') and lines = text.split('\n')
What is the purpose of an if/else statement?
After executing the following statements, what is the value of var? var = "dlrow olleh" var = var[::-1]
What is the result of the following code:>>> import itertools>>> x = itertools.count(0)>>> x.__class__.__name__
In a Python 3 class declared as "Child(Base)", what is the correct way for a method "foo()" to call its base implementation?
What is the name of a feature invoked by the following: "This is a string"[3:9]
What is a correct term for the following piece of Python syntax: 3 + 4
What is the algorithmic paradigm of quick sort?
What is the correct syntax for creating a vaiable that is bound to a list?
What is the most flexible way to call the external command "ls -l" in Python?
What is the purpose of the "self" keyword when defining or calling instance methods?
What is returned by the following expression: ("123",)[0]
After executing the following code, what is the value of d? d = [0] l = lambda x: d.append(x) d.pop() l(1)
Consider the following Python code: test = 1/2 What is the value of 'test' in Python 2.7 and 3.5, respectively ?
What is a 'docstring'?
What is the difference between class attributes and instance attributes?
what is a valid way to run asyncio loop.
Given the following assignment: s = ('xxx', 'abcxxxabc', 'xyx', 'abc', 'x.x', 'axa', 'axxxxa', 'axxya'), what is the result of the expression filter ((lambda s: re.search(r'xxx', s)), s)?
What is the maximum recursion limit in Python?
What is the purpose of an 'if' statement?
What is the correct form for the first line of the switch operator?
A function can be declared using "def double(x): return x+x" or using "double = lambda x: x+x". What is the difference between these declarations?
What is the result of print(2 <> 3) in Python 3?
If d = set( [ 0, 0, 1, 2, 2, 3, 4] ), what is the value of len(d) ?
What is an instance method?
What is the main difference between a tuple and a list?
What is a variable?
What is the output if following code executed? a1 = 0 b2 = 1 c3 = 2 def fru_box(): a1 = b2 + c3 print((a1, '\t', b2, '\t', c3)) return fru_box()
What is the type of x? x = 10.0//5
What is the difference between using single quotes and double quotes in Python strings?
In a Python 2 new-style class declared as "Child(Base)", what is the correct way for a method "foo()" to call its base implementation?
What is the result of the following code: listOne = [1, 3, 5] listTwo = [2, 4, 6] listNew = listOne + listTwo print listNew
Given array = [1, 2, 3, 4, 5, 6] what is the value of array after the following statement? del array[1:3]
What does a function definition header end with?
What is the correct way to delete a directory that is not empty using Python?
What is a list comprehension?
If you want to enter accented characters, what is put in front of the string the character?
What is a lambda function ?
What is the runtime of accessing a value in a dictionary by using its key?