Good Luck!

Congratulation.


advanced python

Advanced Python Quiz

1 / 45

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 ?

2 / 45

What will be the output of the following Python code?

3 / 45

What is the output?

4 / 45

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)

5 / 45

What is the output?

6 / 45

What will be the output of the following code?

7 / 45

What is the output?

8 / 45

What is the output?

9 / 45

What will following code print?

10 / 45

What will below code output ?

11 / 45

What is the output of following code?

12 / 45

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

13 / 45

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

14 / 45

What will be the output of below code?

15 / 45

What is the output of the following Python code ?

16 / 45

What is the output?

17 / 45

What is the output of the following code?

print(0xA + 0xB + 0xC)

18 / 45

Lamda is a statement?

19 / 45

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

20 / 45

What is the output?

21 / 45

What is the output ?

22 / 45

What is the output of the following Python code ?

 

23 / 45

What is the output ?

24 / 45

What will be the output?

25 / 45

Which of the following will create a list?

26 / 45

What is the output?

27 / 45

What is the output?

28 / 45

What will below code print?

29 / 45

What is the output?

30 / 45

What will the below code print?

31 / 45

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

32 / 45

What will be the output?

33 / 45

What is the output?

34 / 45

What is the output of following code?

35 / 45

What is the output?

36 / 45

What will below code print?

37 / 45

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

my_list = ["Hello", "World"]

38 / 45

What is the output?

39 / 45

What is the output?

40 / 45

What will following code print?

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

41 / 45

What is the output of the following ?

42 / 45

What is the output?

43 / 45

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

44 / 45

What is the output?

45 / 45

What is the output of the following code?

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

Your score is

The average score is 42%

0%

Scroll to Top