Font size
WorksheetsComputer Engineering - Python Exam
Total questions: 18
Worksheet time: 49mins
Type your full name
Type your grade and section (12AG or 12BG)
A (a) contains keys and values enclosed with curly braces { }.
A (a) is items separated by commas enclosed with parenthesis ( ),
once created it cannot be updated.
A (a) is items separated by commas enclosed with square brackets [ ], it can contain different types of data.
Which of the following is an invalid variable?
result_var_4
2nd_result
var
__var
Python enables concatenation of strings so you can add a string with string
or a variable.
True
False
Variables are nothing but
reserved memory location to store values
algorithms
concatenation of strings
exponentiation
And, Or, Not are examples of
Logical operators
Bitwise operators
Membership operators
Identity operators
What is the output of the following code
a=8
b=8
c=16
a/2 is c/4
True
False
In an If else statement, if the condition is evaluated to true, the
statement(s) of the if block will be executed, otherwise the statement(s) in else block will be executed.
True
False
<, >, <=, >= are examples of
Logical Operators
Comparison operators
Identity Operators
Arithmetic operators
+, -, *, / are examples of
Logical Operators
Comparison operators
Identity Operators
Arithmetic operators
Divides the left-hand operand by the right-hand operand and
returns the remainder.
Floor Division
Division
Modulus
Exponential
Is the division of operands where the result is the
quotient with the digits after the decimal point removed.
Floor Division
Division
Modulus
Exponential
State four features of Python.
State 4 applications of Python.
What is the output of the below code?
numbers = [10, 20]
items = ["Chair", "Table"]
print (numbers + items)
print (items * 2)
[10, 20, 'Chair', 'Table']
['Chair', 'Table', 'Chair', 'Table']
[10, 20, 'Chair', 'Table']
[‘Chair’, ‘Table’, 2]
[30, ‘Chair Table’]
['Chair', 'Table', 'Chair', 'Table']
