Answer: Better Data Management
Explanation:
The main benefits of edge computing over cloud computing are: Better data management. Lower connectivity costs and better security practices. Reliable, uninterrupted connection.
Answer:
int reverseDrivers ,parkedDrivers ,slowDrivers, safeDrivers ,speeders;
int speed; // variable declaration
if(speed<0) // checking condition
reverseDrivers++; // increment the value by 1
else if (speed<1) // checking condition
parkedDrivers++;// increment the value by 1
else if (speed<40) // checking condition
slowDrivers++;// increment the value by 1
else if(speed<=65) // checking condition
safeDrivers ++;// increment the value by 1
else
speeders++;// increment the value by 1
Explanation:
Following are the description of statement
- Declared a variable reverseDrivers ,parkedDrivers, slowDrivers ,safeDrivers speeders and speed of integer types. These variables increments its value by 1 according to the condition of the speed variable.
- Speed variable check the condition of speed.
- if(speed<0) it increment the value by 1 in the "reverseDrivers" variable.
- if (speed<1) it increment the value by 1 in the "parkedDrivers" variable.
- if (speed<40) it increment the value by 1 in the "slowDrivers" variable.
- if(speed<=65) it increment the value by 1 in the "safeDrivers " variable.
- if all the if block condition fails then control moves to the else block and increment the value by 1 in the "speeders " variable.
Answer:
A) Switch
Explanation:
In Java and most programming Languages, A Switch Statement provides a multi branch statements which provides a more flexible way for transfer of execution to the branch that fulfills the condition of the expressed value. This is a better way of handling if...elseif....else statements. In this way, a variable is tested for equality against some values. Variables used in switch expressions can only be primitives (int, byte, char), enums and strings. A switch statement has
1. A default statement (optional), appears at the end of the switch and acts as the else condition.
2. A break statement which terminates the switch when reached.
The syntax of a switch statement is given below:
switch(expression) {
case x:
// code block
break;
case y:
// code block
break;
default:
// code block
}