Solved

Consider the Following Pseudocode, What Does It Produce

Question 74

Multiple Choice

Consider the following pseudocode, what does it produce?
Set n = 1.
Set p = 0.
Set s = 0.
Repeat until n equals 10
Calculate the square of n and store in s.
Add s to p.
Add 1 to n.
Print p.


A) The product of first 10 even numbers
B) Two raised to the power 10
C) The product of first 10 numbers
D) Sum of square of numbers between 1 and 10

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents