Answer:
1. Option A: for loop is correct
2. Option B: while loop is correct
Explanation:
Two loops are used commonly. For and while
For is used when the number of iterations are already known and while is used when number of iterations is not known and the loop has to be terminated based on any condition.
<u>1. You are finding the batting average of 13 baseball players.
</u>
For loop will be used as the number of iterations is already known. The score of 13 players has to be used to calculate the average so there will be 13 iterations. Hence, for loop will be used.
<u>2. You are asking your users for the names of all the stores where they shopped to find their friend's birthday present. They will show they are done by entering the word "done."</u>
While loop will be used as the termination of loop depends on the input given by the user so the number of iterations are not already known.
Hence,
1. Option A: for loop is correct
2. Option B: while loop is correct
Answer:
Melon
Explanation:
The variable "list" containts a function that returns a price that is greater than or equal to 60.0.
In the variable "fruit", the only item in the array with a price attribute set above that number is the string Melon.
Answer:
Option A
Explanation:
Because each function has specific amount of space allocated by default on the stack, so it cares about the length of the array being printed by it. By default the space is up to 100 kb but this size can be increased by setting it manually.
Option B is correct answer because scanf takes input from user until first space is hit.
The answer is Hardware level works upon dynamic parallelism whereas, the software level works on static parallelism. Dynamic parallelism means the processor decides at run time which instructions to execute in parallel,
Answer:
3. ReFS
Explanation:
Only in ReFS include and others do not have all of the below features
1. Automatic integrity checking and data scrubbing
2. Removal of the need for running chkdsk
3. Protection against data degradation
4. Built-in handling of hard disk drive failure and redundancy
5. Integration of RAID functionality
6. A switch to copy/allocate on write for data and metadata updates
7. Handling of very long paths and filenames
8. Storage virtualization and pooling