Question: 1. What is a common use for a flag variable? A. To accumulate a sum B. To remember that something has occurred C. To count

1. What is a common use for a flag variable?

A. To accumulate a sum

B. To "remember" that something has occurred

C. To count

D. To signal the end of input

2. Which expression correctly tests if the variable ch holds an upper case letter?

A. ch >= 'A' || ch <= 'Z'

B. ch <= 'A' && ch >= 'Z'

C. ch >= 'A' && ch <= 'Z'

D. None of the above

3. Which of the following use short circuit evaluation? Select all that match.

A. false &&

B. true &&

C. false ||

D. true ||

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!