The Daily CLAD

Community Browser
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Case Structure Numeric Ranges

SercoSteveB
Active Participant

The value of Numeric Value In is 15.  What is Numeric Value Out following execution of the VI?

Case Structures 1.bmp

All of the cases for the Case Structure in the question, excluding the Default case (shown in the question) are shown below.

Case Structures 1b.bmp

a) 14

b) 15

c) 99

d) 225

Comments
Eddie_Rickey
Member

I think it should be 99 and am intertesed in why I am wrong

SercoSteveB
Active Participant

Hi Eddie

Good point, well made.  I need to engage brain before posting.  Answers modified.

Steve

Eddie_Rickey
Member

Well allllll righttt!!

Steve,

thank you for posting these questions. I was recently informed of your blog and have already learned a lot.

sumasbhat
Member

Ans is 99. Numeric value out will get default value.

srinath@elsys.in
Member

Ans is 99.... Default case will execute.

mini09
Active Participant

yeah guys the ans is 99 the default case will only execute..

YogeshShivarudrappa
Member

well, yes the ans is 99, since 15 is not

1. less than 0,

2. doesnt fall within 0 and 13 and

3. not equal to 14

ashwinilele
Member

Ans is C 99

AiraVaat
Member

answer is C becuase there is not case for 15 thus default case will be selected.

ramesh44
Member

c

Akhil_shah
Member

Can someone please explain the answer in detail.

Thank you.