NEW
Font size
Worksheetsbootcamp
Total questions: 23
Worksheet time: 16mins
What is the output of the following code :
L = ['a','b','c','d']
print("".join(L))
Error
None
abcd
[‘a’,’b’,’c’,’d’]
What is the output of the following program :
y = 8
z = lambda x : x * y
print(z(6))
48
16
64
None of the above
Suppose list1 is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after list1.pop(1)?
[3, 4, 5, 20, 5, 25, 1, 3]
[1, 3, 3, 4, 5, 5, 20, 25]
[3, 5, 20, 5, 25, 1, 3]
[1, 3, 4, 5, 20, 5, 25]
Consider the results of a medical experiment that aims to predict whether someone is going to develop myopia based on some physical measurements and heredity.
In this case, the input dataset consists of the person’s medical characteristics and the target variable is binary: 1 for those who are likely to develop myopia and 0 for those who aren’t.
This can be best classified as
Regression
Decision Tree
Clustering
Association Rules
Given a string s = “Welcome”, which of the following code is incorrect?
print(s[0])
print(s.lower())
s[1] = ‘r’
print(s.strip())
What is the output of the following program :
print ('{0:.2}'.format(1.0 / 3))
0.333333
0.33
0.333333
Error
The results of a hive query can be stored as?
Local File
HDFS file
Both the above
Can not be stored
For which of the following distributions mean and variance are equal?
Normal Distribution
Poisson Distribution
Binomial Distribution
Negative Binomial Distribution
The regression coefficient is independent of the change of
Scale only
Origin only
Both scale and origin
Neither scale nor origin
The range of a regression coefficient is
– ∞ to + ∞
0 to + 1
– 1 to + 1
0 to + ∞
Maximum value of correlation is
2
1.5
1
0
Horizontal curve represents the value of coefficient of correlation to be
Positive
Negative
Zero
All of the above
Which of the following sentence is FALSE regarding regression?
It relates inputs to outputs.
It is used for prediction.
It may be used for interpretation.
It discovers causal relationships.
Which of the following is a Bagging algorithm?
Random Forest
Gradient Boosting Machine (GBM)
XGBoost (Extreme Gradient Boosting)
All of the above
Which of the following is TRUE about Random Forest?
Random Forest aims to decrease both variance and bias
Random Forest aims to decrease variance not bias
Random Forest aims to decrease bias not variance
None of the above
Functions in MS Excel must begin with ?
()
=
+
>
In Excel, which one denoted a range from B1 through E5
B1 - E5
B1:E5
B1 to E5
B1$E5
Which of the following is invalid statement?
Sheet tabs can be colored
Some picture can be applied as a background of a sheet
You can set the column width automatically fit the amount of text
The width of a row and be specified manually or fit automatically
What is the full form of SQL?
Structured Query Language
Structured Query List
Simple Query Language
None of these
Which of the following is a categorical outcome?
RMSE
RSquared
Accuracy
All of the Mentioned
In PySpark, we can create DataFrame using -
Tables in Hive
Structured data files
External databases
All of the above
Which of the following is an example of hyper-parameter?
Regularization Penalty (Lambda) in Ridge and Lasso Regression
Step Size and Learning Rate in Gradient Descent
Number of Leaf Nodes in a Decision Tree
All of the above
Which of the following are Feature Scaling techniques?
Normalization
Standardization
Both A and B
None of the above
