NEW
Font size
WorksheetsPython for Finance
Total questions: 12
Worksheet time: 6mins
count = 10
count++
What is the value of count at the end of the execution of the above python code?
10
11
0
30
x = '2'
y = '4'
result = x + y
What is the value stored in the variable result after the execution of the above python code?
24
2
4
6
x = { 'name': 'shivam' , 'age': 34}
What is the data type of x['age'] ?
Array
Dictionary
String
Integer
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?
Will display the last 5 rows of the pandas data object.
Will display the last 5 rows of the pandas data object.
Will display the first 10 rows of the pandas data object.
Will display the 10th row of the Pandas data object.
Which is correct method to import the entire math library?
import math
from math import sqrt
Both the options (a) and (b) are correct.
None of the options are correct.
What library in python is used for plotting graphs?
numpy
pandas
math
matplotlib
Which option are types of loops in python?
Repeat and Counter
Array and Dictionary
Def and Return
For and While
What statistical concept we can use to predict / calculate asset prices?
Regression / Extrapolation
Correlation / Regression
Intrapolation and Extrapolation
All of the Options
In discounted cash flow modeling, what range of values can the terminal growth rate take?
Greater than zero but less than the discount rate.
Any positive value.
Any real value.
Any value greater than the discount rate.
In which scenario would one prefer to use logarithmic return of stock over simple returns?
When we analyse different stocks over the same time period.
When we analyse same stocks over different time periods.
We don’t have any preference between the two.
We should always prefer simple returns for stocks over log returns.
Total risk of stock contains two components, which are
Non-Diversifiable Risk and Systemic Risk
Market Risk and Systemic Risk
Business Risk and Unsystemic Risk
Systemic Risk and Diversifiable Risk
If you have to decide between two projects after calculating their NPV, you would decide on which one?
The one with higher NPV.
The one with lower NPV.
You cannot choose between two projects based on NPV.
IRR is better indicator of project relative worth than NPV.
