1
2
3
4
5
100

Another name of Merge sort algorithm

Divide and Conquer

100

What will the following code output?

x = 5
y = x + 3
print(x, y)


5 8

100

What will be the output of the following code?

for i in range(3):
    print(i)


0

1

2

100

What will the following code output?

x = 10
if x > 5:
    print("High")
else:
    print("Low")


High

100

What will be the output of the following code?

x = 2
y = x * x
print(y)


4

200

What will be the output of the following code?

def greet():
    return "Hello!"

print(greet())


Hello!

200

What will be the output of the following code?

x = 5
y = 10
print(x + y)


15

200

What is the position of 6 in the list [2, 4, 6, 8] ?

2

200

Linear search is also called ...

Serial Search

200

What will the following code output?

x = [1, 2, 3, 4]
print(len(x))


4

300

What will be the output of the following code?

fruits = ["apple", "banana", "cherry"]
print(fruits[1])


banana
300

What will be the output of the following code?

x = 4
y = 3
print(x + y * 2)


10

300

What will be the output of the following code?

num = 8
if num % 2 == 0:
    print("Even")
else:
    print("Odd")


Even

300

What will the following code output?

for i in range(2, 5):
    print(i, end=" ")


2 3 4

300

What will the following code output?

text = "hello"
print(len(text))


5

400

What will be the output of the following code?

for i in range(1, 6, 2):
    print(i, end=" ")


1 3 5

400

What will the output of the following code be?

def multiply(x, y):
    return x * y
result = multiply(3, 5)
print(result)


15

400

What will be the output of the following code?

nums = [2, 4, 6, 8]
nums[2] = 10
print(nums)


[2, 4, 10, 8]

400

What will the following code output?

nums = [3, 2, 4, 1] 
nums.sort()
print(nums)


[1, 2, 3, 4]

400

What will be the output of the following code?

x = [2, 4, 6]
print(x[0] + x[2])


8

500

What will be the output of this code?

name = "Sam"
age = 16
print(name, "is", age, "years old")


Sam is 16 years old

500

What will be the output of this code?

num = 4
while num > 0:
    print(num, end=" ")
    num -= 1


4 3 2 1

500

What will the output of the following code be?

x = [5, 3, 8, 6]
print(x[1] + x[-1])


9

500

What will be the output of the following code?

text = "goodbye"
print(text.upper())


GOODBYE

500

 What will the following code output?

x = 8
y = 3
print(x % y)


2

M
e
n
u