Answer:
Option A is the right answer.
Explanation:
In any programming language, when a user needs to define the constant variable then he should need to define the variable in capital letter. It is not necessary for the compiler point of view but it is necessary for the standardization point of view. It means that when a user does not define the constant variable in the capital letter then it will never give an error.
Option "a" also states that the variable is constant and the scenario is to define the variable in capital letter hence option a is correct while the other is not because--
- Option b states that the user-defined reference variable but the reference variable is defined with the help of (*) symbol.
- Option c states about the loop variable but the loop variable also can define by small letters.
- Option d states that it is used for dynamic value but for dynamic variable a user can define small letters.
Answer:
At the end of the file name
Explanation:
A. Parabolic appears correct.
Answer:
Follows are the solution to these question:
Explanation:
Please find the complete question in the attached file.
For point a:
The "j" is the loop control variable that controls this loop
For point b:
The initialized statement for the given loop is "j = 1"
For point c:
The loop condition for the given loop is "j<=10" which indicates that the value of j is less than equal to 10.
For point d:
The loop given statement that updates the value of the s is "s = s+j*(j-1)".
Answer:
for(String s:words)
if(s.endsWith("ing"))
System.out.println(s);
Explanation:
Create an enhanced for loop that iterates through the words array
Check if an element in words ends with "ing" using endsWith() method (Since it is said that strings are lowercase letters, we do not need to check it)
If you find one that ends with "ing", print the element