This Test contains totally 30 Questions each carry 1 point for you.
1.Which of the following is not an advantage of using modules?
reuse of program code
dividing up tasks
reducing the size of the program
testing individual parts of the program
Correct!
Wrong!
2.In terms of OOP terminology what is Instantiation?
Deleting an instance of class
Modifying an instance of class
Copying an instance of class
Creating an instance of class
Correct!
Wrong!
3.Which of the following is not a valid namespace?
Global namespace
Public namespace
Built-in namespace
Local namespace
Correct!
Wrong!
4.What will be the output of print(math.copysign(3, -1))?
1
1.0
-3
-3.0
Correct!
Wrong!
5.Which of the following mode will refer to binary data?
r
w
+
b
Correct!
Wrong!
6.What will be the output of the following Python code?
x = ['ab', 'cd']
print(list(map(upper, x)))
[‘AB’, ‘CD’]
[‘ab’, ‘cd’]
error
none of the mentioned
Correct!
Wrong!
7.What will be the output of the following Python code?
x = [34, 56]
print((''.join(list(map(str, x))),))
3456
(3456)
(‘3456’)
(‘3456’,)
Correct!
Wrong!
8.What will be the output of the following Python code?
import time
time.asctime()
Current date only
UTC time
Current date and time
Current time only
Correct!
Wrong!
9.What will be the output of the following Python code?
import time
for i in range(0,5):
print(i)
time.sleep(2)
After an interval of 2 seconds, the numbers 1, 2, 3, 4, 5 are printed all together
After an interval of 2 seconds, the numbers 0, 1, 2, 3, 4 are printed all together
Prints the numbers 1, 2, 3, 4, 5 at an interval of 2 seconds between each number
Prints the numbers 0, 1, 2, 3, 4 at an interval of 2 seconds between each number
Correct!
Wrong!
10.Which of the following is equivalent to random.randrange(3)?
range(3)
random.choice(range(0, 3))
random.shuffle(range(3))
random.select(range(3))
Correct!
Wrong!
11.Which is the most popular open-source Python library that is used for performing data analysis.
Numpy
Pandas
Matplotlib
Correct!
Wrong!
12.The two basic and universally-popular data structures of Pandas are ........... and ............
Series Dataframe
Numpy Dataframe
Series Pandas
Correct!
Wrong!
13.Identify the correct statement
The standard marker for missing data in Pandas is NaN
Series act in a way similar to that of an array
Both of the above
None of the above
Correct!
Wrong!
14.How we can convert the Numpy array to the list in python?
list(array)
list.array
array.list
None of the above
Correct!
Wrong!
15.What is the use of the size attribute in Numpy array in python ?
To find the direction
To find the number of items
To find the shape
All of the above
Correct!
Wrong!
16.Which of the following statement is false?
ndarray is also known as the axis array.
ndarray.dataitemSize is the buffer containing the actual elements of the array.
NumPy main object is the homogeneous multidimensional array
In Numpy, dimensions are called axes
Correct!
Wrong!
17.Which of the following hyper parameter(s), when increased may cause random forest to over fit the data?
- Number of Trees
- Depth of Tree
- Learning Rate
Only 1
Only 2
Only 3
1 and 2
2 and 3
1,2 and 3
Correct!
Wrong!
18.If you are working with categorical feature and you have not looked at the distribution of the categorical variable in the test data.
You need to apply one hot encoding (OHE) on the categorical feature(s). If you have applied OHE on a categorical variable of train dataset what are the challenges you might face?
You need to apply one hot encoding (OHE) on the categorical feature(s). If you have applied OHE on a categorical variable of train dataset what are the challenges you might face?
All categories of categorical variable are not present in the test dataset.
Frequency distribution of categories is different in train as compared to the test dataset.
Train and Test always have same distribution.
Both A and B
None of these
Correct!
Wrong!
19.Adding a non-important feature to a linear regression model may result in.
- Increase in R-square
- Decrease in R-square
Only 1 is correct
Only 2 is correct
Either 1 or 2
None of these
Correct!
Wrong!
20.Which of the following statements about Naive Bayes is incorrect?
Attributes are equally important.
Attributes are statistically dependent of one another given the class value.
Attributes are statistically independent of one another given the class value.
Attributes can be nominal or numeric
Correct!
Wrong!
21.Suppose we would like to perform clustering on spatial data such as the geometrical locations of houses. We wish to produce clusters of many different sizes and shapes. Which of the following methods is the most appropriate?
Decision Trees
Model-based clustering
Density-based clustering
K-means clustering
Correct!
Wrong!
22.“Convolutional Neural Networks can perform various types of transformation in an input”.
True
False
Correct!
Wrong!
23.In which neural net architecture, does weight sharing occur?
Convolutional neural Network
Recurrent Neural Network
Fully Connected Neural Network
Both A and B
Correct!
Wrong!
24.What is a dead unit in a neural network?
A unit which doesn’t update during training by any of its neighbor
A unit which does not respond completely to any of the training patterns
The unit which produces the biggest sum-squared error
None of these
Correct!
Wrong!
25.What are the factors to select the depth of neural network?
- Type of neural network (eg. MLP, CNN etc)
- Input data
- Computation power, i.e. Hardware capabilities and software capabilities
- Learning Rate
- The output function to map
1, 2, 4, 5
2, 3, 4, 5
1, 3, 4, 5
All of these
Correct!
Wrong!
26.What is Morphological Segmentation?
Does Discourse Analysis
Separate words into individual morphemes and identify the class of the morphemes
Is an extension of propositional logic
None of the mentioned
Correct!
Wrong!
27.Many words have more than one meaning; we have to choose the meaning which makes the most sense in context. This can be resolved by ____________
Fuzzy Logic
Word Sense Disambiguation
Shallow Semantic Analysis
All of the mentioned
Correct!
Wrong!
28.OCR (Optical Character Recognition) uses NLP
True
False
Correct!
Wrong!
29.What is hopfield model?
fully connected feedback network
fully connected feedback network with symmetric weights
fully connected feedforward network
fully connected feedback network with symmetric weights
Correct!
Wrong!
30.The recalled output in pattern association problem depends on?
nature of input-output
design of network
both input & design
none of the mentioned
Correct!
Wrong!
Share the quiz to show your results !
Subscribe to see your results
Data Science Online Test
You got %%score%% of %%total%% right
%%description%%
%%description%%
Loading...
