Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ quick questions. 1. The error checking loop below ensures that the user enters character 'Y or 'y'. It should loop until one of these

C++ quick questions.

image text in transcribedimage text in transcribedimage text in transcribed

1. The error checking loop below ensures that the user enters character 'Y" or 'y'. It should loop until one of these two characters is entered. What is the correct loop test? char reply; do { cout > reply; while ( a. reply reply y b. replyY&& reply 'y c. reply! 'Y reply!'y' d. reply! 'Y' && reply !-'y' 2. What is the output of the code segment? int n 0 while (n 0; c. Both loops display the output. d. Neither loop displays the output

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

Students also viewed these Databases questions