Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

A)

count-controlled

B)

condition-controlled

C)

Do-While

D)

While

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:

A)

21

B)

3

C)

9

D)

18

3.

How many times would the following loop iterate? For m = 1 To 8 Step 3 Display m End For

Question 10 options:

A)

5

B)

3

C)

4

D)

infinite

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:

A)

4

B)

5

C)

3

D)

infinite

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

More Books

Students also viewed these Databases questions

Question

b. What are its goals and objectives?

Answered: 1 week ago