If the following pseudocode were coded and executed, assuming all variables have been declared as integers, what would be the display?

```
Set x = 0
For m = 1 To 3
For p = 1 to 3
Set x = x + p
End For
End For
Display x

```

a. 3
b. 18
c. 9
d. 21


b. 18

Computer Science & Information Technology

You might also like to view...

Which of the following is true about destructors?

A. They are called explicitly by the main programmer to destroy an object. B. The class programmer can choose any function name for a destructor. C. They are only called when the program comes to an end. D. They are often written to prevent memory leak from occurring.

Computer Science & Information Technology

What enables you to call attention to information in a document by displaying it in a space along the side of the featured information?

A) Pull quote B) Caption C) Text box D) Sidebar

Computer Science & Information Technology

When L1 and L2 cache are included with the CPU or in the processor packaging, any cache installed on the motherboard is known as __________ cache

Fill in the blank(s) with correct word

Computer Science & Information Technology

WPS has a security flaw that allows a hacker to repeatedly guess the ______________ -digit numeric code.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology