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