java ch3
if
the _____ statement is used to make simple decision in java
true or false
a Boolean expression is one that is either:
braces
a block of code is enclosed in a set of _____
true or false
a flag may have the values:
if (chr == 'a')
if chr is a character variable, which of the following is written correctly?
Unicode number
in java, when a character is stored in memory, it is actually stored as an ______
unicode
this is an international coding system that is extensive enough to represent all the characters of all the world's alphabets
relational
this type of operator determines whether a specific relationship exists between two values:
120
what will be the value of ans after the following code has been executed? int ans=10; int x=65; int y=55; if(x>=y) ans=x+y;
20
what will be the value of ans after the following code has been executed? int x=90, y=55, ans=10; if(x==y); ans *=2;
15
what will be the value of x after the following code is executed? int x=75; int y=60; if(x>y) x=x-y;
ans=60, x=0, y=50
what will be the values of ans, x, and y after the following statements are executed? int ans = 35, x=50, y=50; if(x>=y) { ans = x+10; x-=y; } else { ans = y+10; y+=x; }
x<=y
which of the following expressions will determine whether x is less than or equal to y?
!=
which one of the following is the not equal operator?