Quiz
3
This quiz has question types that open in the usual player.
Questions in this quiz (20)
1split() method does what it says – it splits the string and builds a [blank_start]list[blank_end]
- Alist
2startswith() method returns True if the string [blank_start]starts[blank_end] with the specified value, otherwise False.
- Astarts
3strip() it makes a new string lacking all the leading and trailing [blank_start]whitespaces[blank_end].
- Awhitespaces
4swapcase() lower-case characters [blank_start]become[blank_end] upper-case, and vice versa.
- Abecome
5title() changes every word’s [blank_start]first[blank_end] letter to upper-case
- Afirst
6upper() replaces all lower-case letters with their [blank_start]upper[blank_end]-case counterparts
- Aupper
7This will be a very simple stack, and we’ll show you how to do it in two independent approaches: [blank_start]procedural[blank_end] and [blank_start]objective[blank_end].
- Aprocedural
- Bobjective
8__dict__ (it’s a [blank_start]dictionary[blank_end])
- Adictionary
9a class variable exists in [blank_start]one copy[blank_end] even if there are no objects in the class.
- Aone copy
10The object created by the constructor can have only one of two possible attributes: [blank_start]a[blank_end] or [blank_start]b[blank_end].
- Aa
- Bb
11The hasattr() is called by getattr() to check to see if [blank_start]AttributeError[blank_end] is to be raised or not.
- AAttributeError
12find() method is similar to [blank_start]index[blank_end](), it works with [blank_start]strings[blank_end] only
- Aindex
- Bstrings
13"10" < 10 [blank_start]Type[blank_end]Error
- AType
14isalnum() returns [blank_start]True[blank_end]/[blank_start]False[blank_end]
- ATrue
- BFalse
15method is a function embedded [blank_start]inside[blank_end] a class.
- Ainside
16method is obliged to have at least [blank_start]one[blank_end] parameter
- Aone
17If you name a method __init__, it won’t be a regular method – it will be a [blank_start]constructor[blank_end].
- Aconstructor
18If a class has a constructor, it is invoked [blank_start]automatically[blank_end] and implicitly when the object of the class is instantiated.
- Aautomatically
19a method whose name starts with __ is (partially) [blank_start]hidden[blank_end].
- Ahidden
20__name__, The property contains the name of the [blank_start]class[blank_end].
- Aclass
Information
- Description
- više od 45%
- Author
- Matija Nnn
- Language
- English
- Views
- 0
- Rating
- No ratings yet Rate this quiz