stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Programming in Python: Concepts and terminology Flashcards | StudBud
Explore
/
Programming in Python: Concepts and terminology
Programming in Python: Concepts and terminology
15 terms
·
StudBud Administration
·
31 plays
A #quiz to introduce basic #programming concepts and terminology. Code examples in #python.
Flashcards
15 cards
F
Practice quiz
P
Host live
L
Questions
15
Answers
1
You use the float() function to convert string, int to float.
False
True
2
A number with
0x
or
0X
as prefix represents an
octal
number.
True
False
3
In Python, integers are zero and positive but not negative whole numbers.
True
False
4
A number having
0b
with eight digits in the combination of 0 and 1 represent the
binary numbers
in Python.
False
True
5
If an integer includes a fractional then it becomes a float.
True
False
6
This value is of type...
str
complex
float
int
7
Integers are always binary values.
True
False
8
All integer literals or variables use the
type()
method to get the class name
True
False
9
What is a complex number?
A number with 0x or 0Xx as prefix.
A short representation to express floats.
A software.
A number with real and imaginary components.
10
To convert a string or float to int, Python uses
The int() function
False
True
11
Floats can be separated by the underscore _
True
False
12
In Python,
floating
point numbers
(float)
are always negative real numbers.
True
False
13
The arithmetic operators can also be used with two complex numbers
False
True
14
Python includes three numeric types to represent numbers: integers, float, and complex number.
False
True
15
Python uses comma as number delimiter.
False
True