From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

The Daily CLAD

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

Re: CLAD2017 - Fundamentals - Array SubSubSubSet

SercoSteveB
Active Participant

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

 

ArraySubSubSubSet.png

 

ArraySubSubSubSet Answers.png

 

 

 

Comments
crossrulz
Knight of NI

B


GCentral
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
SPK91
Member

B

vidya1825
Member

B

P Vidya sankar,

பரத்_குமார்(bharathkumar)
Member

 B

Thanks & Regards,
Bharath Kumar
GCentral
hemasagar
Member

Hlo frds,i am having a 2d array with 5 rows and 4 columns which is evenly distributed,1st column should be x-axis and remaining 3 columns with 3 different plots on same graph,can any one explain?

 

nik35324
Member

B

AUlikyan_ANEL
Member

B

A.Bernau
Member

B

Baltur
Member

B)

hemasagar
Member

dummy.PNG


@SercoSteveB

how could we get a multiple plot in a single graph where  1st column should be x-axis and remaining columns should be the 4 plots can any one explain

 

 

  

 

 


 

crossrulz
Knight of NI

hemasagar,

You might have better luck if you asked your question in the LabVIEW discussion forum instead of spamming people with PMs and making unrelated posts in this blog.


GCentral
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
hemasagar
Member

Sorry for that,it won't happen again

alexderjuengere
Active Participant

B

Ganesh_anbu
Member

Obviously B

 

Priya16
Member

B

Bcortes
NI Employee (retired)

As everybody posted the answer is b, and here is why:

Daily CLAD 14 Feb 2018.png

Baccas
Member

B

 

i feel it's good quiz

mini09
Active Participant

B

The_CLoWN
NI Employee (retired)

The places where you can make mistake:

1> It's a while loop. So, even after condition is true it will run for that iteration as well.

2>The whole array is passed b/w the shift registers.

The answer is B.

rak84
Member

B. If structure changed to For loop with conditional terminal the result is Ans C

crossrulz
Knight of NI

rak84,

Why would a FOR loop matter?  The action is done at the same time as the check, so it would come up with the same answer as long as N was more than 3.


GCentral
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
rak84
Member

Dear crossrulz,

During third iteration  array size is 2 so the condition is true and loop should stop execution and output should be {8,9}. As I learned for loop will check condition and then execute code. But  I tested the code in the third iteration output is {9}. Could you please explain why for loop is executing even though stop condition is true in the third iteration.

 

Subset.png

 

crossrulz
Knight of NI

"As I learned for loop will check condition and then execute code."

That only works on the iteration count.  The conditional terminal is checked at the end of the loop iteration.

 

After the first iteration, the array in the shift register is {6,7,8,9,10}.  After the second iteration, the array is {8,9}.  But the size comparison was done with the array before it was shrank, making the size 5, which is more than 3, so the stop condition is FALSE.  2 iterations is still less than our 3, so we move on to a third iteration.  Now the size comparison will state 2 (again, before the array was shrank), which is less than 3, so the stop condition will be TRUE (not that it matters since N is 3, which will make the loop stop here).  But the rest of the code in the loop must still complete, which takes the array down to {9}.  So the final value of the array that comes out of the shift register is {9}.


GCentral
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
Tamir87
Member

d

மணிகண்டபிரபு
Member

B

istan0227
Member

B