Quiz
4
This quiz has question types that open in the usual player.
Questions in this quiz (20)
1 __name__ attribute it exists only inside [blank_start]classes[blank_end].
- Aclasses
2If you want to find the class of a particular object, you can use a function named [blank_start]type[blank_end]()
- Atype
3__name__ is a [blank_start]string[blank_end].
- Astring
4__module__ is a [blank_start]string[blank_end]
- Astring
5__bases__ is a [blank_start]tuple[blank_end].
- Atuple
6The tuple contains [blank_start]classes[blank_end] (not class names) which are direct [blank_start]superclasses[blank_end] for the class.
- Aclasses
- Bsuperclasses
7the ability of a program to examine the type or properties of an object at runtime; [blank_start]introspection[blank_end]
- Aintrospection
8the ability of a program to manipulate the values, properties and/or functions of an object at runtime; [blank_start]reflection[blank_end]
- Areflection
9[blank_start]issubclass[blank_end](), identify a relationship between two classes
- Aissubclass
10isinstance()→ it’s an instance of its [blank_start]home[blank_end] class and any of its [blank_start]superclasses[blank_end].
- Ahome
- Bsuperclasses
11Composition is the process of composing an object using other different [blank_start]objects[blank_end].
- Aobjects
12The spectrum of issues possibly coming from multiple inheritance is illustrated by a classical problem named the [blank_start]diamond[blank_end] problem.
- Adiamond
13finally keyword (it must be the [blank_start]last[blank_end] branch of the code designed to handle exceptions).
- Alast
14You probably won’t be surprised to learn that exceptions are [blank_start]classes[blank_end].
- Aclasses
15A Python generator is a piece of specialized [blank_start]code[blank_end] able to produce a series of [blank_start]values[blank_end], and to control the iteration process.
- Avalues
- Bcode
16Generators may also be used within [blank_start]list[blank_end] comprehensions
- Alist
17The brackets make a [blank_start]comprehension[blank_end] – the parentheses make a [blank_start]generator[blank_end].
- Acomprehension
- Bgenerator
18A lambda function is a function without a [blank_start]name[blank_end] (you can also call it an anonymous function).
- Aname
19the map() function takes two arguments →
a [blank_start]function[blank_end];
a [blank_start]list[blank_end].- Afunction
- Blist
20"10" > "010"
- ATrue
- BFalse
Information
- Description
- više od 53%
- Author
- Matija Nnn
- Language
- English
- Views
- 1
- History
- Created on 26 Sep 2019 · updated on 3 Oct 2019
- Rating
- No ratings yet Rate this quiz