Answer:
import java.util.Scanner;
class Main {
public static int calcSeries(int n) {
int sum = 0;
for(int i=10; i>=n; i--) {
sum += i;
}
return sum;
}
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
int n = 0;
do {
System.out.print("Enter n: ");
n = reader.nextInt();
if (n >= 10) {
System.out.println("Please enter a value lower than 10.");
}
} while (n >= 10);
reader.close();
System.out.printf("sum: %d\n", calcSeries(n));
}
}
Answer:
True on a web page such meta name will not appear in web view source and irrelevant information will be displayed.
Explanation:
Basically web page source is compiled version of HTML script so the end-user he or she tries to view pages system will show only in HTML.
so meta name information and active object information will not be displayed while viewing the web source code instead of that the irrelevant informant ions will be displayed and end-user cannot under anything out of the web source code.
Moreover, even the client side validation script also will not be displayed.
Only HTML will be displayed
D. A database is software which is designed to store massive amounts of data and organize them in such a way that information can easily be worked on (added, deleted, moved, etc...).
Answer:
The answer is: Only A is correct.
Explanation:
Variables in a program can assume different values at different times, and the program can then produce different results, depending on circumstances, so A is correct.
In a computer language, a reserved word (also known as a reserved identifier) is a word that cannot be used as an identifier, such as the name of a variable, function, or label – it is "reserved from use". This is a syntactic definition, and a reserved word may have no meaning. So, B is incorrect.
Hence, the answer is: Only A is correct.