WorksheetsPython
Total questions: 28
Worksheet time: 9mins
What is a variable?
Naming of the memory location
it is an operator
It is a data type
None
What is a dataype?
Naming of the memory location
it is an operator
specifies which type of value a variable has
None
What is a operator?
It is a container
None
specifies which type of value a variable has
are special symbols
Symbol for Addition Operator
+
-
*
/
Symbol for Subtraction Operator
+
-
*
/
Symbol for multiplication Operator
+
-
*
/
Symbol for division Operator
+
-
*
/
Symbol for integer division/floor division/truncate division Operator
+
-
//
/
A comment in Python starts with the hash character _____
+
#
//
/
Symbol for Assignment Operator
+
#
=
/
Symbol for comparison Operator
+
==
=
/
Symbol for finding the remainder
+
%
=
/
Symbol for Not equal to
+
%
=
!=
__________ are typos, incorrect indentation, or incorrect arguments.
Syntax errors
dataype
operator
Variable
A python ________ is a reserved word which you can’t use as a name of your variable, class, function etc.
Keyword
dataype
operator
Variable
Python is developed by________________
Guido van Rossum
Giudo van Rossum
Guido ven Rossum
Guido van Rassum
Python is named after the comedy television show _______
Monty Python’s Flying Circus
Monty Python’s Flying Cricus
Monyt Python’s Flying Circus
Mnoty Python’s Flying Circus
Python is platform independent or not?
Yes
No
I don't know
None
IDE stands for ______________________
integral development environment.
integer development environment.
None
integrated development environment.
_____ contains a code editor, a compiler or interpreter and a debugger that you can access at the same place.
IDE
IED
DEI
All
Example for IDE is ____________
Notepad
Pycharm
WordPad
All
A _________ is text that doesn’t affect the outcome of a code, it is just a piece of text to let someone know what you have done in a program or what is being done in a block of code. This is especially helpful when someone else has written a code and you are analyzing it for bug fixing or making a change in logic,
Comment
Variable
datatype
None
The name of the variable must always start with either a letter or an underscore (_). For example: _str, str, num, _num are all valid name for the variables.
True
False
I don't know
None
The name of the variable cannot start with a number. For example: 9num is not a valid variable name.
True
False
I don't know
None
The name of the variable cannot have special characters such as %, $, # etc, they can only have alphanumeric characters and underscore (A to Z, a to z, 0-9 or _ ).
True
False
I don't know
None
Variable name is case sensitive in Python which means num and NUM are two different variables in python.
True
False
I don't know
None
x = 10
y = 20
print(x + y)
p = "Hello"
q = "World"
print(p + " " + q)
30
Hello World
10
Hello World
I don't know
None
What will do ** operator?
exponentiation
multiplication
addition
None
