Topic 7 Flashcards
How is the development of python maintained?
Though the use of PEPs
The python philosophy is contained within which PEP?
Number 20
Which import module will display the Zen/philosophy of python?
import this
Which IDE ships by default with python?
IDLE
Which key combination will exit the Python shell when accessed through the terminal in a Linux environment?
- ) Alt + X
- ) Ctrl +D
- ) Ctrl + F6
- ) Alt +F12
Ctrl+D
Which characteristics describe the Python programming language?
- ) It is a compiled language
- ) It is an open source language
- ) It is an assembly language
- ) It is an interpreted language.
It is an open source language.
It is an interpreted language.
Under which menu item will you find commands for “Dedent Region” and “Untabify Region” in IDLE?
- ) Edit
- ) Format
- ) Options
- ) Windows
Format
What command and format is required to display the help information for any function?
help(input)
In what format does the input function read in user input?
- ) String
- ) Boolean
- ) Array
- ) Object
String
By default, how many spaces are code suites indented when using the Python IDLE?
- ) 3
- ) 4
- ) 2
- ) 5
4
Explain what is meant by the use of this operator.
x**y
This is an exponent. In other words, x raised to the power of y
What type of variable will x be?
x = 5.
float
How many instances are there in the Boolean class?
Two
Either True of False
In relation to the Boolean class, zero values are considered to have what value?
False
Which statement accurately describes the bool class?
- ) Boolean Or returns the first False or the last True value
- ) Boolean Not returns False if the operand is True
- ) Zero values are considered True
- ) The bool class is a subclass of the array class
Boolean Not returns False if the operand is True