Answer:
In the first expression
3 * 4 will be performed second.
In the second expression
10* 2 will be performed second.
Explanation:
In many programming language, there is an operator precedence where the operator (e.g. +, - , * , / etc) will be executed following a specific order. For example, the operator ^ which denotes power will always be executed prior to * or / and if / and * exist in the same expression, the operator positioned at the left will be executed first.
Hence, in the expression 3*2^2 < 16 , 2 will be powered to 2 (2^2) first and then only multiplied with 3.
In the expression 100 / 10 * 2 > 15 - 3, 100 will be divided by 10 and then only multiplied with 2.
Answer:
import java.util.Scanner;
public class num4 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int sumOdds =0;
int sumEvens =0;
int num;
do{
System.out.println("Enter positive integers");
num = in.nextInt();
if(num%2==0){
sumEvens+=num;
}
else if (num%2!=0){
sumOdds+=num;
}
}while (num>0);
System.out.println("The sum of evens: "+sumEvens);
System.out.println("The sum of odds: "+sumOdds);
}
}
Explanation:
- Import Scanner class to prompt and receive user input
- Declare the following variables and initialize them int sumOdds =0, int sumEvens =0, int num;
- Create a do....while loop That continously prompts user to enter a positive number. The loop should terminate when a negative number is enters (n<=0)
- Within the while loop use an if condition with the modulo (%) operator to determine even and odd numbers and add to the respective variables
- Outside of the while loop Print sum of odds and sum of evens
Answer: d. incremental backup
Explanation:
In incremental backup it copies only the files that have changed since the last full backup. It does not backup all the files just like the full backup. it however backup those copies into the system which has changed since the last backup.
In doing so it just increases the efficiency and performance of the backup procedure. This process is basically preferred when the amount of file to be backup is huge and there is not enough time to do a full backup.
Increment backup also use less disk space.
Cloud backup uses most increment backup for its application.
The answer is B. It matters which way you park your car . Your car should also be parallel to the carb but with the wheels inward to the right
Hey there!
I think it's either A or D
Hope this helps you a little!
Always remember, you are A Work Of Art!
- Nicole