NEW
Font size
WorksheetsByteBattle 2.0 (2)
Total questions: 30
Worksheet time: 23mins
Who created Python?
Examples of program translators
Compilers
Interpreters
Assemblers
All the above
Hey Aashi, Tara, and Ishika! Let's dive into the world of programming! Can you tell me what IDE stands for?
Integrated Development Environment
Implicit Deployment Environment
Interrogated Development Environment
Hey Arnav and Prisha! Let's have some fun with operators! Binary operators use _____ operands while unary operators use _____ operand. Can you figure it out?
one, one
two, one
two, two
three, two
Hey there, Aanya and Arjun! Let's settle a debate: Is Python case sensitive when it comes to identifiers?
Python treats uppercase and lowercase letters as the same in identifiers.
Yes, Python is case sensitive when dealing with identifiers.
No, Python is not case sensitive with identifiers.
Identifiers in Python are case insensitive.
Hey there, students! Let's have some fun with Python! All keywords in Python are in _________
case insensitive
lowercase
uppercase
Which of the following character is used to give single-line comments in Python?
Which of the following is a valid way to declare a variable in Python?
var x = 10
x := 10
x = 10
let x = 10
Hey Rohan! Can you help Alisha figure out what the 'len()' function does in Python?
Returns the length of an object
Converts an object to a list
Checks if an object is empty
Creates a new list
What is the output of the following code: print(type(5))?
<class 'int'>
<class 'float'>
<class 'str'>
<class 'list'>
What will be the result of the expression 3.14 + 2 in Python?
5.14
5
3.14
TypeError
What will be the output of the following code: print(type('Hello'))?
<class 'str'>
<class 'int'>
<class 'float'>
<class 'list'>
Which of the following statements is true about the type() function in Python?
It can only be used with numbers.
It returns the type of an object.
It can modify the type of an object.
It is used to create new types.
What is the output of the following code: print(type(3.14))?
<class 'float'>
<class 'int'>
<class 'str'>
<class 'list'>
Which of the following is a mutable datatype in Python?
Tuple
String
List
Integer
What will be the result of the expression 'Hello' + ' World' in Python?
Hello World
TypeError
HelloWorld
None
What will be the result of the expression 5.0 + 3 in Python?
8.0
8
5.0
TypeError
What is the output of the following code: print(2.5 * 4)?
10.0
10
8.0
8
Which of the following statements is true about adding a float and an integer in Python?
It results in a float.
It results in an integer.
It raises a TypeError.
It results in a string.
What will be the output of the following code: print('Python' * 2)?
PythonPython
Python 2
2 Python
TypeError
What will be the output of the following code: print('Hello' * 3)?
HelloHelloHello
Hello 3
3 Hello
TypeError
What will be the result of the expression 'Python' + 3 in Python?
TypeError
Python3
Python 3
None
What will be the output of the expression len('Python') in Python?
6
5
TypeError
None
What is the order of precedence in python?
Exponential, Parentheses, Multiplication, Division, Addition, Subtraction
Exponential, Parentheses, Division, Multiplication, Addition, Subtraction
Parentheses, Exponential, Multiplication, Division, Subtraction, Addition
Parentheses, Exponential, Multiplication, Division, Addition, Subtraction
What will be the output of the following Python code snippet if x=1?
x<<2
What will be the output of the following code: print(2 + 3 * 4)?
20
14
12
5
What will be the result of the expression 5 == 5.0 in Python?
True
False
TypeError
None
Which of the following is the truncation division operator in Python?
What arithmetic operators cannot be used with strings in Python?
modulus(%)
What is the maximum possible length of an identifier in Python?
