Question: Can you help me solve the following C programming questions? Multiple choice 1. The purpose of a flag variable is to a. ensure that a
Can you help me solve the following C programming questions?
Multiple choice
1. The purpose of a flag variable is to
a. ensure that a loop has one entry point and one exit point
b.keep the loop going forever
c. indicate when something is wrong in the code
d. branch out of a loop before the normal end point
2. When the paths in a loop cross one another, you get
a. an error
b. spaghetti code
c. nested loops
d. faster code
3. A nested loop is one
a. which can only count in the forward direction
b. which has multiple statements in its body
c. exists entirely within the body of another loop
d.which exists outside of the main function
4.Which type of loop must be executed at least once?
a. do-until loop
b. while loop
c. do-while loop
d. for loop
5.Select all of the following which are loops in C.
a. do-while loop
b. while loop
c. do until loop
d. for loop
e. if loop
f. infinite loop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
