ExamPlay Light Logo
Oturum aç

Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 9 - No. 1)

What is the purpose of the following algorithm: ```IF PercentageMark < 0 OR PercentageMark > 100 THEN OUTPUT "Fail" ELSE OUTPUT "Pass"```?
To calculate the grade based on the percentage mark.
To validate the input of percentage marks.
To sort the percentage marks in ascending order.
To determine the average percentage mark.

Açıklama

The algorithm is performing input validation, checking if the entered percentage mark falls within an acceptable range (0-100).

Yorumlar (0)

Yorum yapmak için giriş yapın
Reklamcılık
BrainBehindX Inc Logo
©2026; Tarafından desteklenmektedir BrainBehindX Inc