Portfolio Optimization & Bond Prices in R Flashcards
(88 cards)
Which of the following statements about the minimum-variance frontier is CORRECT?
Question 1Answer
a.
The minimum-variance frontier only includes high-risk portfolios.
b.
It represents portfolios with the highest risk and return.
c.
All portfolios on the minimum-variance frontier are equally efficient.
d.
It includes portfolios that offer the best risk-return combinations from the global minimum-variance portfolio and upward.
D
What does the minimum-variance point on the efficient frontier represent?
Question 2Answer
a.
The portfolio with the highest return.
b.
The portfolio with the maximum risk.
c.
The portfolio with the minimum level of risk.
d.
The point where the portfolio’s return equals the risk-free rate.
C
What happens to the portfolio opportunity set when the correlation between two assets is 1 (perfectly positive)?
Question 3Answer
a.
It becomes limited to the individual assets only, with no diversification benefits.
b.
It expands to include a wider range of risk-return combinations.
c.
It offers the maximum advantage from diversification.
d.
The opportunity set remains unchanged regardless of the correlation.
A
What will be the output of the following R code? sumSq <- function(a, b) { a^2 + b^2 } sumSq(2, 3)
Question 4Answer
a.
[1] 5
b.
[1] 9
c.
[1] 13
d.
[1] 6
C
What does a negative correlation between assets in a portfolio imply?
Question 5Answer
a.
It indicates that the assets have no impact on each other’s performance.
b.
It means that one asset’s gains will perfectly offset the other’s losses.
c.
It suggests an increased risk of the portfolio.
d.
It indicates that the assets move in the same direction.
B
In terms of risk, how does a well-diversified portfolio compare to individual assets?
Question 6Answer
a.
It typically has lower risk than individual assets.
b.
The risk level is unrelated to that of individual assets.
c.
It has the same level of risk as the most risky individual asset.
d.
It has higher risk than individual assets.
A
In portfolio theory, what is the primary goal of diversification?
Question 7Answer
a.
To reduce unsystematic risk by investing in a variety of assets.
b.
To ensure that the portfolio contains only high-return assets.
c.
To focus exclusively on low-risk assets.
d.
To maximize the returns of the portfolio irrespective of risk.
A
What is the correct way to define a function in R that calculates the cube of a number?
Question 8Answer
a.
function cube(x) = x^3
b.
cube(x) <- x^3
c.
cube <- function(x) { x * x * x }
d.
cube = x => x^3
C?
Gemini got this one wrong
What will be the output of the following R code? f <- function(x) { x^2 } f(4)
Question 9Answer
a.
[1] 8
b.
[1] 4
c.
[1] 16
d.
[1] 2
C
What will be the output of the following R code? f <- function(x) { if (x > 10) “Greater” else “Smaller” } f(15)
Question 10Answer
a.
[1] “Smaller”
b.
[1] “Equal”
c.
[1] “Greater”
d.
[1] 15
C
In a portfolio, what does a higher reward-to-volatility ratio (Sharpe ratio) indicate?
Question 11Answer
a.
Lower overall portfolio performance.
b.
Greater risk compared to the returns.
c.
Better trade-off between risk and return.
d.
Higher volatility and lower returns.
C
Which of the following best describes the risk-return trade-off in portfolio theory?
Question 12Answer
a.
Risk and return are independent of each other.
b.
Risk is always constant regardless of return.
c.
Higher risk is associated with lower potential returns.
d.
Higher risk is associated with higher potential returns.
D
Consider the following function in R. What does it return when called with power(2, 3)? power <- function(x, n) {x^n}
Question 13Answer
a.
6
b.
4
c.
8
d.
9
C
What does the Sharpe ratio primarily measure in a portfolio?
Question 14Answer
a.
The correlation between the assets in the portfolio.
b.
The total expected return of the portfolio.
c.
The performance of the portfolio by adjusting for its risk.
d.
The weight of each asset in the portfolio.
C
What will be the output of this R function when called as divide(10, 2)? divide <- function(x, y) {x / y}
Question 15Answer
a.
2
b.
12
c.
20
d.
5
D
What does the Global Minimum Variance Portfolio (GMVP) represent on the efficient frontier?
Question 16Answer
a.
The point where the portfolio’s return is maximized.
b.
The portfolio with the highest return for a given level of risk.
c.
The portfolio with the highest Sharpe ratio.
d.
The portfolio with the least risk across all possible portfolios.
D
What is the Sharpe ratio used for in portfolio theory?
Question 17Answer
a.
To identify the correlation between different assets in a portfolio.
b.
To measure the performance of a portfolio by adjusting for its risk.
c.
To determine the exact weight of assets in a portfolio.
d.
To calculate the total expected return of a portfolio.
B
What will be the output of the following function when called as calculateModulus(9, 4)? calculateModulus <- function(a, b) {a %% b}
Question 18Answer
a.
4
b.
1
c.
5
d.
2
B
Your portfolio contains 25% of stock A, 35% of stock B, and 40% of stock C. Assume that stock A earned a 4% return, stock B earned 5% return, stock C earned 3% return this year. Which of the following codes is CORRECT to calculate total portfolio return this year?
Question 19Answer
a.
0.25 * 0.04 + 0.35 * 0.05 + 0.4 * 0.03
b.
0.254% + 0.355% + 0.4*3%
c.
25%3% + 35%5% + 40%*3%
d.
25%0.03 + 35%0.05 + 40%*0.03
A
What is the implication of a high Sharpe ratio for a portfolio?
Question 20Answer
a.
The portfolio has a high level of risk relative to its return.
b.
The Sharpe ratio has no implication on a portfolio’s performance.
c.
The portfolio is entirely composed of risk-free assets.
d.
The portfolio offers a better return per unit of risk.
D
In a portfolio, what does the Capital Allocation Line (CAL) represent when combined with a risk-free asset?
Question 21Answer
a.
The set of portfolios that offer the best possible trade-off between risk and return.
b.
The relationship between the returns of the risk-free asset and the market portfolio.
c.
The line connecting all portfolios with the same level of risk.
d.
A line that represents the highest risk portfolios available.
A
What is the impact of a perfectly hedged position in a portfolio?
Question 22Answer
a.
It increases the portfolio’s expected return without affecting risk.
b.
It achieves a portfolio standard deviation of zero.
c.
It has no significant impact on the portfolio’s risk or return.
d.
It results in the highest possible portfolio standard deviation.
B
What will be the output of the following function when called as sayMessage(“Hello”)? sayMessage <- function(message) {paste(“The message is:”, message)}
Question 1Answer
a.
“The message is: Hello”
b.
“sayMessage Hello”
c.
“The message is:”
d.
“Hello”
A
Which outcome is most likely when investing in a portfolio with assets that have high positive correlation?
Question 2Answer
a.
Limited diversification benefits.
b.
Decreased overall risk of the portfolio.
c.
Increased diversification benefits.
d.
Transformation of unsystematic risk into systematic risk.
A