1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Mila [183]
2 years ago
7

The __________ statement allows you to check for

Computers and Technology
1 answer:
sweet [91]2 years ago
3 0

Answer:

B) nested if...else

Explanation:

In Computer programming, there are four (4) main types of statements used in the decision-making process and these are;

I. If statement.

II. If....else statement.

III. Else.....if statement.

IV. Nested if...else statement.

The nested if...else statement allows you to check for multiple test expressions and execute different codes for more than two conditions. It uses the other three (3) statements in its decision-making process.

However, only the first test expression would be executed when it is true and then the program is terminated. Otherwise, the program would continue to run until it gets to the breaking point (else statement) and then terminates.

You might be interested in
Trace the evaluation of the following expressions, and give their resulting values. Make sure to give a value of the appropriate
Masja [62]

Answer:

(a)\ 14"."43

(b)\ 0"0"7

(c)\ 2"8 - 2"611

(d)\ 7"(1 + 1)"46

(e)\ "1"23"4"30"7"17

Explanation:

Required

Evaluate each expression

The simple rules to follow are:

(1) All expressions in bracket will be evaluated based on its data type

(2) Divisions will return only integer values

(3) Integers immediately after string values will be concatenated (not added)

So, the results are as follows:

(a)\ 4 + 1 + 9 + "." + (-3 + 10) + 11 / 3

Evaluate till a string is encountered

4 + 1 + 9 = 14

Followed by "."

Then:

(-3 + 10)   = 7

11/ 3 = 3

"." + (-3 + 10) + 11/3 = "."73 -- because expressions after string operations are concatenated.

So, we have:

4 + 1 + 9 + "." + (-3 + 10) + 11 / 3 = 14"."43

(b)\ 8 + 6 * -2 + 4 + "0" + (2 + 5)

Evaluate till a string is encountered

8 + 6 * -2 + 4 =0

"0" + (2 + 5) ="0"7

So, we have:

8 + 6 * -2 + 4 + "0" + (2 + 5) = 0"0"7

(c)\ 1 + 1 + "8 - 2" + (8 - 2) + 1 + 1

Evaluate till a string is encountered

1 + 1 = 2

"8 - 2" + (8 - 2) + 1 + 1 = "8 - 2"611

So, we have:

1 + 1 + "8 - 2" + (8 - 2) + 1 + 1 = 2"8 - 2"611

(d)\ 5 + 2 + "(1 + 1)" + 4 + 2 * 3

Evaluate till a string is encountered

5 + 2 =7

"(1 + 1)" + 4 + 2 * 3 = "(1 + 1)"46 --- multiply 2 and 3, then concatenate

So, we have:

5 + 2 + "(1 + 1)" + 4 + 2 * 3= 7"(1 + 1)"46

(e)\ "1" + 2 + 3 + "4" + 5 * 6 + "7" + (8 + 9)

Since a string starts the expression, the whole expression will be concatenated except the multiplication and the expressions in bracket.

So, we have:

"1" + 2 + 3 + "4" + 5 * 6 + "7" + (8 + 9) = "1"23"4"30"7"17

7 0
3 years ago
You would like to create a graph that shows how much of your total investments are in stocks, savings, and mutual funds. You sho
sdas [7]
The answer is D. line graph
4 0
3 years ago
Read 2 more answers
NEED ANSWER ASAP. CORRECT ANSWER GETS BRAINLIEST! TY
Tasya [4]

Answer:

scope because the scope will determine the Time for the employee to work

8 0
3 years ago
Why might you complete a 1040 instead of a <br> 1040ez
julia-pushkina [17]
Because compared to 1040EZ, 1040 way more more complex.


3 0
3 years ago
Read 2 more answers
You need to immediately terminate process id 2129. which command should you use?
kolezko [41]
<span>The kill -9 2129, kill -s KILL 2129, or kill -KILL 2129 commands</span>
8 0
3 years ago
Other questions:
  • True or False. It is required to restart the client computer after the DLP agent has been installed.
    9·2 answers
  • The work principle is not always true<br> T or F
    11·2 answers
  • Operational feasibility, which refers to user acceptance and support, as well as management acceptance and support, is also know
    9·1 answer
  • Which actions help to protect a computer and keep it running properly? Check all that apply.
    10·1 answer
  • Outlines are effective because
    13·2 answers
  • What was one complication caused by the tsunami that struck japan in 2011?
    15·1 answer
  • Write a program that takes the radius of a sphere (a floating-point number) as input and then outputs the sphere’s: Diameter (2
    7·1 answer
  • ___________ is a document that describes the locations of variables in the data file and lists the assignments of codes to the a
    12·1 answer
  • . Write a toString method for this class. The method should return a string containing the base, height and area of the triangle
    10·1 answer
  • What are some characteristics of filtering junk email in Outlook 2016? Check all that apply.
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!