tanishapatil1234 / test-fastpage-tp

Apache License 2.0
0 stars 2 forks source link

Unit 4 #43

Open tanishapatil1234 opened 1 year ago

tanishapatil1234 commented 1 year ago

Test:

image

Corrections:

image

Program A initializes i to 1. Inside the loop, it prints i and then increments i. The loop terminates when i is greater than 10, which occurs after 10 is printed. Program A prints 1 2 3 4 5 6 7 8 9 10. Program B initializes i to 0. Inside the loop, it increments i and then prints i. The loop terminates when i equals 10, which occurs after 10 is printed. Program B prints 1 2 3 4 5 6 7 8 9 10.

image

The program traverses wordList starting at the end of the list and moving to the start of the list, removing any elements that are equal to "the" or "a" along the way. Inserting this statement between lines 7 and 8 decrements index after checking each list element, ensuring that all elements are checked.

image

This code segment moves the robot forward whenever there is an open square in front of it. Once there is not an open square in front of it, the robot rotates right. The robot moves forward from its initial location to the upper right corner of the grid, then rotates right, then moves forward to the bottom right corner of the grid, then rotates right, then moves forward to the bottom left corner of the grid, then rotates right, then moves forward two squares to the gray square.

image

The two line graphs are roughly the same shape. Each value on the right line graph is about 10 times the corresponding value on the left line graph. Therefore, the average amount of data stored per user is about 10 GB.

image

The files that are up to 10 MB represent 17% + 24% + 25% + 10%, or 76%.

image

There is a 18 chance of "Lose a turn", a 18 chance of "Move 2 spaces", and a 68 chance of "Move 1 space". The variable spin is set to a random value between 1 and 8. If spin is 1 (which occurs 18 of the time), the code segment prints "Lose a turn". If spin is 2 (which occurs 18 of the time), the code segment prints "Move 2 spaces". The remaining 68 of the time, the code segment prints "Move 1 space".

image

The Internet is not controlled from a central device. Statements II and III are true. The Internet uses redundant routing to support fault tolerance. The Internet uses protocols so that data is transmitted in a standard format.

image

IPv6 allows for a greater number of IP addresses than IPv4 does, which allows more devices to be connected.

Which of the following best explains how a certificate authority is used in protecting data? Certificate authorities are entities that issue digital certificates, which are used to certify the ownership of public keys.

Hacks: LINK