LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CLAD sample exam 1

Hello Denis,

 

your right!

 

The iteration terminal will return 0, because for the moment it returns that value the loop has been never executed before. This is what the iteration terminal tells you right at the beginning of your first and only loop iteration: "this loop has been executed 0 times before" (answer a).

 

hmm. I'm sorry. From my point of view, your example supports my opinion.

 

Now I don't want anybody to be upset about me being so insistent. 

Trust me, I really know how the iteration terminal works. It's not about it's functionality in general, it's more about that stupid question that probably leads to multiple possible answers. I always try to read and understand such exam question as precise as possible and with this one I got into that problem.

 

I hope that question will not appear in the real exam, because I will mark a as the correct answer. Even if I know they want to here c.

 

Thanks to all of you for your posts!

 

Regards,

Thomas 

 

 

0 Kudos
Message 11 of 55
(1,653 Views)

They make a difference between :

  1. number of times the loop has started --> whole code in last iteration not yet executed
  2. number of time the loop has finished

Back to his example : iteration has started but is not finished until the button is pressed --> answer a
0 Kudos
Message 12 of 55
(1,651 Views)
You will loose a point if you mark a ! However with a passing grade of 70% there is plenty of room for some incorrect answers.
0 Kudos
Message 13 of 55
(1,647 Views)

Dennis Knutson wrote:
I don't see how this can be argued. You said yourself that with the first iteration, the value is 0. How can that mean something other than n-1? Simply wire a 1 to the N terminal of a for loop. You will never, ever get a value of 1 from the iteration terminal.

And what happen if you wire 0 to N ?

 

However I still argue that it is the formulation of the question that is misleading. Maybe due to a lag of my English, but that couldn't be that hard because I choosed the english version of the CLAD and passed quite well 😉

 

The iteration terminal count the iterations that the loop has (completely) executed.  At the beginning of the iteration, when the terminal provide its value, this is correct. Later, after some dataflow,when the loop has finished you need to increment to get the correct total.  It count history and we (hopefully) all know how it behave, and most of us choose the expected answer.

 

It would be interesting to know the percentage of failed answers for this question, because I can hardly believe that the same percentage don't know that the first output of  iteration terminal is zero. 

 

*/ Am I allowed to argue with a knight??  😛  As long as he chooses the word and not the sword 😄 😄

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 14 of 55
(1,647 Views)

You might be interested in this message.

 

Extract : As for the certification exam itself, please feel free to submit issues with specific questions to certification@ni.com

Message 15 of 55
(1,642 Views)

ST5 wrote:

JB said: "Run attached example and convince yourself. c is definitely the correct answer."

 

It is not. In the meaning: not always.

A can be the correct answer too. See attachment.

 

I would descrebe the iterator: the number of times the loop has started, minus 1.

 

I took the CLAD exam once. Dit not pass only because of NI's unability to ask questions. NEVER AGAIN.

 

.

 

 

  

Your vi supports c as well or i am not getting it. 

0 Kudos
Message 16 of 55
(1,632 Views)

This concept WILL be on the exam.  All the really fundamental concepts will be C is correct.

 

Alan

CLAD

0 Kudos
Message 17 of 55
(1,624 Views)
...

 

 

 

 

 

 

 

Message Edited by ST5 on 03-26-2010 08:38 AM
0 Kudos
Message 18 of 55
(1,624 Views)
I'll grundgingly say C as well. This has always been a peeve of mine with LV and the iteration counter. I have a functional global that runs one time and iteration counts zero. WTH? How can something run once and run 0 times at the same time? Smiley Indifferent
PaulG.

LabVIEW versions 5.0 - 2023

“All programmers are optimists”
― Frederick P. Brooks Jr.
Message 19 of 55
(1,598 Views)

And now that you have all agreed with answer "c" think about what the answer is if we have Iteration Parallelism enabled where the order of each iteration is not guarenteed. If you put an indicator on the FP of a loop run parallel, then "i" terminal will flash the interations in random order.

 

If you have not passed the CLAd yet, forget everything I said. Smiley Surprised

 

Ben

 

PS Thanks Muks!

Message Edited by Ben on 03-26-2010 08:53 AM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 20 of 55
(1,597 Views)