Programming Language niggers
_____ can be real world entities
Objects
Instances
OOP
Polymorphism
Are Python program units, just like functions and modules
Classes
Instances
Objects
Ogabooga
Define new namespaces, much like modules
Classes
Objects
Instances
Instantiation
Is simply a collection of data (variables) and methods (functions) that act on those data
Objects
Instances
Classes
Instantiation
What do you call an object of the class?
Instances
Variable
Classes
Prototype
What do you call the process of creating an object?
Polymorphism
Instantiation
Abstration
Encapsulation
In Python, the main emphasis is on functions, object oriented programming stresses on objects
True
False
Everything in a class is not indented
True
False
Self-argument refers to the object itself
False
True
Who created python?
Osama Bin laden
Benito Mussolini
Adolf Hitler
Guido van Rossum
Python is not a beginners language
True
False
How many reserved words are there in Python?
911
33
69
666
In Python, keywords are case sensitive.
True
False
An object’s identity can be change once it has been created
True
False
Is an important concept and variables can store data of different types, and different types can do different things
Data types
Instatiation
Polymorphism
Integer
How many python number data types are there?
2
1
3
5
What function is used to check if an object belongs to a particular class?
Cars()
Pol()
Isinstance()
Break()
Can be of any length, it is only limited by the memory available. Are just whole numbers, positive or negative
Float
Complex
Integers
Imaginary
Numbers in Python are notable because they have a decimal point in them, or use an exponential (e) to define the number
Infinite decreasing
Float
Complex
Integer
Python don't support operator overloading
True
False
is an ordered sequence of items. It is one of the most used data types in Python and is very flexible
Dictionary
List
Tuples
Library
Permanently add an item to the end of a list.
Slice
Append
Instantiate
Pop
use _______ to "pop off" an item from the list.
Iterate
Slice
Append
Pop
Are a collection of objects that are stored by a key, unlike a sequence that stores objects by their relative position.
Mapping
Hash Map
Constructor
Encapsulate
Are an unordered collection of unique elements
Map
Sets
Dictionary
Tuples
Predefined True and False displays that are basically just the integers 1 and 0
Boolean
Int
String
Input
Are operators that allow us to compare or check the relationship between two operands or values (literal), or variables and output
Arithmetic operators
Comparison Operators
Logical Operators
Operators(Sniper)
And, or and not keywords are example of what operators?
Comparison Operators
Arithmetic Operators
Logical Operators
Top-down hierarchy or the default mode.
Repetition
Sequential
Selection
Used for looping, I.e. Repeating a piece of code multiple times in a row
Sequential
Repetition
Selection
Boolean
Used for decisions, branching -- choosing between 2 or more alternative paths
Selection
Repetition
Boolean
Sequential
Acts as an iterator in Python; it goes through items that are in a sequence or any other iterable item
For loop
Do while Loop
While Loop
Allows us to get the remainder in a division and uses the % symbol.
Plus sign
Minus sign
Modulo
X sign
Statement in Python is one of the most general ways to perform iteration
Do while Loop
While Loop
For loop
Breaks out of the current closest enclosing loop.
Continue
Break
Pass
Goes to the top of the closest enclosing loop
Pass
Continue
Break
Go
Does nothing at all.
Break
Continue
Pass
Go
Function allows you to quickly generate a list of integers
Range
Continue
Break
Pass
Are essentially functions built into objects.
Methods
Instances
Functions
Iterate
S a useful device that groups together a set of statements so they can be run more than once. They can also let us specify parameters that can serve as inputs to the functions
Library
Function
Instances
Module
Function allows you to "map" a function to an iterable object. That is to say you can quickly call the same function to every item in an iterable, such as a list
Map
Hash
Lambda
Filter
R function returns an iterator yielding those items of iterable for which function(item) is true.
Lambda
Filter
Hash
Map
Allow us to create "anonymous" functions. This basically means we can quickly make ad-hoc functions without needing to properly define a function using def.
Map
Hash
Filter
Lamda Expression
The lambda's body is a single expression, and is a block of statements.
True
False
The assignment of more than one behavior to a particular function. The operation performed varies by the types of objects or arguments involved.
Multiple Instances
Classes inside object
Function overloading
Variable
The transfer of the characteristics of a class to other classes that are derived from it.
Abstraction
Inheritance
Encapsulation
Polymorphism
An individual object of a certain class. An object obj that belongs to a class Circle, for example, is an instance of the class Circle.
Object
Instance
Classes
Variable
The assignment of more than one function to a particular operator.
Function overloading
Instances in class
Operator overloading
Dictionary
Is a characteristic of an object
Variable
Attribute
Method
Instances
Inheritance is a way to form new classes using classes that is not been defined.
True
False
The newly formed classes are called
Derived Classes
Base classes
Important benefits of inheritance are code reuse and reduction of complexity of a program.
True
False
Inheritance enables us to define a class that takes all the functionality from a parent class and allows us to add more
False
True
Refers to the way in which different object classes can share the same method name, and those methods can be called from the same place even though a variety of different objects might be passed in.
Abstraction
Encapsulation
Polymorphism
Inheritance
A variable that is shared by all instances of a class
Data member
Function overloading
Class variable
Instance variable
A variable that is defined inside a method and belongs only to the current instance of a class
Function overloading
Instance variable
Inheritance
Instantiation
A special kind of function that is defined in a class definition
Function
Class
Method
Instance
A class variable or instance variable that holds data associated with a class and its objects.
Data member
Class variable
Instance
Method
These are called fields or attributes of an object.
Parameters
Instance variables in a class
Class variables
Local Variables
Is an operation we can perform with the object.
Attribute
Instances
Method
Parameters
Python does not support OOP
True
False
Python is not easy to learn?
True
False
We can use a keyword as a variable name, function name or any other identifier
True
False
Methods is a useful device that groups together a set of statements so they can be run more than once
True
False
We should use functions when we plan on using a block of code multiple times.
True
False
The function will allow us to call the different block of code without having to write it multiple times
True
False
Dynamic programming refers to the process of dividing or breaking a large programming task into separate, smaller, more manageable subtasks or modules
True
False
DRY MEANS Don't repeat yourself
True
False
Applying modules makes it easier to understand, manage and maintain our code.
True
False
A piece of software that has a specific functionality
Methods
Function
Module
Dictionary
Errors cannot be detected and cannot be trapped with error handling structure so as to continue the program execution without a halt
False
True
Rather than focusing on the entire problem at hand, a module typically focuses on one relatively small portion of the problem.
Maintainability
Scoping
Simplicity
Reusability
Modules are typically designed so that they enforce logical boundaries between different problem domains. This makes it more viable for a team of many programmers to work collaboratively on a large application.
Scoping
Maintainability
Simplicity
Reusability
Functionality defined in a single module can be easily reused (through an appropriately defined interface) by other parts of the application. This eliminates the need to duplicate code.
Reusability
Simplicity
Scoping
Maintainability
Modules typically define a separate namespace, which helps avoid collisions between identifiers in different areas of a program.
Scoping
Reusability
Simplicity
Maintainability
Modules in Python provide us the flexibility to organize the code in a logical way.
False
True
To use the functionality of one module into another, we must have to import the specific module.
True
False
Python provides two types of statements. What are these?
Import statement
Airport Statement
From import statetement
Module import
Instead of importing the whole module into the namespace, python provides the flexibility to import only the specific attributes of a module.
Import
From import
Dictionary
Method
Python provides us the flexibility to import some module with a specific name so that we can use this name to use that module in our python source file.
True
False
Returns a sorted list of names defined in the passed module. This list contains all the sub-modules, variables and functions defined in this module.
Len()
Dir()
Append()
Sort()
If you want to reload the already imported module to re-execute the top-level code
Reload()
Append()
Dir()
Sort()
Variables are associated with two types of scopes
Local
Global
Function variable
Method aatribute
F two variables are defined with the same name with the two different scopes, I.e., local and global, then the priority will always BE GIVEN TO THE LOCAL VARIABLE..
True
False
A simple python file extended to another python file.
Package
Function
Module
Method
A folder that contains several python modules instantiated in __init__.py file.
Method
Package
Module
Function
WHY WRITE YOUR OWN MODULES & PACKAGES?
Significantly improves code readability.
Enables you to reuse an important python solution in different projects.
Helps you publish a python package
Because of the efficiency and time convenient of code.
A fatal issue found during the program run.
Accept
During
Error
Exception
A situational issue found during the program run.
Exception
During
Try
Error
Raised when the assert statement fails.
AttributeError
EOFError
AssertionError
TabError
Raised when the input() function meets the end-of-file condition.
AttributeError
AssertionError
EOFError
ImportError
Raised when the attribute assignment or reference fails.
AttributeError
TabError
IndexError
KeyboardInterrupt
Raised when the indentations consist of inconsistent tabs or spaces.
TabError
IndexError
RuntimeError
NameError
Raised when importing the module fails.
TabError
ImportError
IndexError
RuntimeError
Occurs when the index of a sequence is out of range.
IndexError
RuntimeError
KeyboardInterrupt
TabError
Raised when the user inputs interrupt keys (ctrl + C or Delete).
RuntimeError
NameError
KeyboardInterrupt
AttributeError
Occurs when an error does not fall into any category.
AttributeError
RuntimeError
KeyboardInterrupt
NameError
Raised when a variable is not found in the local or global scope.
NameError
KeyboardInterrupt
IndexError
EOFError
Raised when programs run out of memory
ValueError
MemoryError
AssertionError
EOFError
Occurs when the operation or function receives an argument with the right type but the wrong value.
ValueError
AssertionError
EOFError
MemoryError
Raised when you divide a value or variable with zero.
AttributeError
IndentationError
SystemError
ZeroDivisionError
Raised by the parser when the Python syntax is wrong.
IndentationError
TabError
ImportError
SyntaxError
Occurs when there is a wrong indentation.
IndentationError
EOFError
ImportError
TabError
raised when the interpreter detects an internal error.
TabError
SystemError
EOFError
ImportError
runs the code
Except
Try
Do
While
Will run instead of Try if there is an exception
Do
While
Except
Try
Will run if Try is successful
If
Else
Try
Except
will always run its code regardless of the result.
Try
Except
Else
Finally
S a function that takes another function and extends the behavior of the called function or the second function without literally modifying it.
Moderator
Generator
Decorator
Iterator
Allows us to generate as we go along, instead of holding everything in memory. We use function in creating a python
Iterator
Moderator
Decorator
Generator
are used to wrap a function without actually changing the code inside. Since functions are classified as first class citizens in Python, we would be able to use functions just like a data type.
Iterators
Decorator
Moderator
Generator
What character is used for decorator?
@
./.
//
()
a Python object which can be looped over or iterated over in a loop.
Iterator
Iter
Iterable
Next
is an object that can be iterated upon
Iterator
Next
Iter
Iterable
A built-in function used to convert an iterable to an iterator.
Iteration
Iter
Iterable
Next
The values obtained from an iterator can only be retrieved from left to right.
True
False
a special type of function which does not return a single value: it returns an iterator object with a sequence of values.
Generator
Iterable
Iterator
Iter
An evaluation strategy whereby certain objects are only produced when required. Consequently, certain developer circles
CET Evaluation
Lazy Evaluation
Iterator
Iterable
Returns a generator object instead of a value
Return
Yield
Go
Try
When Working with Existing Iterables Need for Explicit Control
Iterator
Decorators
Generators
Iterables
Lazy Evaluation Infinite Sequences
Iterables
Generators
Decorators
Iterators
{"name":"Programming Language niggers", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"_____ can be real world entities, Are Python program units, just like functions and modules, define new namespaces, much like modules","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
More Quizzes
A Pair of Silk Stockings by Kate Chopin Quiz
10522
Do you have any recommendations in new papers today?
100
3. Geleneksel Lovisa Testi
840
Which Service Excellence team suits you best?
5258
How Well Do You Know World War 2 Trivia? Find Out Now!
201038459
Test Your Skills: Free Grammar & Sentence Challenge
201027194
Can You Ace the HIPAA Exam? Free HIPAA Inside
201038459
Integrating Animal Sciences
15824602
United Airlines: Challenge Your Aviation Knowledge
201030937
Does She Like Me? Discover Her True Feelings!
201025471
Project Cost Management Principles
201025701
Free Sales Enablement Knowledge Test
201028025