WorksheetsPython basics29
Total questions: 10
Worksheet time: 5mins
In python print is a _____
Statement
Function
Command
program
print("R">"r") will display
Error
True
False
R
Type casting is considered as
technique to use different variables
technique to display data type of the identifier
technique to convert one datatype to another
All of the options
a=30
a=a+1
a*=2
print(a)
This code will display
62
60
Error
30
a=input("Enter age")
b=input("Enter Experience")
a=a+b
print(a)
what will be the value of a if the value passed is 26 and 36
62
Error
2636
3626
Sequences are a collection of values. In what way they are different from each other.
They are not different
Not all the sequences can be changed
They are defined in a different manner
Both b and c are correct.
Predict the output
name-"Parv"
print("name" *3)
ParvParvParv
error
namenamename
Parv Parv Parv
print(2%5)
Output ?
2
0
0.4
None
Predict the output
t1=['One' , 'Two', 'Three']
print(t1[1])
One
1
Two
Error
ldentify the incorrect variable
_bst
my name
fgh75
A4F5
