It is bad cutting tree :(
Answer:
Hi!
The correct answer is d. Neither (a) nor (b) is true.
Explanation:
First, you have to know what the scripts intend to do, and they are counting from 1 to 10 in both cases.
Table of results of class TestA at end of each iteration:
[j = 0, counter = 1]
[j = 10, counter = 2]
[j = 20, counter = 3]
[j = 30, counter = 4]
[j = 40, counter = 5]
[j = 50, counter = 6]
[j = 60, counter = 7]
[j = 70, counter = 8]
[j = 80, counter = 9]
[j = 90, counter = 10]
Table of results of class TestB at end of each iteration:
[j = 10, counter = 1]
[j = 9, counter = 2]
[j = 8, counter = 3]
[j = 7, counter = 4]
[j = 6, counter = 5]
[j = 5, counter = 6]
[j = 4, counter = 7]
[j = 3, counter = 8]
[j = 2, counter = 9]
[j = 1, counter = 10]
That's why a) and b) are false.
Maybe you want to know why using pre increments on class TestB doesn't affect the loop. The reason is that when enters in a loop, first checks the test condition and takes the decision if true or false, and last executes the incrementation step.
Answer:
<em>Total time taken = 0.62 seconds
</em>
Explanation:
<em>Transmission rate = 18 Mbps</em>
The size of file X winch will go fast= 11.73 MiB (Mebibyte) = 8.38 Mb(Megabit)
The time it will take to transfer = File size / Transmission rate
= 8.38 / 18 seconds
= 0.46 seconds
Mb in 1 KiB = 116.415
The file Y that will go next has size = 340 Kib
= 340 / 116.41 Mb
= 2.92 Mb
The time it will take to transfer = 2.92 / 18 seconds
= 0.16
<em>Total time = Time taken for file X + Time taken for file Y </em>
<em>= 0.46 + 0.16 </em>
<em>= 0.62 </em>
<em />
Answer:
5 seconds
Explanation:
Given that :
Message size = 16kb
Packet size = 2kb
Speed = 4kbps
Number of links = 3
The time taken is calculated using the formula :
[Number of packets + (Number of links - 1)] * (packet size / speed)
Number of packets = message size / packet size
Number of packets = 16kb / 2 kb = 8
Hence,
[Number of packets + (Number of links - 1)] * (packet size / speed)
(8 + (3 - 1)) * (2 / 4)
(8 + 2) * (1 /2)
10 * 1/2
= 5 seconds
Answer: Python, Coding, JavaScript and there's more out there but it's been a while since I have taken Tech classes in a while!
Explanation: I recommend you use typing.com and code.org for coding! I don't know how else to answer this question but this was all I could say!