The Daily CLAD

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

Re: CLAD2017 - Fundamentals - Let's have some order here!!

SercoSteveB
Active Participant

What are the contents of Array Out following execution of the VI?

 

NOTE:  Multiple answers may apply.

Comparison.png

 

Comparison Answers.png

Comments
crossrulz
Knight of NI

C, D



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Bcortes
NI Employee (retired)

 The right answer is D due to the following reasons:

1) The option A and B, are incorrect because when you compare two clusters, the result will be a cluster of booleans and each element of the cluster will maintain the label of the previous couple of clusters (Both of them had to be exactly equal to be compared).  

 

2) Since the numeric comparisons of 0>=1 and 1>=2, are both false, the option C is incorrect.

 

3)Both string comparisons Steve>=Likes and Likes>=LabVIEW are true since S is greater than L and i is greater than a. (Referring to string comparison rules http://zone.ni.com/reference/en-XX/help/371361P-01/lvhowto/string_comparison/)

mini09
Active Participant

D, not sure about C?

AUlikyan_ANEL
Member

D

nik35324
Member

C ,D

Depends on the cluster order.

C if the cluster order for NumericVal and StringVal are 0 and 1 respectively.

D if the cluster order for StringVal and NumericVal are 0 and 1 respectively.

AUlikyan_ANEL
Member

C,D

crossrulz
Knight of NI

It does depend on the cluster order.  But the important note here is that the cluster order can be different in the indicators than the comparison outputs.  And you will not have a coercion or error since the compiler only cares about the data types, not the labels.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
nik35324
Member

@crossrulz: "And you will not have a coercion or error since the compiler only cares about the data types, not the labels."

Completely agree with you.

 

 

Matt-A.
Member

C, D. 

ravitejashivuni
Member

C,D

RAVITEJA S

Priya16
Member

C,D

SPK91
Member

D

abostait97
Member

will you please tell me how the execution does!

------------------------------------------------------------------------
Certefied LabVIEW Student Ambassador
LabVIEW Associate Developer (CLAD)
NI LSA CU Represntative
levonsg
Member

D

https://images.youracclaim.com/size/340x340/images/2edb5b1a-9414-44e1-8519-c774fc6dd079/36015_Certificate_Badges_FINAL__1__NI_Instructor_v5.png