Python quiz Questions Part-3
FREE Online Courses: Your Passport to Excellence - Start Now
Quiz Summary
0 of 30 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Results
Results
0 of 30 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- Current
- Review / Skip
- Answered
- Correct
- Incorrect
-
Question 1 of 30
1. Question
Which of the following is a metacharacter check if the string ends with a specific character or a set of characters?
CorrectIncorrect -
Question 2 of 30
2. Question
Which of the following sub-packages is imported from SciPy to do the integration operation?
CorrectIncorrect -
Question 3 of 30
3. Question
- What does the function full() in NumPy return?
CorrectIncorrect -
Question 4 of 30
4. Question
- What does CRUD operation mean in SQL?
CorrectIncorrect -
Question 5 of 30
5. Question
Which of the following order in which the red, green, and blue values of the images are stored in Opencv?
CorrectIncorrect -
Question 6 of 30
6. Question
Which of the following levels of logging has the highest value?
CorrectIncorrect -
Question 7 of 30
7. Question
- Which of the following is the true about Pickler and JSON?
CorrectIncorrect -
Question 8 of 30
8. Question
Which of the following is the command that allows us to move to a particular line number?
CorrectIncorrect -
Question 9 of 30
9. Question
Which of the following is not a Python web framework?
CorrectIncorrect -
Question 10 of 30
10. Question
The process of imitating the IT systems such as workstations, network, storage, etc. is called?
CorrectIncorrect -
Question 11 of 30
11. Question
- What is the output of the below code?
len(list(re.findall(r'[^ac12]’,’abcak1fhajd32′)))
CorrectIncorrect -
Question 12 of 30
12. Question
- Find the output of the below code.
for i in enumerate([‘a’,’t’,’o’],1):
print(i,end=’ ‘)
CorrectIncorrect -
Question 13 of 30
13. Question
-
- Which of the following calls give an error for the below code?
def func(x):
if x==0:
return 1
return x*func(x-1)
CorrectIncorrect -
-
Question 14 of 30
14. Question
- What is the output of the below code?
import logging
logging.basicConfig(format=’%(asctime)s %(message)s’,datefmt=’%Y’)
logging.error(‘Error!’)
CorrectIncorrect -
Question 15 of 30
15. Question
- What is the output of the below code?
s=”abcdefghi”
s.find(“e”)
CorrectIncorrect -
Question 16 of 30
16. Question
- Which of the following is the correct code to warn with a pop-up window?
CorrectIncorrect -
Question 17 of 30
17. Question
- What is the output of the below code?
from numpy import poly1d
poly=poly1d([1,2,9])
poly(1)
CorrectIncorrect -
Question 18 of 30
18. Question
- Given a dataset named ‘df’ containing the 5 rows and 10 columns, find the output of the below code?
print(df.shape[0])
CorrectIncorrect -
Question 19 of 30
19. Question
- Given an image, what does the following code return?
new_image=ndimage.rotate(image, 60)
CorrectIncorrect -
Question 20 of 30
20. Question
Which of the following is the correct way to convert an image to a grayscale image using the PIL module?
CorrectIncorrect -
Question 21 of 30
21. Question
-
- What is the output of the below code?
import numpy as np
print(np.array([1,2,3])*2)
CorrectIncorrect -
-
Question 22 of 30
22. Question
Which of the following is the correct way to add a column named ‘clmn’ of type int(10) to the table named ‘tab’.
CorrectIncorrect -
Question 23 of 30
23. Question
- What does the below code return?
pic = cv2.imread(“image.png”)
print(pic.size)
CorrectIncorrect -
Question 24 of 30
24. Question
Which of the following is the correct way to write the log messages into a file named file.log?
CorrectIncorrect -
Question 25 of 30
25. Question
Which of the following codes to serialize the data and return the byte form ?
CorrectIncorrect -
Question 26 of 30
26. Question
- Find the output of the below code?
import numpy as np
arr = np.array([(1,2,3,4),(5,6,7,8)])
arr=arr.reshape(4,3)
print(arr.shape)
CorrectIncorrect -
Question 27 of 30
27. Question
- What does the below command do?
clear
CorrectIncorrect -
Question 28 of 30
28. Question
- What is the output of the below code, used with PDB, if the variable var holds the value 4?
whatis var
CorrectIncorrect -
Question 29 of 30
29. Question
- Which of the following is the correct way to select those rows from the table ‘tab’ where the values in the column named ‘clmn’ lie between 1 and 10?
CorrectIncorrect -
Question 30 of 30
30. Question
- Which of the following sets the columns ‘clmn’ as the index of the dataframe ‘df’?
CorrectIncorrect