asked 17.3k views
5 votes
In an if…else statement, if the boolean expression is false:_________.

A) The first statement or block is executed
B) The statement or block following the default is executed
C) The statement or block following the else is executed
D) No statements or blocks are executed

asked
User ByteDuck
by
7.5k points

2 Answers

2 votes

Answer:

C) The statement or block following the else is executed

Step-by-step explanation:

An if... else statement in computer programming languages uses boolean expressions that evaluate to true or false which is denoted by 1 or 0. A statement which evaluates to true such as" x=1" declaration and "if x==1"is a conditional statement that will have it's block executed and if false(not the example) will execute the" else" statement which is an alternative if the "if" boolean evaluates to false.

answered
User TheDavidBarton
by
8.6k points
5 votes

Answer:

C) The statement or block following the else is executed

Step-by-step explanation:

In an if…else statement, if the boolean expression is false the statement or block following the else is executed.

answered
User BenR
by
8.3k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.