Welcome to your Python Set 5
Read this before do Start Exam:
1- There are 25 Questions and complete it within 30 Minutes.
2- For Best Experience download our Android App from Google Play Store.
परीक्षा शुरू करने से पहले इसे पढ़ें:
1- 25 प्रश्न हैं और इसे 30 मिनट के भीतर पूरा करें।
2- बेहतरीन अनुभव के लिए Google Play Store से हमारा Android ऐप डाउनलोड करें।
Download App Now
1.
Suppose list1 is [2, 33, 222, 14, 25], What is list1[:-1]?
2.
Suppose list1 is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after list1.reverse()?
3.
What is the output when we execute list(“hello”)?
4.
Suppose list1 is [3, 4, 5, 20, 5], what is list1.index(5)?
5.
Suppose list1 is [3, 5, 25, 11, 13], what is min(list1)?
6.
Which one of these is floor division?
7.
Which of the following is used to define a block of code in Python language?
8.
To shuffle the list(say list1) what function do we use?
9.
Is Python code compiled or interpreted?
10.
Which of the following is the correct extension of the Python file?
11.
Suppose listExample is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after listExample.pop(1)?
12.
Suppose list1 is [1, 3, 2], What is list1 * 2?
13.
Suppose list1 is [2, 33, 222, 14, 25], What is list1[-1]?
14.
Which of the following is the use of id() function in python?
15.
Suppose list1 is [2445,133,12454,123], what is max(list1)?
16.
To insert 5 to the third position in list1, we use which command?
17.
Suppose list1 = [0.5 * x for x in range(0, 4)], list1 is:
18.
What is the output of this expression, 3*1**3?
19.
Which of the following commands will create a list?
20.
Suppose list1 is [3, 4, 5, 20, 5, 25, 1, 3], what is list1.count(5)?
21.
Suppose list1 is [4, 2, 2, 4, 5, 2, 1, 0], Which of the following is correct syntax for slicing operation?
22.
Suppose list1 is [4, 7, 9], what is sum(list1)?
23.
What is the output of print 0.1 + 0.2 == 0.3?
24.
Suppose listExample is [‘h’,’e’,’l’,’l’,’o’], what is len(listExample)?
25.
To remove string “hello” from list1, we use which command?