Good Luck!

Congratulation.


advanced python

Advanced Python Quiz

1 / 45

What is the output of the following ?

2 / 45

What will be the output of the following Python code?

3 / 45

What will following code print?

4 / 45

What will following code output?

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

5 / 45

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

6 / 45

What is the output of the following Python code ?

 

7 / 45

What will following code print?

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

8 / 45

What will be the output?

9 / 45

What is the output?

10 / 45

What will be the output of below code?

11 / 45

What is the output?

12 / 45

What is the output ?

13 / 45

What will be the output?

14 / 45

Lamda is a statement?

15 / 45

What is the output of the following code?

print(0xA + 0xB + 0xC)

16 / 45

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

17 / 45

What is the output?

18 / 45

What is the output?

19 / 45

What will the below code print?

20 / 45

What will be the output of the following code?

21 / 45

What is the output?

22 / 45

What is the output of the following Python code ?

23 / 45

What is the output of following code?

24 / 45

What is the output?

25 / 45

What is the output?

26 / 45

What is the output of following code?

27 / 45

What will below code print?

28 / 45

What is the output?

29 / 45

What is the output?

30 / 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 ?

31 / 45

What is the output?

32 / 45

What is the output?

33 / 45

What is the output?

34 / 45

What is the output?

35 / 45

What will be the output?

36 / 45

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

37 / 45

What will below code output ?

38 / 45

What will below code print?

39 / 45

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

my_list = ["Hello", "World"]

40 / 45

What is the output ?

41 / 45

Which of the following will create a list?

42 / 45

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

43 / 45

What is the output of the following code?

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

44 / 45

What is the output?

45 / 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)

Your score is

The average score is 42%

0%

Scroll to Top