What will be the output of the following code ?
st='abcdefg' print(st[2:5])
'cde'
'abc'
'efg'
None of these
Keywords
Identifires
Token
Statement
End of List
End of Line
End of Loop
End of Language
Type Casting
Data Transformation
Type Conversion
Variable Shifting
f.read(5)
f.read()=5
f.readline(5)
f.readlines(5)
15
150
200
10
float
integer
string
boolean
False Code
Representation of Code
Both A and B
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
a=b,b=a
a,b=b,a
a=b;b=a
a=b and b=a