Pseudocode: What is the output of the code corresponding to the following pseudocode? Set M = 2 Repeat Set P = 1 While P < 4 print M + " and " + P Set P =P + 1 End While (P) Set M = M + 1 Until M = 3 O 2 and 1 2 and 2 2 and 3 3 and 1 3 and 2 3 and 3 O None of these choices OM and P M and P M and P O 1 and 1 2 and 2 3 and 3 O 2 and 1 3 and 1

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 10PE
icon
Related questions
Question
Pseudocode:
What is the output of the code corresponding to the following pseudocode?
Set M = 2
Repeat
Set P = 1
while P < 4
print M + "
and "
Set P = P + 1
End While (P)
Set M = M + 1
Until M = 3
O 2 and 1
2 and 2
2 and 3
3 and 1
3 and 2
3 and 3
O None of these choices
OM and P
M and P
M and P
O1 and 1
2 and 2
3 and 3
O 2 and 1
|
3 and 1
Transcribed Image Text:Pseudocode: What is the output of the code corresponding to the following pseudocode? Set M = 2 Repeat Set P = 1 while P < 4 print M + " and " Set P = P + 1 End While (P) Set M = M + 1 Until M = 3 O 2 and 1 2 and 2 2 and 3 3 and 1 3 and 2 3 and 3 O None of these choices OM and P M and P M and P O1 and 1 2 and 2 3 and 3 O 2 and 1 | 3 and 1
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT