Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ please e 53. What will be displayed by the following switch statement? char ch a switch (ch) case as case 'A' cout ch endl;

C++ please

eimage text in transcribed image text in transcribed

53. What will be displayed by the following switch statement? char ch a switch (ch) case as case 'A' cout ch endl; break; case 'b' case 'B' cout ch endl break case 'C' case 'C' cout ch endli break, case 'd case D' cout ch endli A. abcd B. a D. ab 54. Does the following Switch statement cause a compile-time error? (n and alpha are of type int) switch (n) case 6 alpha 10; break case 2 case 5 alpha 20; break case 8 case 2 alpha- 30 A. Yes--one or more break statements are missing. B. Yes--there are duplicate case labels. C. Yes--the data types of the case labels are not valid. D. Yes--the default label is missing. E. No. 55. What is the output of the following C++code fragment? intl 120 Assume user types 30 cin in if intl 100) 66 (int2 50)) int3 int1 int2, else int3 intl int cout intl int int A. 20 30 150 B. 20 30 90 C. 2050 170 D. 2050 70 E. 20 30 70 56. Which of the following statements is syntactically correct? A. char c 'd'; B. char c 00 C. char c "d" D, char c "100

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

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

More Books

Students also viewed these Databases questions

Question

=+1 What would you do if you were the IHR manager?

Answered: 1 week ago