Python quiz Questions Part-3
Python quiz Questions Part-3
by
PythonGeeks Team
Master programming with our job-ready courses: Enroll Now
0 of 30 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
You must sign in or sign up to start the quiz.
You must first complete the following:
Quiz complete. Results are being recorded.
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 )
Show Question
1
Show Question
2
Show Question
3
Show Question
4
Show Question
5
Show Question
6
Show Question
7
Show Question
8
Show Question
9
Show Question
10
Show Question
11
Show Question
12
Show Question
13
Show Question
14
Show Question
15
Show Question
16
Show Question
17
Show Question
18
Show Question
19
Show Question
20
Show Question
21
Show Question
22
Show Question
23
Show Question
24
Show Question
25
Show Question
26
Show Question
27
Show Question
28
Show Question
29
Show Question
30
Review / Skip
Answered
Correct
Incorrect
Question 1 of 30
Which of the following is a metacharacter check if the string ends with a specific character or a set of characters?
Question 2 of 30
Which of the following sub-packages is imported from SciPy to do the integration operation?
Question 3 of 30
What does the function full() in NumPy return?
Question 4 of 30
What does CRUD operation mean in SQL?
Question 5 of 30
Which of the following order in which the red, green, and blue values of the images are stored in Opencv?
Question 6 of 30
Which of the following levels of logging has the highest value?
Question 7 of 30
Which of the following is the true about Pickler and JSON?
Question 8 of 30
Which of the following is the command that allows us to move to a particular line number?
Question 9 of 30
Which of the following is not a Python web framework?
Question 10 of 30
The process of imitating the IT systems such as workstations, network, storage, etc. is called?
Question 11 of 30
What is the output of the below code?
len(list(re.findall(r'[^ac12]’,’abcak1fhajd32′)))
Question 12 of 30
Find the output of the below code.
for i in enumerate([‘a’,’t’,’o’],1):
print(i,end=’ ‘)
Question 13 of 30
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)
Question 14 of 30
What is the output of the below code?
import logging
logging.basicConfig(format=’%(asctime)s %(message)s’,datefmt=’%Y’)
logging.error(‘Error!’)
Question 15 of 30
What is the output of the below code?
s=”abcdefghi”
s.find(“e”)
Question 16 of 30
Which of the following is the correct code to warn with a pop-up window?
Question 17 of 30
What is the output of the below code?
from numpy import poly1d
poly=poly1d([1,2,9])
poly(1)
Question 18 of 30
Given a dataset named ‘df’ containing the 5 rows and 10 columns, find the output of the below code?
Question 19 of 30
Given an image, what does the following code return?
new_image=ndimage.rotate(image, 60)
Question 20 of 30
Which of the following is the correct way to convert an image to a grayscale image using the PIL module?
Question 21 of 30
What is the output of the below code?
import numpy as np
print(np.array([1,2,3])*2)
Question 22 of 30
Which of the following is the correct way to add a column named ‘clmn’ of type int(10) to the table named ‘tab’.
Question 23 of 30
What does the below code return?
pic = cv2.imread(“image.png”)
print(pic.size)
Question 24 of 30
Which of the following is the correct way to write the log messages into a file named file.log?
Question 25 of 30
Which of the following codes to serialize the data and return the byte form ?
Question 26 of 30
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)
Question 27 of 30
What does the below command do?
Question 28 of 30
What is the output of the below code, used with PDB, if the variable var holds the value 4?
Question 29 of 30
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?
Question 30 of 30
Which of the following sets the columns ‘clmn’ as the index of the dataframe ‘df’?
Your 15 seconds will encourage us to work even harder
Please share your happy experience on Google | Facebook
PythonGeeks Team
The PythonGeeks Team offers industry-relevant Python programming tutorials, from web development to AI, ML and Data Science. With a focus on simplicity, we help learners of all backgrounds build their coding skills.