Contents
Chapter 7 · Data Structure and AlgorithmPractice
← Return to textbook

CONCEPT PRACTICE

Pre-test and post-test iteration

3 related verified questions. Take them one at a time.

Filter questions
Question sources

3 of 3 questions match.

ITPEC Practice
0/2 answered
Textbook Exercises
0/1 answered

Question 1 of 3

0/3 answered

2024 Spring · Subject A · Q6

Original exam question · Select the image to enlarge
Read the question as text

Q6. The flowchart below shows an algorithm that determines the sum (i.e. “1 +3+ 5+ … + (2N-1)”) of the first N odd integers from 1 through 2N-1 (where N ≥ 1) and inserts the result into variable x. Which of the following is an expression to be inserted in blank A ? Start x ← 0 i ← 1 Yes A No x ← x + i i ← i + 2 End

The original image above preserves the complete exam wording and layout.

Choose your answer
Choose an option to check your answer.
1 / 3

Source: 2024S_FE-A_Questions.pdf, PDF page 5. ID: 2024S-A-Q006. Explanation written for this textbook.

Original question · Q6
Q6. The flowchart below shows an algorithm that determines the sum (i.e. “1 +3+ 5+ … + (2N-1)”) of the first N odd integers from 1 through 2N-1 (where N ≥ 1) and inserts the result into variable x. Which of the following is an expression to be inserted in blank A ? Start x ← 0 i ← 1 Yes A No x ← x + i i ← i + 2 End

Scroll horizontally to read the image at full size.