199k views
3 votes
Assuming that the following three variables have already been declared, which variable will store a Boolean value after these statements are executed?

choice = true;
again = "false";
result = 0;

a. choice
b. again
c. result
d. none of these are Boolean variables

User StoneBird
by
4.7k points

1 Answer

3 votes

Answer:

C

Step-by-step explanation:

Boolean Algebra deals with either a one or a zero and how to manipulate them in computers or elsewhere. The "choice" option may not work, since for text it must be enclosed in quotation marks, usually. For "again," it's text and not a 1 or 0. So, the answer is C, since this is a 0.

User Hinrich
by
5.2k points