Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started