Solved

Consider the Following Pseudocode. What Does It Produce

Question 78

Multiple Choice

Consider the following pseudocode. What does it produce?
Set n = 1.
Set p = 1.
Repeat until n equals 20
Multiply p by 2 and store result in p.
Add 1 to n.
Print p.


A) The product of first 20 even numbers
B) Two raised to the power 20
C) The product of first 20 numbers
D) Factorial of 20

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