Answer:
Following are the code to this question:
void increase(double scores[][]) //defining method increase
{
//defining loop to multiply the value by 10
for(int x=0;x<scores.length;x++)
{
for(int y=0;y<scores[x].length;y++)
{
scores[x][y]=scores[x][y] * 10; //multiply value
}
}
}
increase (scores); //call method and pass the value
Explanation:
Description to this question can be described as follows:
- In the above-given code, a method increase is declared, in which we pass a double array "scores", and inside the method two for loop is defined.
- Inside the loop an integer variable "x and y" is used, which multiply by 10 in the score array.
- In the next line method is called, that accepts array value, in this method calling we can't need to receive the return value because it increases, and it does require a void return type.
Answer:
The program to question as follows:
Program:
PRINT "NEPAL", 'print message
PRINT ".EPA", 'print message
PRINT ".P", 'print message
Output:
NEPAL
.EPA
.P
Explanation:
In the above Qbasic program code, the three print function will be used to print the given pattern, that can be described as follows:
- The first time the print function is used, which uses a value, that is "NEPAL" to print its value.
- In the second time, again this function is used, that prints a value, that is ".EPA".
- In the last time, the print method accepts a value, which is ".P" to print its value. when the code is executed, it will print the given design.
Answer: (b) and (d)
Explanation:
Shortest job first and Priority are scheduling algorithms that could result in starvation.
The others won't result in starvation
<span>keep out unauthorized internet users from intranet networks
All firewalls are used to control the traffic between networks to only allowed traffic.
</span>
ICMP. It uses ICMP to send an echo request and echo reply messages that determine the validity of an IP address.