1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
n200080 [17]
3 years ago
10

HTTP is the protocol that governs communications between web servers and web clients (i.e. browsers). Part of the protocol inclu

des a status code returned by the server to tell the browser the status of its most recent page request. Some of the codes and their meanings are listed below: 200, OK (fulfilled) 403, forbidden 404, not found 500, server error Given an int variable status, write a switch statement that prints out the appropriate label from the above list based on status.
Computers and Technology
1 answer:
frutty [35]3 years ago
4 0

Answer:

A switch statement is a set of different outputs depending on the number of criteria asked to follow.

Given an integer number as a variable status, the algorithm would state as the following:

       int num

       switch (num) {

           case 200:

               printf(OK);

               break;

           case 403:

               printf(Fobidden);

               break;

           case 404:

               printf(Not Found);

               break;

           case 500:

               printf(Server Error);

               break;

           default:

               printf(Not a proper value);

               break;

       }

Depends on the value of hte variable "num", it will fall in one of the options above. If the variable has a different value that doesn't fit in any of the options above, it will prompt the default message.

You might be interested in
How can I lag my computer as if it had bad internet?
I am Lyosha [343]

Well if you want your computer to lag I recommend opening 20 or more websites at one time. At least one should be a video game of some sort. Or you can also download a lot of unnecessary stuff, make sure they all take up a lot of space. Also I bet spamming the reload button could work, it all depends on how good of a computer you have. Hope this helps :)

4 0
4 years ago
One advantage of a PAN​
drek231 [11]

Answer:

advantage is:

Data can Synchronize between different devices.

8 0
3 years ago
Read 2 more answers
50 pts
Aloiza [94]

Answer:

I would do newWord = word1 * word2

Explanation:

seems best for combining words. It wouldn't be - or == and + seems more math while * seems more combining words.

7 0
3 years ago
Read 2 more answers
11. What is the hexadecimal representation of each of the following binary numbers? a. 1100 1111 0101 0111
Marat540 [252]

Answer:

(a) 1100 1111 0101 0111_{2} = CF57_{16}

Explanation:

To convert from binary to hexadecimal, convert each 4 binary digits to its hexadecimal equivalent according to the following;

<em>Binary => Hex</em>

0000  => 0

0001   => 1

0010   => 2

0011    => 3

0100   => 4

0101    => 5

0110    => 6

0111     => 7

1000   => 8

1001    => 9

1010    => A

1011     => B

1100    => C

1101     => D

1110     => E

1111      => F

(a) 1100 1111 0101 0111

=> Taking the first four binary digits : 1100

According to the table, the hexadecimal equivalent is C

=> Taking the second four binary digits : 1111

According to the table, the hexadecimal equivalent is F

=> Taking the third four binary digits : 0101

According to the table, the hexadecimal equivalent is 5

=> Taking the last four binary digits : 0111

According to the table, the hexadecimal equivalent is 7

Therefore, the hexadecimal representation of

1100 1111 0101 0111 is CF57

3 0
3 years ago
Question = 5 Which of these causes problems because it causes all words to have the same shape? ​
Sever21 [200]
Where’s the picture?? Send the picture I’m not tryna just get points I want to help but you didn’t upload a picture
5 0
3 years ago
Other questions:
  • You have been doing a lot of web surfing lately as part of your research for your course and along the way you have noticed a gr
    14·1 answer
  • In this program you will read in the number of seconds and convert it to days, hours, minutes and remaining seconds. Your progra
    10·1 answer
  • What is the program that searches through data bases?
    10·1 answer
  • What is the real meaning of hack and crack?
    6·1 answer
  • What is transmission control protocol?
    9·2 answers
  • Format character of Date function that display the day of the month in 2 digits with leading zeros such as 01 to 31
    11·1 answer
  • 14. Which of the following statements is true? A. The most secure email message authenticity and confidentiality isprovided by s
    11·1 answer
  • If i took my SIM card out of my phone and put it in a router then connect the router and my phone with Ethernet cable would the
    12·1 answer
  • Can anyone give me $2 (Reddem code/Promo Code)​
    15·2 answers
  • I<br> What is a Watermark?
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!