Question
1. The following is an example of a(n) ________ loop. While x < 10 Set sum = sum + x Set x = x +
1.
The following is an example of a(n) ________ loop. While x < 10 Set sum = sum + x Set x = x + 1 End While
Question 1 options:
| |||
| |||
| |||
|
2.
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
Question 4 options:
| |||
| |||
| |||
|
3.
How many times would the following loop iterate? For m = 1 To 8 Step 3 Display m End For
Question 10 options:
| |||
| |||
| |||
|
4.
How many times would the following loop iterate? Set k = 1 While k < 5 Display k Set k = k + 1 End While
Question 11 options:
| |||
| |||
| |||
|
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started