Good Luck!

Congratulation.


advanced python

Advanced Python Quiz

1 / 40

What is the output of following code?

2 / 40

What is the output?

3 / 40

# What is the output of the following code?
my_string = "HelloWorld"
print(my_string[::-1])

4 / 40

# What is the output of the following code?
print(r"\nhello")

5 / 40

What is the output?

6 / 40

What will below code output ?

7 / 40

What is the output?

8 / 40

What is the output ?

9 / 40

What is the output?

10 / 40

What is the output ?

11 / 40

What will the below code print?

12 / 40

What is the output?

13 / 40

What is the output?
my_list = [1,2,1,2,3,4,5,1]
print(my_list.count(1))

14 / 40

What is the output of the following code?

print(0xA + 0xB + 0xC)

15 / 40

Which of the following will create a list?

16 / 40

Which of the following command will insert number 6 in the third position of my_list = [1, 2, 3, 4, 5] ?

17 / 40

What will below code print?

18 / 40

What is the output of following code?

19 / 40

What is the output ?

my_list = [1,2,3,4,5,6]
for i in range(len(my_list)):
       my_list[i-1] = my_list[i]
print(my_list)

20 / 40

What will be the output?

21 / 40

What will be the output?

22 / 40

What will be the output of the following code?

23 / 40

What is the output of the following ?

24 / 40

What will following code print?

my_list = [1, 2, 3]*2
print(my_list)

25 / 40

# What is the output of the following code?
print("hello"[2:])

26 / 40

Lamda is a statement?

27 / 40

From below my_list, how do you remove "Hello"?

my_list = ["Hello", "World"]

28 / 40

What will below code print?

29 / 40

What is the output of the following code?

my_list = ['h','e','l','l','o']
print(len(my_list))

30 / 40

What is the output?

31 / 40

What will following code output?

my_list = [0.5 * x for x in range(0,3)]
print(my_list)

32 / 40

How do you shuffle a list of items in Python?

my_list = [1, 2, 3, 4, 5]
What is the best way to shuffle above list ?

33 / 40

What is the output?

34 / 40

What is the output?

35 / 40

What will be the output of below code?

36 / 40

What is the output?

37 / 40

What is the output?

38 / 40

What will following code print?

39 / 40

What is the output?

40 / 40

What will be the output?

Your score is

The average score is 42%

0%

Scroll to Top