Answer:
Check the explanation
Explanation:
arrow_base_height = int(input('Enter arrow base height:\n'))
arrow_base_width = int(input('Enter arrow base width:\n'))
arrow_head_width = arrow_base_width
while arrow_head_width <= arrow_base_width:
arrow_head_width = int(input('Enter arrow head width:\n'))
print()
for i in range(arrow_base_height):
for j in range(arrow_base_width):
print('*', end='')
print()
for i in range(arrow_head_width):
for j in range(arrow_head_width-i):
print('*', end='')
print()
Kindly check the code output below.
Answer:
Statement D is false
D. Java class libraries are not portable = FALSE
Explanation:
Because java class library are portable and JVM (java virtual machine) makes java class library and other java codes portable and platform independent and JVM act as a OS or imaginary CPU for that code.
Answer:
Hi there! The question is checking your knowledge on Pseudocode. Pseudocode is a high level solution written in plain English to outline the steps needed for the program to work correctly. An implementation for the different parts of the question is written below.
Explanation:
1. Determine the area of a triangle
declare formula for area calculation of triangle as ½ * (base * height)
validate input parameters “base” and “height”
apply formula and return result
2. Compute the interest earned Prompt user for input 2
declare formula for interest calculation as annual interest rate * term * starting account balance
validate input parameters “interest_rate” and “starting_account_balance ”
apply formula and return result as final balance at the end of the year as the interest earned + starting balance.
3. Determine the flying time between two cities given the mileage M between them and the average speed of the airplane.
declare formula for time calculation of triangle as time = distance / speed
validate input parameters for mileage “M” and speed “S”
apply formula and return result
Complete Question:
Determine the number of cache sets (S), tag bits (t), set index bits (s), and block offset bits (b) for a 4096-byte cache using 32-bit memory addresses, 8-byte cache blocks and a 8-way associative design. The cache has :
Cache size = 1024 bytes, sets t = 26.8, tag bits, s = 3.2, set index bit =2
Answer:
Check below for explanations
Explanation:
Cache size = 4096 bytes = 2¹² bytes
Memory address bit = 32
Block size = 8 bytes = 2³ bytes
Cache line = (cache size)/(Block size)
Cache line = 
Cache line = 2⁹
Block offset = 3 (From 2³)
Tag = (Memory address bit - block offset - Cache line bit)
Tag = (32 - 3 - 9)
Tag = 20
Total number of sets = 2⁹ = 512
Answer:
The detail answer to this question is given in the explanation section.
The correct answer is .info
Explanation:
Let look as each statement
p.info.important
this is a specific because it says
go to important property which is inside info property which is inside P
.info is less specific
because it will go to .info No function is given whose property is this.
p.info
This is some what specific. As it says select .info property which is inside p