NEW
Font size
WorksheetsQuiz Python 1
Total questions: 10
Worksheet time: 3mins
Which one of the following is correct way of declaring and initialising a variable, x with value 5?
def x=5
x=5
int x=5
int x x=5
Which of the following is not valid variable name in Python?
var11
11var
var_name
_var
Is Python identifiers(variable name)case sensitive ?
True
False
Which of the following will give error?
a,b,c=1, 2 , 1.5
a=b=c=1
a,b,c=1
None of the above
Which of the following is a valid variable?
var@
32var
abc_a_c
class
Python only works in Linux and Windows.
True
False
Python does not have exception handling.
True
False
Python is free and open source
True
False
Why python is popular?
Because it is easy to learn and has clear syntax.
Because it is hard to learn and has complex syntax
Because it is derived from Java
Because it is used by Apple
n Python, a variable may be assigned a value of one type, and then later assigned a value of a different type
True
False
