Answer:
Explanation:
Pseudocode may not have a set number of rules of guidelines but there are still some habits that should be followed. This includes having only one statement per line and add the END keyword to loops. Both of these rules/habits will drastically increase the readability of the pseudocode and allow you to know exactly where a certain loop starts and ends. Since loops can become difficult to read if they have a lot of code within them. Another good guideline to keep in mind is to simplify the code as much as possible do not add unnecessary pseudocode if it is not absolutely needed.
Answer:
The conclusion is incorrect; using the test case [0, 1, 4, 5] is not sufficient to conclude the program is correct.
Explanation:
From the code snippet given, we cannot conclude that the test case is sufficient.
One of the reasons is because the test case contains only integer variables.
Tests need to be carried out for other large and floating points numerical data types such as decimal, double, float, etc. except that when it's known that the inputs will be of type integer only else, we can't rush into any conclusion about the code snippet
Another reason is that input are not gotten at runtime. Input gotten from runtime environment makes the program flexible enough.
Lastly, the array length of the array in the code segment is limited to 4. Flexible length needs to be tested before we can arrive at a reasonable conclusion.
I use host -a
dig and nslookup could do it, I forget the switches and arguments.
Answer:
Static web pages are sent as it is at web server without being processed additionally.
Dynamic web pages content may change, and server hosting dynamic web pages return content after processing trough a program.
Examples of dynamic and static web pages are below
Explanation:
<em><u>dynamic websites</u></em>
f o o t y r o o m (.co) It is a football website. Displays latest highlights and football stats. It is dynamic because it gives live match scores, as the scores change, content change as well.
a c c u w e a t h e r (.com) It shows weather information. It is dynamic because when requested, displays current weather information.
x e (.com) It is a currency website. Dynamic because it shows live exchange rates.
<em><u>static websites</u></em>
s c i p y - l e c t u r e s (.org) It is a website about scientific python environment. It is static because it gives same content whenever requested.
d o g a c a n d u . b l o g s p o t (.com) it is a blog. Static because the requested content doesn't change unless the blogger adds a new story.
z t a b l e (.net) It is a website about z-score values and includes z-tables. It is static because its displayed as it is.