Question: Provided below is a select case statement. Which of the following if statements can be used to replace the select case statement? select case number

Provided below is a select case statement. Which of the following if statements can be used to replace the select case statement?
select case number
case 1
display Group 1
case 3
display Group 3
case else
display Group unknown
endselect
a.
if number =1 then
display Group 1
else
if number =3 then
display Group 3
else
display Group unknown
endif
endif
b.
if number =1 then
display Group 1
else
if number =3 then
display Group 3
endif
else
display Group unknown
endif
endif
c.
if number =1 then
display Group 1
else
if number =3 then
display Group 3
else
if number <>1 OR 3 then
display Group unknown
endif
endif
endif
d.
if number =1 then
display Group 1
endif
if number =3 then
display Group 3
endif
if number <>1 OR 3 then
display Group unknown
endif

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!