0 of 25 Questions completed
Questions:
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:
0 of 25 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)
How much time will it take to execute the below code.
for i in range(5):
time.sleep(i)
for j in range(i):
time.sleep(j)
print(‘hey vertos’
How to drop multiple columns in a pandas dataframe.
How to Access Protected Variables in Python.
class Protected_var:
def __init__(self,Protected):
self._Proteced = Protected
x = Protected_var(15)
How to change an object type data type to a datetime datatype in pandas.
How to read a csv file with the help of pandas.
What is the output of the following code?
def f(x = 100, y = 100):
return(x+y, x-y)
x, y = f(y = 500, x = 100)
print(x, y)
What will be output of the following
X = 2%9
Y = 18%3
Z = X+Y/Y+(X-2)
print(z)
How to see all null values in a DataFrame.
What should we pass in our object of the class to get output as 120.
Class num:
def __init__(self,num = 0)
self.num = num
def get_num(self):
Main_num = self.num+(self.num+1)//2
return Main_num
X = num(your_num)
print(X.get_num)
What is the use of Label Encoder in a pandas DataFrame.
If the correlation between two Columns in a DataFrame is nearly 0.95 or nearly 1, What should we do with the columns
What will be our function output of the below code if we pass char = ‘,’
def splitter(char):
String = ‘Verto,__ academy,:Data Science ’
String = String.split(char)
return String
What value of n should we pass to break the loop
While True:
If n >0 and n <=15:
n = 100
If n >0 and n <=15:
break
else:
n = 0
if our column has outliers how can we check the outliers
How to set same figure size for all the graph by using seaborn or matplot
In a Python program, a control structure:
Which one of the following if statements will not execute successfully:
How to get the items of series A not present in series B?
ser1 = pd.Series([1, 2, 3, 4, 5])
ser2 = pd.Series([4, 5, 6, 7, 8])
check weather below code will give output as ‘ Volume of cube is : 64’ if we pass value of n =?.
class Cube_finder:
def __init__(self,n = 0):
self.n=n
def cube(self):
Volume = self.n*3
return Volume
class Cube_modifier(Cube_finder):
def cube(self):
Volume = self.n**3
Volume = f’Volume of cube is : {Volume}’
return Volume
x = Cube_modifier(4)
print(x.cube())
How to generate random numbers in python in range between 1 to 10 (10 included)
import random as rd
Fg = rd
Gh =Fg
Which of the following is not true about the set?
Which of the following is a correct way to declare an empty set?
Iterables can store ______ type of values.
Can we directly change a dictionary to dataframe if yes how?
Dict = {‘Column1’:[15,16],’Column2’:[20,21]}
li = [24, 24, 24, 24, 25, 16]
print(set(li))