Which data type is assigned to a variable that contains a string?
Which of the following is the correct way to assign a value of 5 to a variable called 'x'?
What happens when you assign a new value to an existing variable?
What is the value of x after executing the following code?
x = 5
x = "IndiaBIX"
Which of the following is a valid way to concatenate two strings?
What is the output of the following code:
x = 10; y = 3
z = x % y
print(z)
What is the data type of the following value: "Hello, World!"
What is the data type of the following value: {"a": 1, "b": 2, "c": 3}
Which of the following data types is used to represent a collection of elements with no duplicates?
Which of the following data types is used to represent a collection of key-value pairs?
Which of the following data types is used to represent a sequence of characters?
Which of the following data types is used to represent a sequence of ordered elements that can be modified?
What is the result of the following operation: not (3 < 5)?
Which operator is used for performing logical AND operation?
What is the output of the following code?
num1 = 10
num2 = 20
num3 = 30
result = num1 < num2 and num3 > num2
print(result)
Which logical operator is used for the "exclusive or" (XOR)?
What is the output of the following code?
x = True
y = False
result = not x or y
print(result)