Join Now
Home Aptitude Reasoning DI VA GK CA CA Hindi Quiz Placements
list1.add(list2)
list1.append(list2)
list1 + list2
list1.extend(list2)
list.remove(element)
list.pop(element)
del list[element]
All of the above
x = 1
y = "Hello"
z = 3.14
2 = a
What is Python?
A high-level programming language
A database management system
A low-level programming language
A markup language
What is the output of the following code?
x = 2 y = 5 z = x + y print("The sum of", x, "and", y, "is", z)
The sum of 2 and 5 is 7
The sum of x and y is z
The sum of x and y is 7
None of the above
x = 3 if x > 5:print("x is greater than 5") elif x > 2:print("x is greater than 2") else:print("x is less than or equal to 2")
x is greater than 5
x is greater than 2
x is less than or equal to 2
class my_class():
define class my_class:
def my_class():
class my_class:
print("Hello" + " World")
Hello
World
Hello World
Type Error
dict.contains(key)
dict.has_key(key)
key in dict
dict.get(key)
function_name(arguments):
def function_name(arguments):
function_name(arguments)