No student devices needed. Know more
13 questions
The operator shown by "x/y" is
multiplication
division
addition
negation
The operator shown by "x%y" is called_____.
percentage
conversion specifier
modulus
multiplication
If x%2==0, the variable x represents an integer that is______.
odd
even
double
int
If x%2==1, the variable x represents an integer that is______.
odd
even
double
int
True or false: x=y is the same as x==y.
True
False
What is the expression in Ch for "less than or equal to"?
<
<=
>=
<==
What expression denotes "x is not equal to y"?
x//y
x
x neg y
x!=y
What is the logical "or" operator?
&&
!!
||
OR
In binary, "1" means "true" and "0" means false. What would the following expression return? 0||1
1
0
undefined
In binary, "1" means "true" and "0" means false. What would the following expression return? 0&&1
1
0
undefined
If int i=3, and int j=4, what value would the following expression return? i<5 && j<5
0
1
undefined
"Mr. Marsden is Batman"||"Mr. Marsden has 2 daughters" would return
0
1
undefined
"Mr. Marsden is Batman"&&"Mr. Marsden has 2 daughters" would return
0
1
undefined
Explore all questions with a free account