wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

bootcamp

Total questions: 23

Worksheet time: 16mins

Name
Class
Date
1.

What is the output of the following code :

L = ['a','b','c','d']

print("".join(L))

a)

Error

b)

None

c)

abcd

d)

[‘a’,’b’,’c’,’d’]

2.

What is the output of the following program :

y = 8

z = lambda x : x * y

print(z(6))

a)

48

b)

16

c)

64

d)

None of the above

3.

Suppose list1 is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after list1.pop(1)?

a)

[3, 4, 5, 20, 5, 25, 1, 3]

b)

[1, 3, 3, 4, 5, 5, 20, 25]

c)

[3, 5, 20, 5, 25, 1, 3]

d)

[1, 3, 4, 5, 20, 5, 25]

4.

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

a)

Regression

b)

Decision Tree

c)

Clustering

d)

Association Rules

5.

Given a string s = “Welcome”, which of the following code is incorrect?

a)

print(s[0])

b)

print(s.lower())

c)

s[1] = ‘r’

d)

print(s.strip())

6.

What is the output of the following program :

print ('{0:.2}'.format(1.0 / 3))

a)

0.333333

b)

0.33

c)

0.333333

d)

Error

7.

The results of a hive query can be stored as?

a)

Local File

b)

HDFS file

c)

Both the above

d)

Can not be stored

8.

For which of the following distributions mean and variance are equal?

a)

Normal Distribution

b)

Poisson Distribution

c)

Binomial Distribution

d)

Negative Binomial Distribution

9.

The regression coefficient is independent of the change of

a)

Scale only

b)

Origin only

c)

Both scale and origin

d)

Neither scale nor origin

10.

The range of a regression coefficient is

a)

– ∞ to + ∞

b)

0 to + 1

c)

– 1 to + 1

d)

0 to + ∞

11.

Maximum value of correlation is

a)

2

b)

1.5

c)

1

d)

0

12.

Horizontal curve represents the value of coefficient of correlation to be

a)

Positive

b)

Negative

c)

Zero

d)

All of the above

13.

Which of the following sentence is FALSE regarding regression?

a)

It relates inputs to outputs.

b)

It is used for prediction.

c)

It may be used for interpretation.

d)

It discovers causal relationships.

14.

Which of the following is a Bagging algorithm?

a)

Random Forest

b)

Gradient Boosting Machine (GBM)

c)

XGBoost (Extreme Gradient Boosting)

d)

All of the above

15.

Which of the following is TRUE about Random Forest?

a)

Random Forest aims to decrease both variance and bias

b)

Random Forest aims to decrease variance not bias

c)

Random Forest aims to decrease bias not variance

d)

None of the above

16.

Functions in MS Excel must begin with ?

a)

()

b)

=

c)

+

d)

>

17.

In Excel, which one denoted a range from B1 through E5

a)

B1 - E5

b)

B1:E5

c)

B1 to E5

d)

B1$E5

18.

Which of the following is invalid statement?

a)

Sheet tabs can be colored

b)

Some picture can be applied as a background of a sheet

c)

You can set the column width automatically fit the amount of text

d)

The width of a row and be specified manually or fit automatically

19.

What is the full form of SQL?

a)

Structured Query Language

b)

Structured Query List

c)

Simple Query Language

d)

None of these

20.

Which of the following is a categorical outcome?

a)

RMSE

b)

RSquared

c)

Accuracy

d)

All of the Mentioned

21.

In PySpark, we can create DataFrame using -

a)

Tables in Hive

b)

Structured data files

c)

External databases

d)

All of the above

22.

Which of the following is an example of hyper-parameter?

a)

Regularization Penalty (Lambda) in Ridge and Lasso Regression

b)

Step Size and Learning Rate in Gradient Descent

c)

Number of Leaf Nodes in a Decision Tree

d)

All of the above

23.

Which of the following are Feature Scaling techniques?

a)

Normalization

b)

Standardization

c)

Both A and B

d)

None of the above