Question: i need help understanding the prompt. Question1: Consider the instruction: z = x % y. If x is $25 and y is 100, then what
i need help understanding the prompt.


Question1: Consider the instruction: z = x % y. If x is $25 and y is 100, then what is the variable z assigned with? [2 points] Answer: Question2: Which ones are valid comments. Circle your answer. [1 point each] // This statements adds x and y Valid Invalid //*** Careful!!! Tricky calculation below *** Valid Invalid // Determine taxes // Valid Invalid / Get name from user Valid Invalid I Get password from user Valid Invalid // Initialize sum with 20 before adding Valid Invalid W//This is a comment Valid Invalid Question3: What is the value of x after all following statements execute? [2 points] int X; int y; X = 5 X=X * y X=X * y Answer:Question4: Indicate whether the expression evaluates to true or false. Circle your answer. x is 5, y is 7. [1 point each] X == 5 true false X=y true false y != 7 true false y != 99 true false x != y true false Question5: What are logical operators? Explain each one with an example. [4 points]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
