stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Basics of Python Programming Flashcards | StudBud
Explore
/
Basics of Python Programming
Basics of Python Programming
22 terms
·
StudBud Administration
·
7,862 plays
Formative Assessment on Basics of Python
Flashcards
22 cards
F
Practice quiz
P
Host live
L
Questions
22
Answers
1
What is the answer to this expression, 22 % 3 ?
7
1
5
0
2
IDLE in Python means
Lazy
Integrated Development and Learning Environment
None of the Above
Interactive Mode
3
Which data type L has ? L=[ 1, "B", 3, "D"]
Tuple
List
String
None of the Above
4
The expression Int(x) implies that the variable x is converted to integer.
True
False
5
Which of the following is invalid?
1st_string
_
my_string_1
str
6
Python is gaining good popularity in the programming community; What could be the reason?
It's easy to use
It's interactive
It's extendable
All of the above
7
To print multi line statements, we can not use this character
\
()
" "
[ ]
8
Which one of the following has the highest precedence in the expression?
Exponential
Addition
Multiplication
Parentheses
9
Python does not allow users to input data.
True
False
10
What is the output of the given code?
75.0
75.1
80.0
150
11
Logical Operatores return which type of value?
boolean
int
string
float
12
Which of the following is not a complex number?
b=7+8j
b=7+8k
a=2+3j
a=5+4j
13
What is the order of precedence in python?
PEMDAS
BODMAS
NONE OF THE ABOVE
DMAS
14
Which of the following cannot be a variable?
_init_
on
it
in
15
Which one of these is floor division?
%
/
//
\
16
Which is the correct operator to write y as power for x?
x^^y
x++y
x**y
x^y
17
Which of these in not a core data type?
Dictionary
Tuples
Class
Lists
18
What is the output of this expression, 3**3?
9
3
1
27
19
What is the output of this expression, 3*1**3?
1
3
9
27
20
Mathematical operations can be performed on a string.
True
False
21
Is Python case sensitive when dealing with variables?
No
None of the Above
Yes
Machine dependent
22
Which of the following is an invalid statement?
All of the above are invalid
a b c = 100000
a_b_c = 100000
abc = 100000