true explanation: Given x=10 (x equals 10); So x is not greater than 10. Expression evaluates to true b. x ans: true explanation: Given x=10 ; So x has some value. Expression evaluates to true c. (x != 5) && (y != z) ans: true explanation: Given x=10 ; So x is not equal to 5. Given y=15 and z=20; So both are not equal; Both the conditions are true; Expression evaluates to true d. x >= z || (x + y >= z) ans: true explanation: Given x=10 and z=20; x is not greater than or equal to z. first condition i.e x>=z is false But x+y =>30 is greater than or equal to z. i.e x+y >=z is true; Since conditions are combined using OR operator, it is evaluated to true (either of the...
To evaluate a variable expression, replace all the variables with numbers and simplify the resulting numerical expression. 3m for m = 9 3(9)=27
Basically the same way that you evaluate other types of expressions with variables: * You replace the variables by the value assigned to the variables. * Then you do the specified calculations.
It means that if you replace one variable with one of the numbers, and the other variable with the other numbers, and then evaluate the expressions on each side of the equations, the equalities will be true.
Two expressions are "equivalent" if they have the same result for any values of the variable or variables.
Substitute the value found back into the equation, evaluate the expressions and see if the resulting equation is true.
An equation if both expressions are equal
Expressions never have equality signs
evaluate
An expression with a variable.
These two are both similar because they are both expressions.
...are important things in programming. Example: extern int variable; /* declaration */ int variable= 8; /* definition with initialization */
You must substitute values for the variable.