Question 27 Not yet answered Marked out of 1.00 Flag question
Which of the 'if' statements below is the correct one for the following problem statement? To earn a medal in a competition, a participant must cycle at least 20 kilometers and swim 500 meters. Select one: O a. if cycleDist > 20 AND swimDist > 500 then display "July qualifies for a medal" else display "July does not qualify for a medal" endif O b. if cycleDist >= 20 AND swimDist >= 500 then display "July qualifies for a medal" else display "July does not qualify for a medal" endif O c. if cycleDist <> 20 AND swimDist <> 500 then display "July qualifies for a medal else display "July does not qualify for a medal" endif O d. if cycleDist <= 20 AND swimDist <= 500 then display "July qualifies for a medal" else display "July does not qualify for a medal" endif Question 30 Not yet answered Marked out of 1.00 Flag question
If x= 10 and y = 8, what will be displayed after the following statements have been executed? if x mod y < y\x then display "1" else if x+y<> x*2- 2 then display "2" else if x/2 > y\2 then display "3" endif else endif if x > y + 2 then display "4" else endif endif display "5" Select one: O a. 2 O b. 4 O c. 3 O d. 1 If x= 10 and y = 8, what will be displayed after the following statements have been executed? if x mod y < y\x then disp
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am