1. What will be displayed if code corresponding to the following pseudocode is e
ID: 3642591 • Letter: 1
Question
1. What will be displayed if code corresponding to the following pseudocode is executed?Set Number = 4
Repeat
Write 2 * Number
Set Number = Number + 2
Until Number = 8
a. 8 b. 4 c. 8 d. 12
12 8 12 16
16 12
2. What will be displayed after code corresponding to the following pseudocode is run?
Set Count = 2
While Count < 10
Set Count = Count + 2
Write Count
End While
a. 2 b. 2 c. 4 d. 4
4 4 6 6
6 6 8 8
8 8 10
10
3. A counter must be:
a. a positive number
b. a float
c. an integer
d. a variable named Count
4. Given that Count = 23, what is the value of Count after the following statement is executed: Count = Count + 2
a. 23
b. 25
c. 48
d. 24
5. What will be displayed after code corresponding to the following pseudocode is run?
Set Count = 10
While Count > 0
Write Count
Set Count = Count
Explanation / Answer
1. a.8 2. will be displayed: 4, 6, 8 3. a. a positive number 4. b. 25 5. output is: 10,8,6,4,2 6. output is: 3,4,6,8 7. e. all of the above can be nested inside a For loop 8. True 9. 5 10, 6 12, 7 14 10. b. Answer == No 11. c. Line 7 12. a. You are eligible to vote. 13. e. all of the above are types of selection structures 14. c. $ 430 15. d. Goodbye, apple lover. 16. b. Colors[3] 17. a 18. c. parallel arrays 19. b 20. output: 1,2,3 21. d 22. d 23. d 24. a 25. c Because some of your text is not well aligned i wrote the result so you can easily match it.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.