wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python for Finance

Total questions: 12

Worksheet time: 6mins

Name
Class
Date
1.

count = 10

count++


What is the value of count at the end of the execution of the above python code?

a)

10

b)

11

c)

0

d)

30

2.

x = '2'

y = '4'

result = x + y


What is the value stored in the variable result after the execution of the above python code?

a)

24

b)

2

c)

4

d)

6

3.

x = { 'name': 'shivam' , 'age': 34}


What is the data type of x['age'] ?

a)

Array

b)

Dictionary

c)

String

d)

Integer

4.

If we store the stock prices of Procter and Gamble in a pandas data object PG.

Then the command PG.head(10) will have the following output?

a)

Will display the last 5 rows of the pandas data object.

b)

Will display the last 5 rows of the pandas data object.

c)

Will display the first 10 rows of the pandas data object.

d)

Will display the 10th row of the Pandas data object.

5.

Which is correct method to import the entire math library?

a)

import math

b)

from math import sqrt

c)

Both the options (a) and (b) are correct.

d)

None of the options are correct.

6.

What library in python is used for plotting graphs?

a)

numpy

b)

pandas

c)

math

d)

matplotlib

7.

Which option are types of loops in python?

a)

Repeat and Counter

b)

Array and Dictionary

c)

Def and Return

d)

For and While

8.

What statistical concept we can use to predict / calculate asset prices?

a)

Regression / Extrapolation

b)

Correlation / Regression

c)

Intrapolation and Extrapolation

d)

All of the Options

9.

In discounted cash flow modeling, what range of values can the terminal growth rate take?

a)

Greater than zero but less than the discount rate.

b)

Any positive value.

c)

Any real value.

d)

Any value greater than the discount rate.

10.

In which scenario would one prefer to use logarithmic return of stock over simple returns?

a)

When we analyse different stocks over the same time period.

b)

When we analyse same stocks over different time periods.

c)

We don’t have any preference between the two.

d)

We should always prefer simple returns for stocks over log returns.

11.

Total risk of stock contains two components, which are

a)

Non-Diversifiable Risk and Systemic Risk

b)

Market Risk and Systemic Risk

c)

Business Risk and Unsystemic Risk

d)

Systemic Risk and Diversifiable Risk

12.

If you have to decide between two projects after calculating their NPV, you would decide on which one?

a)

The one with higher NPV.

b)

The one with lower NPV.

c)

You cannot choose between two projects based on NPV.

d)

IRR is better indicator of project relative worth than NPV.