Answer:
The correct answer for the given question is 24
Explanation:
In the given question the value of variable i entered by the user is 25 i.e the value of i is 25 control checks the condition of if block which is false .So control moves to the else block and executed the condition inside the else block means it executed i-- decrements the value of i by 1 means i is 24
Following are the program of java :
import java.util.*;// import package
public class Main // main class
{
// main method
public static void main(String[] args)
{
int i = 0; // variable declaration
Scanner in = new Scanner(System.in); // creating class of scanner class
System.out.print("Enter a number: ");
i = in.nextInt(); // user input
if (i > 25) // check if block
{
i++; // increment the value of i
}
else
{
i--; // decrement the value of i
}
System.out.println(i); // display i
}
}
Output:
Enter a number:25
24
Answer and Explanation:
Static variables are variables that still maintain their values outside the score which they are declared. They are declared with the static keyword
Example:
<em>static int score = 30;</em>
Local variables are variables whose scope are restricted to a block. Their values are restricted to the block which they are declared in.
Example:
<em>void abd(){</em>
<em>int score;</em>
<em>}</em>
<em>score is a local variable to abcd() function</em>
Answer:
myScore Scores[24]
Explanation:
The array is used to store the data in continuous memory location.
The index of array start from zero, it means first element store in the index zero and second element store in the index 1. So, the index at which the element store is less than 1 from the number of element.
so, the last element is 25 - 1=24.
Option A: myScores + 25
It is not the correct way to store the element.
Option B: myScore Scores[24]
it is the correct form and also the index location is correct.
Option C: myScore Scores[25)
index number is wrong and also the bracket is wrong, it must be [ ].
Option D: myScore== Score[last]
It is not the correct way to store the element.
There, the correct option is B.
Answer: The central computer on a network is called :
A Server.
Explanation: Server is a program that provides services to other programs or devices either on the same computer or over a computer network.
Answer:
01010000 01010010
01001111 01001101
01001111 01000011
01001111 01000100
01000101 00111010
00100000 01000111
01101100 01101001
0111
100 0110001
0110111 01100011
this is the best i could do
Explanation: