Answer:
Explanation:
In Javascript, you can accept an input value by using the prompt() function and saving the input into a variable. In the following lines of code, I have declared the three variables at the beginning and then prompted the user to enter a value for each and saved the values in the correct variables. In Javascript length is a keyword so I used len instead.
let base, height, len;
base = prompt("Enter Base value: ");
height = prompt("Enter Height value: ");
len = prompt("Enter Length value: ");
The answer is chope this helps
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.
Answer:
Output: 4
Explanation:
You start with [15,23,25]
You insert 13 at index 2 [15,13,33,25]
Append 3 [15,33,25,3]
Output length of array: 4
Answer: Asynchronous communication
Explanation: Asynchronous communication is the sending of the message or information in irregular interval stream.This communication can work without external signal of clock.There is no generation of the synchronized time in the receiver and transmitting clock.This function gives a variable bit rate.
The example mentioned in the question is also an example of asynchronous communication because they don't have simultaneous time shifting property while while using DVR and other devices.