for...of loop
The goal of this coding exam is to quickly get you off the ground with the for...of loop.
Use the below reference image.
https://assets.ccbp.in/frontend/content/dynamic-webapps/ce-3-1-3-for-of-loop-op.png
HTML
<!DOCTYPE html>
<html>
<head></head>
<body>
<div>
<h1>Cars</h1>
<ul id="listContainer"></ul>
</div>
</body>
</html>
JAVASCRIPT
let carBrands = ["Benz", "Ferrari", "Audi", "BMW"];
Achieve the design using the for...of loop to iterate over an array in the JS prefilled code.
Appending Elements Dynamically
The goal of this coding exam is to quickly get you off the ground with Creating and Appending Elements Dynamically with JS.
Use the below reference image.
https://assets.ccbp.in/frontend/content/dynamic-webapps/creating-and-appending-elements-with-js-op.png
HTML
<!DOCTYPE html>
<html>
<head></head>
<body>
<div id="myContainer"></div>
</body>
</html>
CSS Colors used:
Text colors Hex code values used:
#0000ff
Explain the anti competitive conduct in the banking industry as provided by the banking and financial services Act of 1994
In an intertemporal optimizing model consumption, a consumer living from time zero (0) to time t has a longer utility: U (C)= ln C. The market interest rate is r and the consumer is assuming no inheritance.
Derive the consumption relationship and the marginal utilities between two adjacent periods.
Using a diagram, explain the time profiles of paths based on (i) above.
Show that consumption is proportional to the present value of future income at time zero (0) at a given interest rate.
Counter
The goal of this coding exam is to quickly get you off the ground with Conversions and Conditional Statements.
Use the below reference image.
https://assets.ccbp.in/frontend/content/dynamic-webapps/counter-op.gif
HTML
<!DOCTYPE html>
<html>
<head> </head>
<body>
<p id="counterValue" class="counter-value">0</p>
<button id="decreaseBtn" class="button" onclick="onDecrement()">DECREASE</button>
<button id="resetBtn" class="button" onclick="onReset()">RESET</button>
<button id="increaseBtn" class="button" onclick="onIncrement()">INCREASE</button>
</body>
</html>
CSS
.counter-value {
font-size: 36px;
font-weight: 900;
}
.button {
color: #ffffff;
background-color: #0967d2;
font-size: 14px;
border-width: 0;
border-radius: 4px;
padding: 10px;
}
Define Macroeconomics and shortly explain main issues of Macroeconomics?
Swati bought 600 shares of stock at a price of Rs 20 per share. She must pay her stock broker a 2% commission for the transaction.
Armstrong numbers between two intervals
Write a program to print all the Armstrong numbers in the given range
A to B(including A and B). An N-digit number is an Armstrong number if the number equals the sum of the Nth power of its digits.
Input
The first line has an integer
A. The second line has an integer B.
Output
Print all Armstrong numbers separated by a space.
If there are no Armstrong numbers in the given range, print
-1.
Explanation
For
A = 150 and B = 200
For example, if we take number 153, the sum of the cube of digits
1, 5, 3 is
13 + 53 + 33 = 153.
So, the output should be
153.
Sample Input 1
150
200
Sample Output 1
153
Sample Input 2
1
3
Sample Output 2
1 2 3
Sample output 3
200
Sample input 3
-1
Sign In Page
The goal of this coding exam is to quickly get you off the ground with Conversions and Conditional Statements.
Use the below reference image.
https://assets.ccbp.in/frontend/content/dynamic-webapps/signin-op.gif
HTML
<!DOCTYPE html>
<html>
<head></head>
<body>
<p>Enter your Name</p>
<input type="text" id="inputElement" />
<p>Enter your Password</p>
<input type="password" id="passwordElement" />
<div>
<button class="button" id="signInBtn" onclick="signIn()">Sign In</button>
</div>
<p id="messageText"></p>
</body>
</html>
CSS
.button {
color: #ffffff;
background-color: #0967d2;
font-size: 14px;
border-width: 0;
border-radius: 4px;
margin: 10px;
padding: 10px;
}
Let G be multiplication group all positive real number and R the additive group of all real number. Is G a subgroup of R? explain