26. Which of the following is TRUE? a. The default case is required in the switc
ID: 3710392 • Letter: 2
Question
26. Which of the following is TRUE? a. The default case is required in the switch statement b. The break statement is required in each case of the switch statement c. An expression containing Il is true if either of the conditions is true d. A switch statement is the only type of decision statement available in C 27. Which code segment has an error (assume all variables are declared correctly)? a, while ( c ?= 5 ) { product *= c ; c ++ ; b. printf("%d", value); C. if ( gender-= 1 ) printf ("Woman") ; else printf ("Man ' ) d. None of the above 28. Why would you want to use a structure instead of a standard array? a. To combine only one type of related data b. To combine related data of different types c. To allow mixed types of unrelated data d. None of the aboveExplanation / Answer
26. c) An expression containing || is true if either of the conditions is true
27. a) while (c <= 5) { product *= c; c++; //missing closing flower bracket
28. a) To combine only one type of related data