float
integer
string
boolean
False Code
Representation of Code
Both A and B
None of these
Comments
Expressions
Tokens
Flow of control
find the output of following code:
def add(a,b): return(a+b) print(add(3,4))
4
7
9
8
import math print(math.fabs(-3.4))
-3.4
3.4
4.3
3
what will the output of following code
my_string="Hello,world" print(my_string[-6:-1])
,worl
worl
world
oworld
No Operation
No Action
Null Statement
Placeholder
What will be the output of following code
import math print(math.pi)
5.354562653589793
3.141592653589793
7.867564234556778
9.048495456553358
+
-
*
( )
for
while
do while
None of the above
Repeating a process in a loop
Calling a function from within itself
Using a loop to iterate over elements
Breaking down a problem into smaller subproblems
Tells you the current position within the file.
Tells the size of file you read
Tells the start position of the file.
Tells the end position of the file.
32
10
a=b,b=a
a,b=b,a
a=b;b=a
a=b and b=a
csv.reader(file)
csv.read(file)
csv.readcsv(file)
csv.readcsvdata(file)
take a sequence, like a list, and arrange the items in ascending order
take a sequence, like a list, and reorganize the order of the items.
take a sequence, like a list, and arrange the items in descending
take a sequence, like a list, and return the same copy of sequence
211
216
1024
512
20.0
20
40.0
40
_py_
var
_var
try
What does the following code will print ?
x=5 if x>3: print("Hello")
Hello
Hello Hello
nothing
Hello Hello Hello Hello Hello