Answer :
Written in java
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
int year;
Scanner scanner = new Scanner(System.in);
System.out.print("Please enter a year\n\n");
year = scanner.nextInt();
while (year < 1582) {
System.out.print("\nPlease enter a different year above 1582\n");
year = scanner.nextInt();
}
if (year % 4 == 0) {
if(year % 100 ==0 && year % 400 != 0){
System.out.println(year + " is not a leap year\n\n");
}else {
System.out.println(year + " is a leap year\n");
}
} else {
System.out.println(year + " is not a leap year\n\n");
}
}
}
Answer:
Result could be a memory leak or a spaceleak.
Explanation:
The result if a memory supervisor and a processor administrator quit conveying would prompt a negative result as they have to impart all together for the procedure manager to process the data that is being conveyed in and out.
Answer:
False is the correct answer for the above question.
Explanation:
- The structure is a user-defined data type, which is used to define the set of different data types and values. Just like in the above question, the class structure holds the list of three variables, which is a type of double.
- When any user wants to compare the two structure values, then he can do it with the help of comparing all the variables of a structure. if a user wants to compare the circle1 with the value of the circle2, then he needs to compare the circle1.centerX with circle2.centerX, and so on with the other variables.
- But the above question syntax will directly compare the two structure variable, which is not correct. Hence the above answer is false.
Answer:
The answer to this question is given below in the explanation section.
Explanation:
Almost all app that is doing online business integrated third party payment gateway and login/services. But some apps, don't integrate the third party login/signin services such as go ogle or face book login/sign in services.
But in the context of this question, for a parking payment app, upon reservation of parking space, the pay option connects a user to a third party/external gateway. This gateway will accept payment from the user and upon confirmation of payment, the parking space will get reserved.
so the correct option to this question is:
While the other options are incorrect because:
The sign-in option does not connect the user to a third pay/gateway in case if the app has self-registration and sign-in functionality. Rate and Time remaining are features of the app that does not force the user to connect third-party gateway.