LabVIEW CLAD认证模拟题详解

合集下载

LabVIEW助理开发员认证(CLAD)试题

LabVIEW助理开发员认证(CLAD)试题

LabVIEW助理开发员认证(CLAD)[单项选择题]1、LabVIEW按照哪种编程结构执行程序框图代码?()A.控制流,程序的执行顺序由编程元素的顺序确定B.从上至下,程序从程序框图的顶部开始执行,一直往下C.从左至右,程序从程序框图的左边开始执行,一直往右D.数据流模型,程序框图根据数据流向执行参考答案:D[单项选择题]2、程序功能注释应包含在()A.程序框图B.连线板bVIEW.hlp文件D.以上均不正确,图形化编程中无需添加注释参考答案:A[单项选择题]3、对一系列函数或计算进行编程时,以下哪种方式可获得最佳性能?()A.层叠式顺序结构B.平铺式顺序结构C.A和B可获得相同的性能参考答案:C[单项选择题]4、程序框图中添加的注释()A.用于添加VI中控件属性的说明信息B.用于添加程序框图中所有函数/子VI的说明信息C.用于添加代码功能的说明信息D.无需添加注释,LabVIEW可自动添加参考答案:C[单项选择题]5、以下哪种情况必须使数据连线通过结构?()A.使连线更简单B.节省空间C.在结构中使用该数据D.以上均正确参考答案:C[单项选择题]6、在While循环中添加定时函数可()A.释放内存B.保留内存C.释放CPUD.保留CPU参考答案:C[单项选择题]7、以下哪种方法不适用于创建一维数组?()A.在前面板上放置数组外框,并将控件拖曳至该外框B.使用While循环,禁用自动索引C.使用For循环,启用自动索引D.使用初始化数组函数参考答案:B[单项选择题]8、下列哪个函数按照元素的自有标签组合簇元素?()A.按名称解除捆绑B.解除捆绑C.按名称捆绑D.捆绑参考答案:C[单项选择题]9、选择连接输入时,程序框图上“创建数组”函数的输出是?()A.一维数组{1,-4,3,7,-2,6}B.一维数组{1,7,-4,-2,3,6}C.二维数组{{1,-4,3,0},{7,-2,6}}D.二维数组{{1,-4,3},{7,-2,6}}参考答案:A[单项选择题]10、关于下图的表述,正确的是()A.自动索引已禁用B.For循环仅输出生成的第10个值C.For循环的输出为包含10个元素的一维数组D.A和BE.A和C参考答案:C[单项选择题]11、加法运算的结果是()A.一维数组{20,4,7}B.一维数组{20,12,15}C.一维数组{12,4,15}D.一维数组{20}参考答案:B[单项选择题]12、以下关于数组常量的表述,不正确的是()A.程序框图中创建的数组常量,在前面板中不可见B.无法调整数组常量的大小以包含多个元素C.允许复制并拖曳前面板上的现有数组至程序框图,以创建相同类型的常量D.数组常量可执行所有的数组操作参考答案:B[单项选择题]13、以下哪个簇函数的输出接线端数量仅取决于输入簇的元素数量?()A.按名称解除捆绑B.解除捆绑C.按名称捆绑D.捆绑参考答案:B[单项选择题]14、执行下列代码后,输出数组中的结果是?()A.一维数组{6,3,5,7,9,1}B.一维数组{6,7,9,1}C.一维数组{4,6,3,5,7,9,1}D.一维数组{4,7,9,1}参考答案:B[单项选择题]15、簇函数:()A.允许将多种数据类型组合为逻辑结构B.在前面板中通过图表或图形表示数据C.用于在程序框图中区分数据类型D.在前面板中按数据类型区分数据对象参考答案:A[单项选择题]16、以下哪种方法不适用于创建二维数组:()A.在前面板中右键单击现有一维数组,在快捷菜单中选择添加维度B.使用两个嵌套的For循环并启用自动索引C.使用定位工具调整索引显示的大小D.在前面板上放置数组,并将另一个数组拖放至该数组参考答案:D[单项选择题]17、下列数组相减后,得到的结果是?()A.一维数组{-25,25,50}B.一维数组{-25,25}C.二维数组{{-25,-50,-50},{50,25,25}}D.一维数组{75,-50,25}参考答案:B[单项选择题]18、下列哪种图表更新方式用垂直线分割新旧数据进行比较(类似于心电图仪EKG)?()A.带状图表B.示波器图表C.扫描图表D.分步图表参考答案:C[单项选择题]19、哪种组合适用于下列表述?()可显示最新写入的值数组,()周期性更新历史数据。

CLADSampleExam

CLADSampleExam

LabVIEW助理开发工程师考试为了快速找到问题,可将答案记录在本页答题纸上。

撕下该页用于记录答案。

实际的CLAD考试中并无该页,仅供模拟题使用。

答案页在模拟题的最后。

1._____2._____3._____4._____5._____6._____7._____8._____9._____10._____11._____12._____13._____14._____15._____16._____17._____18._____19._____20._____21._____22._____23._____24._____25._____26._____27._____28._____29._____30._____31._____32._____33._____34._____35._____36._____37._____38._____39._____40._____1.如要考虑状态图应用程序的扩展性,基本结构的最佳选择是?a.顺序结构b.条件结构c.公式节点d.面向对象的结构2.单击_________按钮可跳过程序框图上的节点,而不单步执行该节点。

a.单步步入b.单步步过c.单步步出d.单步调试3.下列关于属性节点的描述,正确的选项有哪些?(选择所有正确的选项)a.属性节点使用户可通过程序方式操控前面板对象。

b.属性节点可用于更新前面板的值。

c.一个前面板对象可有多个属性节点。

d.子VI中包含的属性节点使前面板始终加载至内存。

4.必须从子VI中控制顶层VI的一个前面板控件。

必须传递什么到子VI?a.控件的属性b.控件的方法c.控件的引用d.控件的数据类型5.VI执行后,值输出显示控件显示的值是多少?a.0b. 4c. 5d. 66.在条件结构的假(FALSE)分支的代码中设置断点。

如执行条件结构的真(TRUE)分支,VI执行会暂停吗?a.会b.不会7.哪个属性节点改变子VI中数字数值控件的文本颜色属性?a.b.c.d.8.哪种图表更新模式适合从左到右连续显示数据?a.带状图b.示波器图c.扫描图d.步骤图9.下列哪项不符合数据流编程模型?a.移位寄存器b.隧道c.子VId.局部变量10.如有需要,可将顺序结构替换为下列哪项?a.事件结构b.For循环c.状态机d.While循环11.关于下列代码的陈述,正确的是?a.循环执行1次,循环显示控件显示值1b.循环执行1次,循环显示控件显示值0c.循环无限执行,程序必须中止d.循环不执行,循环显示控件显示值012.与下列代码等价的公式是?a.b.c.d.13.某VI启用了自动错误处理,并调用了一个未启用自动错误处理的子VI。

CLAD 2014 模拟卷 2

CLAD 2014 模拟卷 2

LabVIEW助理开发工程师考试模拟试题注:考试过程中不允许使用计算机或其他参考资料。

说明:∙请不要拆开装订试卷。

如National Instruments收到的试卷有部分缺失或散页,考试成绩视为不通过。

∙请按照答题纸上的说明答题。

如考生ID输入有误,考试成绩将视为无效。

∙将所有问题写在答题纸上。

写在试题册上的答案不予评分。

∙请不要向监考人请求有关问题答案的帮助。

∙不得部分或全部复印或复制试卷。

完成考试后,不得保存试卷的任何部分。

考试详细信息:∙时间:1小时∙试题类型:选择题∙试题数量:40∙通过分数:70%重要提示:完成考试后,将试卷放入信封内并密封。

将密封好的信封交给监考人。

答题纸:如需快速查看您的答题情况,可在此答题纸上记录您的答案。

答题结束后将此页撕下与参考答案进行对照。

此答题纸仅用于练习之目的,CLAD实际考试中不包含此页。

参考答案附在模拟题之后。

1._____2._____3._____4._____5._____6._____7._____8._____9._____10._____11._____12._____13._____14._____15._____16._____17._____18._____19._____20._____21._____22._____23._____24._____25._____26._____27._____28._____29._____30._____31._____32._____33._____34._____35._____36._____37._____38._____39._____40._____Q1: 下列哪个用户界面事件可使代码在LabVIEW执行该事件相关的默认操作前响应?A 鼠标按下B 前面板大小调整C 前面板关闭?D 值改变Q2: 将触发控件配置为转换的机械动作。

VI要求显示数量值,用于追踪触发发生“值改变”(值变为TRUE)事件的次数。

CLAD 考试样题

CLAD 考试样题

Certified LabVIEW Associate Developer Sample Exam 2Test BookletNote: The use of the computer or any reference materials is NOT allowed during the exam. Instructions:∙ Please do not detach the binding staple of any section. If any part of the exam paper is missing or detached when returned to National Instruments, you will be deemed to have failed theexam.∙ Please follow the instructions on the Answer Sheet. If you fill in your Candidate ID incorrectly, your test will be invalidated.∙ Indicate ALL answers on the Answer Sheet. Answers recorded in this test booklet will NOT be evaluated.∙ Please do not ask the proctor for help answering questions.∙ This examination may not be taken from the examination area or reproduced in any way. You may not keep any portion of this exam after you have completed it.Exam Details:∙ Time allocated: 1 hour∙ Type of exam items: Multiple choice∙ Number of exam items: 40 questions∙ Passing Grade: 70%IMPORTANT: When you have completed this exam, place it in the provided envelope with you answer sheet and SEAL the envelope. Give the sealed envelope to your proctor.Answer Sheet:To quickly check your answers against the solutions in the Solutions Section, record your answers on this Answers Sheet. Detach this page and record your answers as you go along. This page is not included in the actual CLAD exam; it is included here for practice purposes only. The Solutions Section is at the end of the Sample Exam.1. _____2. _____3. _____4. _____5. _____6. _____7. _____8. _____9. _____10. _____11. _____12. _____13. _____14. _____15. _____16. _____17. _____18. _____19. _____20. _____21. _____22. _____23. _____24. _____25. _____26. _____27. _____28. _____29. _____30. _____31. _____32. _____33. _____34. _____35. _____36. _____37. _____38. _____39. _____40. _____Q1: Which of the following user interface events will allow your code to respond before LabVIEW performs the default action associated with that event?A Mouse DownB Panel ResizeC Panel Close?D Value ChangeQ2: The Trigger control is configured with a switching mechanical action. The VI's requirement is to display a Count value that tracks the number of "value change" events, for changes to TRUE, that occur for the Trigger.Which of the code snippets meets that requirement when the VI is run?ABCDQ3: What is the value in the Result indicator after the VI completes execution?A 16B 24C 32D 10Q4: Which of the following terminals cannot control how many times a For loop executes?ABCDQ5: Which of the following statements is TRUE regarding the execution of the following code? The loop will iterate:A 51 timesB 50 timesC 49 timesD a random number of timesQ6: The VI is open and run twice without being closed or modified.What value is displayed in the Value Out indicator after the second execution of the VI?A 3B 4C 5D 6Q7: What value is displayed in the Numeric indicator after the VI executes?A 0B 4C 5D The While Loop iterates indefinitelyQ8: What value will be displayed in the Out indicator when this VI completes execution?A Case0B Case1C Case2D Case3Q9: Which code snippet is functionally equivalent to this sequence structure?ABCDQ10: The Wait function can be added to While Loops:A To free up available memoryB To allocate memory used by the CPUC To allow the processor time to complete other tasksD To reserve which processor the code is running onQ11: While the VI executes, the user presses and then releases Boolean Control with Switch Until Released mechanical action. The starting value of Boolean Control is FALSE,What value is displayed in the Result indicator after execution?A 0B 1C 2D 3Q12: What value is displayed in the X+Y indicator after the code completes execution? ABCDQ13: Why does an error occur when the code executes?A File path not wired to the input of the Open/Create/Replace File functionB File opened with the incorrect accessC File reference not closedD File data type is incorrectQ14: Which equation is equivalent to the code?ABCDQ15: What value will be displayed in the Numeric indicator when the VI completes execution?A 0B 1C 2D 4Q16: You are creating a SubVI by selecting a portion of code from an existing VI. The selection contains an implicitly linked property node and an implicitly linked invoke node for two different front panel controls.What new items are placed on the block diagram of the existing VI when the SubVI is created?A Local variables are added for property and invoke nodesB Global variables are added for the property and invoke nodesC Control references are added for the property and invoke nodesD Control Terminals are added for the property and invoke nodesQ17: What is the best choice for the case selector input for a Functional Global Variable design pattern? ABCDQ18: Which component is not required for a state machine?A Case StructureB While LoopC EnumD Shift RegisterQ19: What is the name of this common design pattern?A State MachineB Producer Consumer (data)C Producer Consumer (events)D Queued Message HandlerQ20: The VI begins execution with the value of Numeric as 1. At the end of the 3th loop iteration (i=2), the user changes the front panel control Numeric to value 4.What will be the final value of the front panel Numeric Indicator after the VI completes execution?A 2B 4C 5D 6Q21: What value is displayed in the Output indicator when the fifth iteration (i=4) of Loop 2 completes?A Element1B Element2C Element3D Element1Element2Element3Q22: What is the behavior when the code executes?A Loop 1 and Loop 2 run simultaneouslyB Both loops run one time and stopC Loop 2 runs after Loop 1 stopsD Loop 1 runs forever and Loop 2 never runsQ23: What does this function do?A Buffers multiple notifications to be read by a Wait on Notification functionB Sends a notification to be read by Wait on Notification functionsC Enqueues notifications in the Notifier QueueD Sends a pause execution notification to a Wait on Notification functionQ24: What is the purpose of these block diagram toolbar buttons?A To display the data flowing through wires as the VI runsB To step through the block diagram when execution is pausedC To start or skip SubVIsD To run the VI in continuous or single run mode.Q25: When using single step debugging with a SubVI which of the following is not possible?A Step Into () while the execution flow is paused on the SubVI iconB Step Out () while the execution flow is paused on a node inside the block diagram of theSubVI.C Finish VI () while the execution flow is paused on the block diagram of the SubVID Finish Block Diagram () while the execution flow is paused on a node inside the SubVIQ26: What value will be displayed in the Output indicator when the VI completes execution?A 5B 7C 12D IndeterminantQ27: Which Mechanical Action changes a Boolean when the button is pressed and returns it to its default value after LabVIEW reads the value?A Latch when pressedB Switch when releasedC Switch until releasedD Latch when releasedQ28: Which of the following statements is TRUE about Numeric Array?A It is an indicatorB It contains exactly 10 elementsC It contains exactly 12 elementsD It contains exactly 8 elementsQ29: Which of the following statements is true?A The output of the divide function will be a U64B The output of the divide function will be a U32C The output of the divide function will be a SGLD A VI containing this diagram will have a broken run arrowQ30: What are the datatype and value at the output terminal of the Round Toward +Infinity function after the VI completes execution?A I32 with value -4B I32 with value -3C DBL with value -4D DBL with value -3Q31: The "start index (0)" input terminal of Search 1D Array is unwired. What value is displayed in the index of element indicator after this code runs?A 0B 2C 3D 4Q32: Which block diagram produces the result in the Waveform Graph?ABC DQ33: What will be the value of the concatenated string indicator after the VI completes execution?ABCDQ34: The VI begins execution with the values of X = 127 and Y = 1.What value will be displayed in the X+Y indicator after the VI completes execution?A 0B 128C -128D -127Q35: What string is displayed in the Result indicator after the VI completes execution?A 123B 0123C 1.00 2.00 3.00D 0.001.002.003.00Q36: What VI or function is typically used to display an error dialogue?A Merge Errors functionB One Button Dialog functionC Generate Front Panel Activity functionD Simple Error Handler.viQ37: A VI takes an input error cluster. If the cluster contains an error or a warning with code = 1 or code = 2, the VI should clear the error or warning.Which diagram implements this functionality?ABCDQ38: The following VI has two parallel While Loops, and runs for 11 ms.What color is the Stop Boolean when the VI completes execution?A BlueB GreenC Both colors will be presentD IndeterminateQ39: Which do you use to initialize all front panel objects to their default values?A Application ReferenceB Invoke NodeC User interface eventD User eventQ40: What results from dragging a Numeric Control into a Control Refnum on the front panel?A An error is returned if the control is not initializedB The Control takes on only generic propertiesC The Control Refnum changes into that controlD The Control Refnum becomes strictly typedSolutions Page:Below are the answers and explanations for the CLAD Sample Exam. To quickly check your answers, record them on the Answer Sheet, detach the Answer Sheet, and compare it, side-by side, with the Solutions Page. This Solutions Page is not included in the actual CLAD exam; it is included here for practice purposes only.1. Correct Answer: CTopic: Event StructuresJustification: LabVIEW help Filter events allow you to validate or change the event data before LabVIEW performs the default action associated with that event.2. Correct Answer: CTopic: Event StructuresJustification: The initialized register increments by one for each Trigger "value change" event when the Trigger new value is True and displays the new Count value after the event occurs. A counts every value change, not just true. B polls resulting in constant increments when the switch changes value to TRUE. D would count every value change if it had a shift register.3. Correct Answer: ATopic: LoopsJustification: The For Loop executes 4 times. Starting with the value of 1, the result of the previous iteration is multiplied by 2. Thus, the value in the indicator after 4 iterations is equivalent to 2x2x2x2, or 16.4. Correct Answer: ATopic: LoopsJustification: The iteration terminal is only a count of the iteration number and can not control how many loops occur.5. Correct Answer: ATopic: LoopsJustification: The iteration terminal in While Loops and For Loops always starts counting at zero. It returns 0 on the first iteration, 1 on the second iteration, etc. Since the While Loop is configured to stop when the output of the iteration terminal is greater than or equal to 50, we know that the iteration terminal must output a value of at least 50. The first time this happens is after 51 iterations.6. Correct Answer: DTopic: LoopsJustification: Uninitialized shift register retains value.7. Correct Answer: CTopic: LoopsJustification: Loop runs 1 time, use data flow to calculate the values.8. Correct Answer: BTopic: Case StructuresJustification: Dataflow and correct steps, track shift register and index to get answer.9. Correct Answer: ATopic: Sequence StructuresJustification: Dataflow and correct steps.Topic: General Programming FunctionsJustification: The Wait (ms) function does nothing to release or allocate memory or specify processor core. All it does is cause the execution of a VI to pause for a short time to allow the processor time to complete other tasks.11. Correct Answer: CTopic: General Programming FunctionsJustification: Since the mechanical action is set to Switch Until Released, two events are generated when a user clicks and releases. The first event is the FALSE to TRUE transition, and the second is the TRUE to FALSE transition. In addition, the conditional for the loop is set to Continue if True, so the VI will complete execution after the Boolean is released and turns back to False.12. Correct Answer: CTopic: General Programming FunctionsJustification: Polymorphic response, the addition only occurs if there are elements in each location, based on the index number. The extra elements in on array are ignored.13. Correct Answer: BTopic: General Programming FunctionsJustification: "access" input terminal on the Open/Create/Replace File function is set to "read-only", so file cannot be written to.14. Correct Answer: CTopic: General Programming FunctionsJustification: Data Flow15. Correct Answer: CTopic: General Programming FunctionsJustification: Use the index number of the outer loop to set the number of iterations of the inner loop, including zero. For a zero number of iterations the inner shift register passes its value.16. Correct Answer: CTopic: SubVI CreationJustification: By definition, control references are placed on the block diagram of the "calling" or existing VI.17. Correct Answer: ATopic: Design PatternsJustification: A is an Enum and a Type Def, which are the requirements for the case selector inputs of a FGV.18. Correct Answer: CTopic: Design PatternsJustification: An enum is not required to be the case selector of a state machine (but it is best practice).19. Correct Answer: BTopic: Design PatternsJustification: This producer loop does not have an Events Structure, this producer consumer design pattern would be used for data handling.20. Correct Answer: CTopic: Data communication and synchronizationJustification: The front panel control is read by the property node, so changes to the control take effect in the For Loop. The value to be displayed in the Numeric Indicator only depends on the final iteration, when the value of the numeric is read and incremented.Topic: Data Communication and SynchronizationJustification: Due to FIFO, and since i=4 is the fifth iteration of the loop, the fifth element in the queue will be read. The queue is filled in order with element 1 and then element 2, then 3, repeatedly.22. Correct Answer: DTopic: Data communication and synchronizationJustification: The first loop never stops because False is wired to the conditional terminal. Since the first loop never stops, the second loop can't start as it does not have all its inputs.23. Correct Answer: BTopic: Data communication and synchronizationJustification: The Send Notification function sends a message to all functions waiting on a notifier. The notifiers are not buffered.24. Correct Answer: BTopic: Debugging toolsJustification: The single step debugging tools are used when execution is paused.25. Correct Answer: BTopic: Debugging practicesJustification: Step Out is not a single step command. Finish VI or Finish Block Diagram are both available in the SubVI depending on where the VI execution is paused.26. Correct Answer: DTopic: Debugging toolsJustification: Since the order of execution of the write to Output actions cannot be verified, it is not clear what value will result in Output.27. Correct Answer: ATopic: LabVIEW EnvironmentJustification: Definition of Latched in LabVIEW. Can not be Latch when released, the question only describes the action of the button being pressed, not released.28. Correct Answer: BTopic: LabVIEW EnvironmentJustification: Since the display index value for columns is '2', that means there are two columns not show (4 elements), along with the 6 visible elements, this array has exactly 10 elements.29. Correct Answer: CTopic: Data TypesJustification: Data is coerced to the widest data type input to minimize loss of information.30. Correct Answer: DTopic: Data TypesJustification: Rounds towards positive value without changing the datatype.31. Correct Answer: DTopic: Data TypesJustification: String comparisons and searches in LabVIEW are case-sensitive and exact.32. Correct Answer: CTopic: Data TypesJustification: Graph 4 points , starting with index 1 (Drop the 0 index element). Values of points in order are: 3,6,9,12,15.33. Correct Answer: ATopic: Data TypesJustification: When constant is set to "\" codes display, "\s" is a space character, otherwise in normal display "\s" is literally \s.34. Correct Answer: CTopic: Data TypesJustification: The maximum positive number that a I8 can represent is 127. When the sum of two I8 number is greater than 127, the answer wraps around to -128 .35. Correct Answer: DTopic: Data typesJustification: Because we are starting with an empty string, the output of the "Concatenate Strings" function is purely the concatenation of the iterations, displayed with two digit precision with no spaces and converted into text. The loop runs 4 times (until i=3), so first time is 0.00, second time 1.00, etc.36. Correct Answer: DTopic: Error HandlingJustification: The Merge Errors VI does not display any dialog. The One Button Dialog function has no error input, and would therefore require additional coding. The Generate Front Panel Activity function does not generate a dialog. Therefore the Simple Error Handler is the best choice because it accepts an error cluster as an input and displays a dialog to the user in the event of an error.37. Correct Answer: cTopic: Error HandlingJustification: A has the logic in the wrong case. B will only clear errors, will not clear warnings. D will clear any error or warning with a code value of 2 or less (which includes negative codes). C is the only one that fulfills all the stated requirements.38. Correct Answer: DTopic: VI serverJustification: Race conditions exist because there is no coordination between the loops.39. Correct Answer: BTopic: VI serverJustification: An Application Reference allows the program to identify an application for an action, but by itself does not change anything. Both the "user interface events" and "User events" require input from the user and additional code. An invoke node has a native "renitialize all to default values" action, thus may be used to fulfill the requirements.40. Correct Answer: DTopic: VI ServerJustification: Drag a control into the front panel control refnum control to remove the original control and create a strictly typed control refnum. Strictly typed control refnums accept only control refnums of exactly the same data type.。

clad模拟卷2-副本(1)

clad模拟卷2-副本(1)

CLAD 模拟题LabVIEW助理开发工程师考试试题注:考试过程中不允许使用计算机或其他参考资料。

说明:如您收到试卷时,试卷不是在盖有"NI Certification"的密封袋中,请不要开始答题。

请将试卷立即退还给监考人。

您将会收到一份替换试卷。

请不要拆开装订试卷。

如National Instruments收到的试卷有部分缺失或散页,考试成绩视为不通过。

请不要向监考人请求帮助。

如您认为试卷的问题不够清楚,可在问题旁添加注释,然后选择您认为最适合的答案。

不得部分或全部复印或复制试卷。

完成考试后,不得保存试卷的任何部分。

考试详细信息:时间:1小时试题类型:选择题试题数量:40通过分数:70%重要提示:完成考试后,将试卷放入信封内并密封。

将密封好的信封交给监考人。

CLAD 模拟题 答题纸:为了快速找到问题,可将答案记录在本页答题纸上。

撕下该页用于记录答案。

实际的 CLAD 考试中并无 该页,仅供模拟题使用。

答案页在模拟题的最后。

1. _____2._____3._____ 4. _____ 5. _____6. _____7. _____8. _____9. _____10. _____11. _____12. _____13. _____14. _____15. _____16. _____17. _____18. _____19. _____20. _____21. _____22. _____23. _____24. _____25. _____26. _____27. _____28.模拟题:1. 下列关于代码执行的陈述,正确的是a. 循环执行 51 次。

b. 循环执行 50 次。

c. 循环执行 49 次。

d. 连接 50 至 For 循环的总数接线端,与本题代码的执行一致。

2. 下列哪项将生成一个 LabVIEW 事件结构可捕捉到的事件a. 通过鼠标单击改变前面板控件的值b. 通过属性节点更新前面板控件c. 通过控件引用以编程方式更新前面板控件d. 通过 VI 服务器更新前面板控件3. 下列代码执行后,结果显示多少a. 子 VI 执行消耗的毫秒数b. 零c. 自 1970 年 1 月 1 日以来经历的秒数d. 顺序结构执行消耗的毫秒数4. 要在运行时修改前面板控件的一个属性。

CLAD模拟试题.doc

CLAD模拟试题.doc

LabVIEW 基礎專業認證(CLAD)模擬測驗試題注意:測驗過程中,禁止使用電腦或任何參考資料。

說明:•請勿擅自撕開任何彌封。

若交還NI 的測驗試題不完整或彌封破損,則將立即失去測驗資格。

•請遵守試卷上的要求。

如果您填錯了准考證號碼,本次測驗將視作無效。

•請在答案卡上填寫所有的答案。

填寫在試卷上的答案將不納入計分標準。

•請勿要求監考人員給予任何協助。

若認為題目不甚清楚,則可標記該問題,並寫下您自己認為較合適的答案與理由,以供NI 閱卷時參考之用。

•您不可攜出此份模擬試題,亦不可用任何方式重現此份試題。

在完成測驗之後,亦不可保留任何試題。

測驗資訊:•測驗時間:1 小時•測驗方式:多重選擇題•測驗題數:40 題•及格分數:70%重要:當應試者完成測驗時,請將試卷放在所提供的信封內並密封之。

將密封的信封交給NI 監考人員。

Q1:關於LabVIEW 程式執行程序,下列何者正確?(請選出所有正確的敘述)A.程式執行順序由控制元件的流程(Control Flow) 所決定B.程式各元件須等到所有資料輸入節點後,才會執行並將資料輸出至端點C.程式執行順序由程式框圖的左邊依序執行到右邊D.通過程式各元件節點的資料流將決定程式執行順序Q2:下列For Loop 將循環幾次?A.3B.4C.5D.6Q3:使用者產生了共100 個資料點,且不平均放置於一段時間之內。

若維持此不平均的擷取點,則下列何項指示元最適於顯示資料?A.Waveform ChartB.Waveform GraphC.XY GraphD.Intensity GraphQ4:下列何項函式可以將浮點數的數值轉換為帶有小數點的字串?A.B.C.D.Q5:若下列程式一開始執行時Random 不更新,當使用者按下Start 按鍵,Random 才開始每1 秒更新一筆亂數,則Initial Time 跟Start Time 應設定成何值,程式執行才會有上述功能?A.Initial Timeout = 1000, Start Timeout = -1B.Initial Timeout = -1, Start Timeout = 1000C.Initial Timeout = 1000, Start Timeout = 0D.Initial Timeout = 0, Start Timeout = 1000Q6:針對下列Producer/Consumer 程式架構,何者敘述正確?A.Consumer Loop的迴圈更新時間為Producer Loop的兩倍B.兩個迴圈之間以Wait Time 函數的數值來同步化C.兩個迴圈之間以Dequeue Element 的Timeout 的數值來同步化D.兩個迴圈之間以LabVIEW 內部時序來進行同步化Q7:將Numeric 設為10 並執行下列程式碼,則程式結束後Numeric 和Result 分別顯示何值?A.Numeric = 2 , Result = 2B.Numeric = 2 , Result = 1C.Numeric = 12 , Result = 12D.Numeric = 12 , Result = 11Q8:執行程式5 秒後按下Latch When Release 按鍵,等待3 秒放開Latch When Release 按鍵,接著經過2 秒後按下Switch When Pressed 按鍵,等待 5 秒放開Switch When Pressed 按鍵,請問Boolean 顯示器於執行程式後7 秒和12 秒時分別顯示何值?A.False, FalseB.False, TrueC.True, FalseD.True, TrueQ9:下列何者變數的使用可避免因程式事件時序的不確定而導致的競賽狀態(Race Condition)?A.區域變數(Local Variable)B.全域變數(Global Variable)C.共用變數(Shared Variable)D.功能型全域變數(Functional Global Variable)Q10:何項方程式等於下列程式碼?A.x=√a×((a+b)2−(c−1))B.x=√a×((c−1)−(a+b)2)C.x=√a×((a+b2)−(c−1))D.x=√a2×((a+b)2−(c−1))Q11:假設啟動了自動錯誤處理(Automatic error handling) 功能,則LabVIEW 是否會於執行下列程式碼結束時顯示錯誤?A.否,此VI 將不會停止B.否,因為Simple Error Handler.vi 將會繼續記錄後續錯誤C.是,因為Merge Errors 函式將只會顯示首次錯誤D.是,但因為Merge Error 函式會收集全部錯誤,所以LabVIEW 將顯示錯誤對話框達2 次Q12:執行下列VI 之後,Data指示元將顯示何值?A.(Data x 5) + 2B.(Data + 2) x 5C.Data + 2D.無法確認Q13:「Wait (ms)」與「Wait Until Next ms Multiple」函式行為的差異是?A.首次呼叫「Wait Until Next ms Multiple」的時間延遲,可能短於接至函式輸入端點的特定ms 秒數B.除非完成該程式碼區段的其他所有函式,「Wait (ms)」函式才會開始計時作業C.若某架構已包含「Wait Until Next ms Multiple Function」函式,則可於獨立執行緒中執行D.「Wait (ms)」函式可讓迴圈不致佔用100% 的CPU 資源;「Wait Until Next ms Multiple」則無此項功能Q14:執行下列程式碼而發生錯誤的原因為何?A.檔案路徑並未接至Open/Create/Replace File 函式的輸入B.未將函式間的錯誤叢集接線C.以錯誤存取而開啟檔案File opened with the incorrect accessD.以上皆是Q15:Q15:將Boolean 控制元設定為Latching When Released。

CLAD Sample Exam-1

CLAD Sample Exam-1

LabVIEW助理开发工程师考试为了快速找到问题,可将答案记录在本页答题纸上。

撕下该页用于记录答案。

实际的CLAD考试中并无该页,仅供模拟题使用。

答案页在模拟题的最后。

1._____2._____3._____4._____5._____6._____7._____8._____9._____10._____11._____12._____13._____14._____15._____16._____17._____18._____19._____20._____21._____22._____23._____24._____25._____26._____27._____28._____29._____30._____31._____32._____33._____34._____35._____36._____37._____38._____39._____40._____1.如要考虑状态图应用程序的扩展性,基本结构的最佳选择是?a.顺序结构b.条件结构c.公式节点d.面向对象的结构2.单击_________按钮可跳过程序框图上的节点,而不单步执行该节点。

a.单步步入b.单步步过c.单步步出d.单步调试3.下列关于属性节点的描述,正确的选项有哪些?(选择所有正确的选项)a.属性节点使用户可通过程序方式操控前面板对象。

b.属性节点可用于更新前面板的值。

c.一个前面板对象可有多个属性节点。

d.子VI中包含的属性节点使前面板始终加载至内存。

4.必须从子VI中控制顶层VI的一个前面板控件。

必须传递什么到子VI?a.控件的属性b.控件的方法c.控件的引用d.控件的数据类型5.VI执行后,值输出显示控件显示的值是多少?a.0b. 4c. 5d. 66.在条件结构的假(FALSE)分支的代码中设置断点。

如执行条件结构的真(TRUE)分支,VI执行会暂停吗?a.会b.不会7.哪个属性节点改变子VI中数字数值控件的文本颜色属性?a.b.c.d.8.哪种图表更新模式适合从左到右连续显示数据?a.带状图b.示波器图c.扫描图d.步骤图9.下列哪项不符合数据流编程模型?a.移位寄存器b.隧道c.子VId.局部变量10.如有需要,可将顺序结构替换为下列哪项?a.事件结构b.For循环c.状态机d.While循环11.关于下列代码的陈述,正确的是?a.循环执行1次,循环显示控件显示值1b.循环执行1次,循环显示控件显示值0c.循环无限执行,程序必须中止d.循环不执行,循环显示控件显示值012.与下列代码等价的公式是?a.b.c.d.13.某VI启用了自动错误处理,并调用了一个未启用自动错误处理的子VI。

clad_exam_topics

clad_exam_topics

LabVIEW助理开发员认证(CLAD)认证与考试概述认证概述NI LabVIEW认证项目包含以下三个认证等级:●LabVIEW助理开发员认证(CLAD)●LabVIEW开发员认证(CLD)●LabVIEW架构师认证(CLA)每个等级是进行下一等级认证的先决条件。

CLAD对LabVIEW完整开发系统中可用的核心特性和功能具备广泛而全面的理解,并且能够应用这些知识开发、调试、维护小型LabVIEW模块。

CLAD一般相当于具备使用LabVIEW 完整开发系统6至9个月的使用经验。

CLD具备开发、调试、部署与调试中大型LabVIEW应用程序的经验。

CLD具有连续使用LabVIEW开发中大型应用程序长达12至18个月的专业经验。

CLA具备使用LabVIEW进行多开发员环境应用开发的能力。

CLA不仅具备将项目规范分解为可管理的LabVIEW组件的技术知识和软件开发经验,还能够通过有效利用项目和配置管理工具管理项目的进行。

CLA是具备使用LabVIEW开发中大型应用程序长达24个月的专家。

说明:CLAD认证是参加CLD考试的先决条件。

CLD认证是参加CLA考试的先决条件。

对于这些考试的要求没有例外。

认证与考试概述考试概述产品:LabVIEW完整开发系统Windows版8.0。

参阅/labview/how_to_buy.htm了解在LabVIEW完整开发系统中可用特性的细节。

考试时间:1小时问题数量:40道问题形式:多项选择通过成绩:70%考试考核应用程序知识,而不是记忆菜单步骤或是VI与组件名称的能力。

禁止在考试中使用LabVIEW或其他外部资源。

如果需要帮助或是在适当的时候,将在考试中提供LabVIEW帮助的截屏。

为了维持考试的公正性,禁止复印或复制考试的任何部分。

如果未能遵守将无法通过考试。

在基于纸张进行考试的考试地区,取下装订用的定书钉的考卷不经过审核,直接定为不合格。

考试后勤美国与欧洲:CLAD考试可以在Pearson Vue测试中心进行。

CLAD模拟试题

CLAD模拟试题

"NATIONAL ^INSTRUMENTSLabVIEW基礎專業認證(CLAD)模擬測驗試題注意:測驗過程中・禁止使用電腦或任何參考資料。

說明:•請勿擅自撕開任何彌封•若交還NI的測驗試題不完整或彌封破損・則將立即失去測驗資格。

•請遵守試卷上的要求。

如果您填錯了准考證號碼,本次測驗將視作無效。

•請在答棊卡上填寫所有的答案。

填寫在試卷上的答棊將不納入計分標準。

•話勿要求監考人員給予任何協助。

若認為題目不甚淸楚,則可標記該問題,並寫下您自己認為較合適的答乗與理由,以供NI閱卷時參考之用-•您不可攜出此份模擬試題,亦不可用任何方式重現此份試題。

在完成測驗之後,亦不可保留任何試題-測驗資訊:•測驗時間:1小時•測驗方式:多重選擇題•測驗題數:40題•及格分數:70%重要:當應試者完成測驗時•請将試卷放在所提供的信封內並密封之。

將密封的信封交給NI監Q1:關於LabVIEW程式執行程序,下列何者正確?(請選出所有正確的敘述)A. 程式執行順序由控制元件的流程(Control Flow)所決定B. 程式各元件須等到所有資料輸人節點後•才會執行並將資料愉出至端點C 程式執行順序由程式框圖的左邊依序執行到右邊D.通過程式各元件節點的資料流將決定程式執行順序Q2:下列For Loop將循環幾次?A.B.D.Q3:使用者產生了共100個資料點,且不平均放置於一段時間之內。

若維持此不平均的撷取點,則下列何項指示元最適於顯示資料?A. Waveform ChartB. Waveform GraphC XY GraphD. Intensity GraphQ4:下列何:貞函式可以將浮點數的數值轉換為帶有小數點的字串?Number To Decimal StringA.B. C Number To Hexadecimal String Number To Octal StringD. Format Into String R3Q5:若下列程式一開始執行時Random不更新 > 當使用者按下Start按鍵> Random才開始每1秒更新一筆亂數,則Initial Time跟Start Time應設定成何值,程式執行才會有上述功能?A. Initial Timeout = 1000, Start Timeout = -1B. Initial Timeout = A, Start Timeout = 1000C Initial Timeout = 1000, Start Timeout = 0D. Initial Timeout = 0, Start Timeout = 1000Q6:針對下列Producer/Consumer程式架構 > 何者敘述正確?A. Consumer Loop的迥圈更新時間爲Producer Loop的兩倍B・兩個迥圏之間以Wait Time函數的數值來同步化C 兩個迴圈之間以Dequeue Element的Timeout的數值來同步化D.兩個迥圈之間以LabVIEW內部時序來進行同步化Q7:將Numeric設為10並執行下列程式碼 ' 則程式結束後Numeric和Result分別顯示何值?Numeric Result新0 0NumericA. Numeric = 2 ■ Result = 2B. Numeric = 2 , Result = 1C Numeric = 12 ■ Result = 12D・ Numeric = 12 . Result = 11Q8:執行程式5秒後按下Latch When Release按鍵 > 等待3秒放開Latch When Release按鍵,接著經過2秒後按下Switch When Pressed按键♦等待5秒放開Switch When Pressed按鍵•請問Boolean頸示器於執行程式後7秒和12秒時分別顯示何值?___ latch When ReleasedHoSwitch When PressedLatch When Released....A. False, FalseB. "Ig TrupC True, FalseD・ True, TrueSwitch When Pressed Or Boolean ::-…-[LT£J]stopNumeric NumericBooleanSTOPQ9:下列何者變數的使用可避免因程式事件時序的不確定而導致的競賽狀態(Raw Condition) ?A. 區域變數(Local Variable)B. 全域變數(Global Variable)C 共用變數(Shared Variable)D. 功能型全域變數(Functional Global Variable)QIO:何項方程式等於下列程式as?^-T -------------- O O 鎖暨》 AQU:假設敢動了口動錯誤處理(Automatic error handling)功能,則LabVIEW是否會於執行下列程式碼結束時顯示鉛誤?A. 否,此VI將不會停止B. 否*因為Simple Error Handler.vi將會繼續記錄後續錯誤C 是,因為Merge Errors函式將只會顯示首次錯誤D. 是,但因為Merge Error函式會收集全部錯誤,所以LabVIEW將顯示錯誤對話框達2次Q12:執行下列VI 之後> Mta 指示元將顯示何值?A.(Data x 5) + 2 B. (Data + 2) x 5C Data + 2D.無法確認Q13: Wait (ms)」與「Wait Until Next ms Multiple 」函式行為的差異是?A.首次呼叫「Wait Until Next ms Multiple 」的時間延遲,可能短於接至函式愉入端點的特定ms 秒數 B. 除非完成該程式碼區段的其他所有函式,「Wait (ms)」函式才會開始計時作業C 若某架構C 包含 Wait Until Next ms Multiple Function j 函式,則可於獨立執行绪中執行D. Wait (ms)」函式可讓迴圈不致佔用100%的CPU 資源;r Wait Until Next ms Multiple 」則無此項功能 Q14:執行下列程式碼而發生錯誤的原冈為何?A.檔案路徑並未接至Open/Geate/Replace File 函式的愉入 B.未將函式間的錯誤叢集接線 C 以錯誤存取而開啟檔案 File opened with the incorrect accessD.以上皆是 access (0:read/write)Open/Create/Replace File Read from Text File Close Filewrite-only ^|— textQ15: Q15:將Boolean控制元設定為Latching When Released。

CLAD摸底测试答案

CLAD摸底测试答案

CLAD摸底测试题21.哪种图表刷新模式用于从左到右绘制新数据,然后清除图表,再从左到右更新数据?()a.带状图b.示波器图c.扫描图2.以下数据类型中不可以作为条件结构选择器输入端的是()a. 枚举型b. 双精度c. 字符串d. 整型3.如需编写一个程序用来存储便携式网络图形(PNG)图像文件,应使用哪种文件VI?( )a.存储文件VIb.二进制文件VIc.ASCII文件VId.数据记录文件VI4.以下哪一个变量必须在一个项目中使用()a.局部变量b.全局变量c.功能全局变量d.单进程共享变量5.以下描述不正确的是()a.VI和Express VI可用图标或可扩展节点的形式显示;b.可扩展节点通常显示为彩色背景的图标,例如Express VI为蓝色;c.使用图标可节省程序框图空间,可扩展节点更易于连线,并且有助于用户添加程序框图说明信息;d.默认情况下,Express VI和子VI在程序框图上显示为可扩展节点;( 子VI默认不是可扩展节点)6.执行下列代码后,“索引数组”输出的数据类型是?()a. 双精度数组b. 双精度c. 整型(I32)数组d. 整型(I32)7.请选择适合随机存取的文件形式()a.ASCIIb.TDMSc.LVMd.二进制8.下列关于错误簇描述错误的是()a.状态是一个布尔值,错误产生时报告False(错误是TRUE,显示×)b.代码是一个32位有符号整数,通过数值表示错误(负数警告,0没有错误,正数错误)c.一个非零错误代码和False状态相结合表示警告但不是错误(警告是FALSE,显示√)d.源是用于识别错误发生位置的字符串9.如何禁用自动错误处理()a.选择操作》禁用错误处理b.启用执行过程高亮显示c.勾选“错误列表”对话框的“显示警告”复选框d.将子VI的错误输出簇与另一个子VI的错误输入簇连线自动错误处理每个错误都有一个数字编号和相应的错误信息。

默认情况下,VI运行时如发生错误,LabVIEW会自动中断执行、高亮显示产生错误的子VI或函数,并弹出错误对话框。

CLAD 考试题1

CLAD 考试题1

Certified LabVIEW Associate Developer Sample Exam 1Test BookletNote: The use of the computer or any reference materials is NOT allowed during the exam. Instructions:∙ Please do not detach the binding staple of any section. If any part of the exam paper is missing or detached when returned to National Instruments, you will be deemed to have failed theexam.∙ Please follow the instructions on the Answer Sheet. If you fill in your Candidate ID incorrectly, your test will be invalidated.∙ Indicate ALL answers on the Answer Sheet. Answers recorded in this test booklet will NOT be evaluated.∙ Please do not ask the proctor for help answering questions.∙ This examination may not be taken from the examination area or reproduced in any way. You may not keep any portion of this exam after you have completed it.Exam Details:∙ Time allocated: 1 hour∙ Type of exam items: Multiple choice∙ Number of exam items: 40 questions∙ Passing Grade: 70%IMPORTANT: When you have completed this exam, place it in the provided envelope with you answer sheet and SEAL the envelope. Give the sealed envelope to your proctor.Answer Sheet:To quickly check your answers against the solutions in the Solutions Section, record your answers on this Answers Sheet. Detach this page and record your answers as you go along. This page is not included in the actual CLAD exam; it is included here for practice purposes only. The Solutions Section is at the end of the Sample Exam.1. _____2. _____3. _____4. _____5. _____6. _____7. _____8. _____9. _____10. _____11. _____12. _____13. _____14. _____15. _____16. _____17. _____18. _____19. _____20. _____21. _____22. _____23. _____24. _____25. _____26. _____27. _____28. _____29. _____30. _____31. _____32. _____33. _____34. _____35. _____36. _____37. _____38. _____39. _____40. _____Q1: You must include the option to cancel when a user attempts to interactively close the front panel by selecting File>>Close.Which Event case allows this functionality?ABCDQ2: You must generate code that responds to multiple value change events using a Boolean control while maintaining a latching mechanical action.Which programming step is NOT required?A Including or reading the Boolean control terminal in a loopB Including the Event Structure within a loopC Configuring a Timeout case within the Event StructureD Configuring a Value Change event case for the Boolean controlQ3: What value is displayed in the Value Out indicator after the VI completes execution?A 0B 4C 5D 6Q4: How many errors does LabVIEW display at the end of execution?A No ErrorsB One ErrorC Two ErrorsD Three ErrorsQ5: You have been asked to write a VI called CLAD505 that will generate a path to test.txt. This txt file is in a folder called CLAD505_Support, and the folder is next to your VI. The VI must run on multiple platforms (Windows, Linux, etc.).Which diagram best illustrates how you should write the VI?ABCDQ6: Which of the following statements is TRUE about the following code segment?A The loop will execute once and the indicator Iteration will have a value of oneB The loop will execute once and the indicator Iteration will have a value of zeroC The loop will execute continuously and the program will have to be abortedD The loop will not execute and the indicator Iteration will have a value of zeroQ7: Why is a shift register used for the file refnum input on the For Loop?A If the Values to Write to File array is empty, the For Loop will run zero times, but the refnumvalue will be passed through to the shift register outputB The Write to Text File function modifies the value of the refnum on each For Loop iterationC It is the only way to prevent the For Loop from building an array at the refnum output terminalD No reason. A regular tunnel would provide identical functionality to the shift registerQ8: The following SubVI is loaded into memory and then run. At some later time it is still in memory and is run a second time.What is the value is displayed in the Sum indicator when the SubVI completes execution the second time it is run?A 5B 10C There is no way to knowD 0Q9: Which of the following is FALSE about File I/O using binary or TDMS file formats?A Binary files can accept any LabVIEW data typeB TDMS can accept any LabVIEW data typeC TDMS is generally faster in writing than binaryD Binary file I/O can be used by all versions of LabVIEWQ10: How does a producer consumer design pattern process excessive amounts of data?A Using a single element queue the Producer Consumer processes only current data.B Using a queue for storage the Consumer loop processes all data when it has time.C The Producer loop will slow its cycle time to allow the consumer loop to catch up.D The consumer loop will increase its processing time to match the producer loop.Q11: Unlike graphs, which display an entire waveform that ________ the data already displayed, charts update periodically and __________ the data previously displayed.A Maintains a history of; overwriteB Overwrites; maintain a history ofC Appends to; overwriteD None of the aboveQ12: What value is displayed in the Result indicator after the VI completes execution?A 3B 2C 1D 0Q13: After the VI starts running, the user clicks the "Event1" button twice. The event structure has no other event cases.What will be displayed in the "Time 1" indicator when the VI stops executing?A 0B 1C 2D UndeterminedQ14: You have written a LabVIEW VI with three parallel code paths. All three error cluster wires are wired into a Merge Errors function.What error is reported to the user?A Error 1014, because Merge Errors outputs the first error to occur chronologicallyB Error 7, because Merge Errors outputs the first error wired in to it from the top downC Error 1, because Merge Errors outputs the most significant error of the errors wired in to itD All three errors are reported, because Merge Errors concatenates the errors into a single errormessage to display to the userQ15: Which timing function can result in logic errors when it rolls over to zero?ABCDQ16: You select "Create SubVI" from LabVIEW's Edit menu with the code below selected. What will the resulting block diagram look like?ABCDQ17: What value will be displayed in the subarray indicator after the following code has executed?ABCDQ18: Which of the following statements is NOT valid?A You can make a Cluster of ClustersB You can make an Array of ArraysC You can make a Cluster of ArraysD You can make an Array of ClustersQ19: Which of the following cannot be used to transfer data between two parallel loops?A WiresB QueuesC NotifiersD Local variablesQ20: The time out input terminal of the Dequeue Element function is wired with the value 1.While the VI is running, how long does this Dequeue Element function wait to receive data?A 1 millisecondB 1 secondC IndefinitelyD It does not wait. It returns immediatelyQ21: What does this function do?A Transfers the queue reference to other callersB Sorts all queue elements in order and returns them as an arrayC Clears all elements from the queueD Removes one reference to the queue and returns any remaining elementsQ22: When a VI is paused, clicking on the _________ button allows you to bypass a node in the Block Diagram without single-stepping through the node.A Step IntoB Step OverC Step OutD Step ThroughQ23: Which is a native debugging feature in LabVIEW?A Step BackB Step OverC Step AroundD Step AboveQ24: Which data type is not accepted by the case selector terminal on a case structure?A ArraysB Enumerated type valuesC StringsD IntegersQ25: Which statement about sequence structures is FALSE?A Sequence structures support parallel operations within frames.B Terminating the execution of a sequence structure before the entire sequence is completed isnot possible without aborting.C Sequence structures execute frames in a sequential order.D Sequence structures stop when an error is detected.Q26: Which equation is equivalent to the code?ABCDQ27: When clicking a broken run arrow, the Error list window shows all of the following EXCEPT:A Items with errorsB Errors and warningsC Details about the warningsD Error CodesQ28: How do you document a VI so that the description appears in the Show Context Help popup window?A Use the VI Properties Documentation windowB Type in the Show Context Help windowC Create a free label on the front panelD Edit the LabVIEW help filesQ29: What is the output of the Initialize Array function after the following code has completed execution?ABCDQ30: How many bytes does LabVIEW write to the file when the code executes?A 5 BytesB 6 BytesC 12 BytesD 14 BytesQ31: The value in Control a is 2 and in Control b is 128.What value does the Result indicator display after the VI executes?A -128B 0C 255D 256Q32: A SubVI is created by selecting the code from a block diagram. How many terminals will the SubVI have?A 3B 4C 5D 6Q33: What is the red dot called?A Coercion DotB Data truncation DotC Data typecast DotD Buffer allocation DotQ34: What do coercion dots indicate?A Incompatible data typesB A mathematical operation will be performed on the dataC The input data will be copied and converted to a different data typeD The location where an error will occurQ35: What settings should be selected for a custom control so that all copies of the control are of the same data type yet have the flexibility to use different colors and styles?A ControlB Type Def.C Strict Type Def.D Flex Def.Q36: In a Simple State Machine design pattern, which of the following stores the state information?A Shift RegisterB QueueC NotifierD Functional global variableQ37: You are required to use the Get Date/Time in Seconds function for timing in a state machine. The state machine has an acquire state and must acquire for 5 seconds. If the hardware fails during acquisition the state machine must be able to transition to the stop state.Which of the following design patterns will provide timing for a state machine and allow responsiveness to acquire state requirements?ABCDQ38: Which of the following apply to Property Nodes?Property Nodes:A allow attributes of files on disk to be programmatically manipulatedB can be used to update the value of a front panel control or indicatorC return an error if you attempt to read a property before it has been writtenD can be used to invoke methods on a controlQ39: You have a front panel control on a top-level VI that you must manipulate from within a SubVI. Which of the following could you pass to the SubVI to accomplish this?A The control's propertiesB The control's methodsC The control's referenceD The control's data typeQ40: Which Property Node can change the text color attributes of ANY digital numeric control used on the panel of a VI?ABCDQ41: Solutions Page:Below are the answers and explanations for the CLAD Sample Exam. To quickly check your answers, record them on the Answer Sheet, detach the Answer Sheet, and compare it, side-by side, with the Solutions Page. This Solutions Page is not included in the actual CLAD exam; it is included here for practice purposes only.1. Correct Answer: CTopic: Event StructuresJustification: It is the only case with a filter event that applies to the Panel Close event. Since no Boolean is wired into the Filter Event terminal, LabVIEW opens a dialogue box to collect the value of the Boolean input.2. Correct Answer: CTopic: Event StructuresJustification: The requirements have no timeout action specified. Answer C is best practice, but is not required to accomplish the stated goal.3. Correct Answer: CTopic: LoopsJustification: An empty array is wired to the For Loop using an auto-indexing tunnel. This causes the For Loop to iterate once for every element in the array, which, in this case, is zero. However, the value 5 is written to the shift register before loop execution, and since the loop iterates zero times, the same value of 5 is present at the output shift register.4. Correct Answer: BTopic: Error HandlingJustification: The Merge Errors VI only passes on the first error encountered, counting from the top node down.5. Correct Answer: DTopic: General Programming FunctionsJustification: A and B are wrong because they do not strip the current VI filename from the path. C would work on Windows, but not other platforms, due to the different path separator. D is the only answer that correctly generates the path *and* will work on multiple platforms, since path separators in the path data type are automatically converted on different platforms.6. Correct Answer: CTopic: LoopsJustification: The While Loop has a FALSE Boolean wired to its conditional terminal, which is set to Stop if TRUE. Thus, there is no condition that causes this While Loop to stop. So, the While Loop could run infinitely and the VI must be aborted.7. Correct Answer: ATopic: LoopsJustification: For Loops can run zero times, and using a shift register is the recommended way to preserve pass-through data in this scenario.8. Correct Answer: BTopic: Data communication and synchronizationJustification: The shift register value will be 5 on the second call. 5 + 5 = 10.9. Correct Answer: BTopic: General Programming FunctionsJustification: TDMS read/write is limited to a specific subset of LabVIEW data types. For example, it cannot read or write multidimensional arrays or arrays of timestamps. See the LabVIEW help for details.10. Correct Answer: BTopic: Design PatternsJustification: Textbook use of queue in Producer Consumer.11. Correct Answer: BTopic: General Programming FunctionsJustification: Answer B is the difference between charts and graphs.12. Correct Answer: BTopic: LoopsJustification: In three loops only zeros will pass from the register, but the iteration will count 0, then 1 & then 2. Therefore the output from the addition function will be 0+2=2.13. Correct Answer: BTopic: Event Structures.Justification: The events queue up, so if it were not for the TRUE wired to the loop condition, the answer would be 2. However, the loop ends before we can process the second event that is still in the queue. 14. Correct Answer: BTopic: Error HandlingJUSTIFICATION: Merge Errors outputs the first error it finds in the errors clusters wired into it in atop-down fashion. Error 7 is wired into the top input, so it is the error outputted by Merge Errors.15. Correct Answer: BTopic: General Programming FunctionsJustification: The Tick Count (ms) is the only timer that rolls over to 0.16. Correct Answer: BTopic: SubVI CreationJustification: Input Numeric and Input Array are constants, so they are internal to the SubVI and do not have input terminals.17. Correct Answer: CTopic: General Programming FunctionsJustification: The Array Subset function takes an input array and returns a section of that array as specified, starting at the given index and continuing for a number of elements equal to length. Here, the index value 3 specifies the fourth element of the array, or 10. Since the specified length is value 4, an array of length 4 is returned as follows: {10, 8, 5, 7}.18. Correct Answer: BTopic: General Programming FunctionsJustification: LabVIEW will not allow creation of an array of arrays -- There is no need to make an array of arrays since you can simply add dimensions to an existing array.19. Correct Answer: ATopic: Data Synchronization and CommunicationJustification: Queues, notifiers, and local variables are all designed to transfer data. Wires can not pass data between parallel loops.20. Correct Answer: ATopic: Data Communication and SynchronizationJustification: The time out input terminal of the Dequeue Element function is in milliseconds, so with an input of 1, the Dequeue Element function will wait 1 millisecond to receive data.21. Correct Answer: DTopic: Data communication and synchronizationJustification: One reference is removed from memory, and the remaining elements are returned. It can be used to destroy the queue, but this is not an option in the question.22. Correct Answer: BTopic: Debugging toolsJustification: Clicking the Step Into button causes LabVIEW to open up the node or subVI. The Step Out button is used to return from a subVI to a main VI while single-stepping. There is no Step Through button. Step Over provides the functionality stated by the question, therefore this is the correct answer.23. Correct Answer: BTopic: Debugging toolsJustification: Stepping back, around,or above are not single step actions, stepping Over is the only correct choice.24. Correct Answer: ATopic: Case StructuresJustification: Arrays are not accepted by the case selector terminal because the case selector terminal requires a scalar value.25. Correct Answer: DTopic: Sequence StructuresJustification: Sequence Structures have no error terminals.26. Correct Answer: ATopic: LabVIEW Programming PrinciplesJustification: Because LabVIEW is a Dataflow language, we can trace the flow of data in the block diagram to see which operations execute first, second, and so forth.27. Correct Answer: DTopic: LabVIEW EnvironmentJustification: You must either look at an output error cluster or an error dialog to find the error code.28. Correct Answer: ATopic: LabView EnvironmentJustification: The documentation window in VI Properties is the only place to edit the information about the VI that appears in Context Help.29. Correct Answer: ATopic: Data TypesJustification: The "element" input terminal contains the value each element of the initialized array will contain, and the "dimension size" input terminal dictates the size of each dimension of the initialized array. Since there is only one dimension size input terminal, the array will be only 1 dimensional. The array elements will be initialized to the value of the element.30. Correct Answer: DTopic: Data TypesJustification: LabVIEW represents arrays as a list of bytes containing a header and array data. The header contains a 4-byte integer for each dimension that specifies the length of that dimension. Following the header is the actual array data. In the question, the array has two dimensions. There are 4 bytes in the header for each dimension for a total of 8 bytes in the header. Since the array is composed of six8-bit, or 1-byte integers, there is a total of 6 bytes of actual array data. This makes a total of 14 bytes being written to file.31. Correct Answer: BTopic: Data TypesJustification: The integers shown are unsigned 8-bit integers. The range for 8-bit integers is 0-255. The product of 2 times 128 is 256. As 256 is a number larger than the allowable 255, thus 256 wraps to 0. 32. Correct Answer: CTopic: SubVI CreationJustification: The subVI will have Error In/Out terminals as well as the three controls, for a total of 5 terminals.33. Correct Answer: ATopic: Data TypesJustification: Definition of Coercion Dot34. Correct Answer: CTopic: Data TypesJustification: Definition of Coercion Dots35. Correct Answer: BTopic: Data TypesJustification: Definition of Type Def36. Correct Answer: ATopic: Design PatternsJustification: Definition of Shift Register37. Correct Answer: ATopic: Design PatternsJustification: A is the only case that checks the data and leaves the timing state, and has persistent start time (stored in the shift register)38. Correct Answer: BTopic: VI ServerJustification: Deffinition of a property node.39. Correct Answer: CTopic: VI ServerJustification: The only answer option that can be passed from calling VI to subVI is the control reference. The reference can then be used with Property Nodes and Invoke Nodes to call properties and methods, respectively. The data type is a property of the control.40. Correct Answer: BTopic: VI ServerJustification: Strict property nodes require precise knowledge of the numeric representation. Since the question asks for the means to change the text color of any control, a strict Property Node does not suffice. An implicit Property Node (C), can only be used locally. Answer D shows a property that is not even relevant to the question. Thus, option B is the best answer.。

CLAD模拟试题

CLAD模拟试题

W7 NATIONAL ^INSTRUMENTSLabVIEW 基磁毫^^^ (CLAD)注意:测■遇程中,禁止使用♦躺或任何多考^料。

就明:言勿擅自撕品任何漏封。

若交逮NI的测腕就IS不完整或祠封破损,即将立即失去测腕溜格。

•官青遵守就卷上的要求。

如果您填金昔了准考^虢礁,本次测瞬招视作辗效。

•^在答案卡上填瘾所有的答案。

填瘾在就卷上的答案符不纳入^分襟举。

•官青勿要求签考人_S余合予任何十薪助。

若熬卷题目不甚清楚,即可襟言带亥冏魅,旋嘉下您自己熬卷敕合遹的答案舆理由,以供NI囿卷畤参考之用。

•您不可摧出此份模掇就题,亦不可用任何方式重现此份就题。

在完成测瞬之彳爰,亦不可保留任何就魅。

•珈脚寺^: 1小畤•测瞬方式:多重逗撵魅•测瞬题数:40题•及格分数:70%重要:常廉就者完成测腕畤,前;K就卷放在所提供的信封内或密封之。

;»密封的信封交给NI 监考人及。

卜列何工融而粘符累直示For Loop 或While Loop 的退圈循璟言十数(Loop Iteration) ?Q2:若欲招数值100资料型熊熟Unsigned Byte 信者存至文件槽,下列何槿信者存方式所生成的文件槽案最小?Q1: □@1画[N] A.size- (in bytes) B. D.U8 Number To Decimal StringCleas File G&t File SizeUS Number To Decimal String size- (in bytes)^HM -IUSC.封subVI 而言,若「Context Help 」视窗中的输入名耦是以粗飕^示,即下列何工期条件正碓?信青逗出所有逾用的叙述)输入值必定悬触数(Scalar)此输入悬建^使用,而加非必要输入此输入熟必要输入 若此翰入加未接瀛期原VI (Calling VI)符中断下列何项算数函式招僵先轨行?A.加B. 减 Q3: 若要^示下11数撼,鹰使用哪一槿圈表?A.B. C. D. Q4: A. B. C. D. Q5:I IWL||. ■ 1 .Waveform ChartWaveform GraphXY GraphDynamic Chart «Jpn.ta.EqC.乘D.辗法碓定Q6:孰行下列VI之彳兔Result指示元累直示熟何?A.0B.3C.6D.18Q7:何项燮数可避免同步存取资料或程式礁日寺,曾符兢赛状熊(Race condition)降至最低?A. 功能型全域燮数(Functional Global Variable)B.显域燮数(Local Variable)C.全域燮数(Global Variable)D.共用燮数(Shared Variable)Q8:下列展昌於燮数(Variable)的功能描述何者有点吴?A.显域燮数(Local Variable)可於罩一VI中停遮瓷料B.共享燮数(Shared Variable)可於罩一事案中的多他VI之制惠遮资料C.全域燮数(Global Variable)可於军一1月修中的多他VI之^^遮资料D.功能型全域燮数(Functional Global Variable)可跨多他1月像的多他VI之^^遮资料Q9:下列何项不是LabVIEW既有的除金昔功能?A.停止值(Stop Values)B.木票示轨行(Highlight Execution)C. 军步轨行(Single Stepping)D.中断黠(Breakpoint)Q10:^於下列程式碉的描述,何项正碓?A. While Loop符循璟1次之彳爰停止B. While Loop符循璟4次之彳爰停止C. While Loop符循璟5次之彳爰停止D. While Loop符辗限循璟Q11:若使用通知器(Notifier)同步雨备且平行退圈如下H,符曾崖生什麽冏题?MasterA.因悬通知器(Notifier)未具借Timeout,故曾崖生日寺序的冏题B.因悬通知器(Notifier)旋不曾^^资料,故曾崖生资料遗失的冏题C.因悬通知器(Notifier)只停送军一数值,故曾崖生重禊^取的冏题D.因熟Master退圈所停送的资料,Slave退圈可能不曾^取,故曾崖生官削意飕累加的冏题Q12:轨行下列程式礁,若按下Boolean按筵彳兔即Numeric最直示器的数值悬何?A. 0B. 10C.辗法碓定,愿参考其他Event Case的程式碉,才可$夬定^值D.此VI不曾停止Q13:下列何项Property Node可在subVI中燮更任意数字累直示器(Digital Numeric)的色彩言殳定?一A.Y DigNum 微H—卜NumText^BGColor ■—►NumText.Te>ftColorB.1—卜NumText.BGColor—►NumTeit.TextColarC.—谭7 Num .卜UnitLabeLRGQjkr4-►UnitLabel.TextColor D.Q14:下列圜真中,何日寺可使用Probe工具取代Highlight Execution ?A.减^ VI轨行速度,加於接^上^示数值B.呈垣资料流向C.觐看接^上的即寺数值D.於VI程序孰行期^觐看SubVIQ15:符Boolean控制元音殳定悬Latching Until Released。

CLAD 2014 模拟卷1

CLAD 2014 模拟卷1

LabVIEW助理开发工程师考试模拟试题注:考试过程中不允许使用计算机或其他参考资料。

说明:∙请不要拆开装订试卷。

如National Instruments收到的试卷有部分缺失或散页,考试成绩视为不通过。

∙请按照答题纸上的说明答题。

如考生ID输入有误,考试成绩将视为无效。

∙将所有问题写在答题纸上。

写在试题册上的答案不予评分。

∙请不要向监考人请求有关问题答案的帮助。

∙不得部分或全部复印或复制试卷。

完成考试后,不得保存试卷的任何部分。

考试详细信息:∙时间:1小时∙试题类型:选择题∙试题数量:40∙通过分数:70%重要提示:完成考试后,将试卷放入信封内并密封。

将密封好的信封交给监考人。

答题纸:如需快速查看您的答题情况,可在此答题纸上记录您的答案。

答题结束后将此页撕下与参考答案进行对照。

此答题纸仅用于练习之目的,CLAD实际考试中不包含此页。

参考答案附在模拟题之后。

1._____2._____3._____4._____5._____6._____7._____8._____9._____10._____11._____12._____13._____14._____15._____16._____17._____18._____19._____20._____21._____22._____23._____24._____25._____26._____27._____28._____29._____30._____31._____32._____33._____34._____35._____36._____37._____38._____39._____40._____Q1: 用户选择“文件>>关闭”菜单项关闭前面板时,向用户提示“取消”选项。

哪个事件结构可实现上述操作?ABCDQ2: 要使用布尔控件生成响应多个值改变事件的代码,该布尔控件保持触发(latch)的机械动作。

下列哪个步骤不是必需的?A 将布尔控件置于循环内,并读取布尔控件B 将事件结构置于循环内C 在事件结构中配置超时分支D 为布尔控件配置“值改变”事件分支Q3: VI执行结束后,值输出显示控件的值是什么?A 0B 4C 5D 6Q4: 执行结束后,LabVIEW显示多少错误?A 无错误B 1个错误C 2个错误D 3个错误Q5: 现需要一个用于生成test.txt路径的VI(名称为CLAD505)。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
正确答案:A
分析: Implicit Property Node 指的是隐性属性节点,由于本题中只需要对一个特定的控 件进行属性设置即可,所以这里最简便的方式就是使用隐性属性节点即可。
10. Formula nodes accept which of the following operations? a. Basic programming language instructions Input and Print b. Embedding of SubVIs within the Formula Node c. Pre and post increment (++) and decrement (--) as in the C language d. The use of nested Formula Node structures
a. b. c. d. 正确答案: D
分析:决定 For 循环结果循环次数的是 N 这个控件。
9. You have a control on the front panel of a VI and you need to modify one of its properties at run time. Which of the following is the best approach you would take? a. Create an implicit property node and select the property to modify b. Create a control reference, pass the reference to a property node and select the property to modify c. Create a linked shared variable and select the property to modify the property d. Create a local variable and select the property to modify
a. 1-D Array of {3,3,3,3} b. 1-D Array of {4,4,4} c. 1-D Array of {3,4} d. 1-D Array of {4,3} 正确答案:A 分析: 使用 Initialize Array 时,Element 输入项定义该 Array 的初始值为多少(如果不输 入则为 0),而 Dimension Size 输入项则表示 Array 的各维的长度。
15. What is one disadvantage of using the State Machine VI architecture? a. A State Machine can only traverse states in order b. If two state changes occur at the same time, only the first state change will be handled and the second will be lost c. The diagram becomes significantly larger when changing from a general architecture to a State Machine d. State Machines cannot acquire data or use DAQ functions
正确答案:B
分析: 改变显示控件的值,题中的四个选项都是可以实现,这里需要选择最好的方法; 一般而言,就程序的运行性能来说,选用 Property 中的 Value 最差,其次为 Local Variable,最好是直接连控件终端;而功能型全局变量(functional global variable)是为 了避免竞争机制而实现的。
c. The loop will execute infinitely and the program will have to be aborted d. The loop will not execute and the interation terminal, will return a null
分析: 首先通过 assemble 可以知道是应该用 Bundle 而不是 Unbundle,其次需要 by their owned labels,因此选择 C。
13. What is the output of the Build Array function in the following block diagram when Concatenate Inputs is selected?
value 正确答案: C 分析:观察程序中循环的终止条件,可以看到此时选用的是“Continue If TRUE”,所以 当一个 TRUE 的常量连在这里后,循环必定永远无法停止。
7. Which of the following cannot be used to transfer data? a. Semaphores b. Queues c. Notifiers d. Local variables
正确答案: A
分析:Semaphore(信号量)只是为了防止竞争机制(Race Condition)而实现的,它就 像一把钥匘一样,而不带有仸何数据。
8. Which of the following terminals controlsoop executes?
正确答案: B
分析:一般使用 Local Variable 或者 Queue 等方式实现并行循环间的数据传输,单纯的 连线是无法做到的。
3. Which of the following describe a Tab Control ? a. A control that outputs ASCII values equal to the selected tab label b. A type of enumerated control c. A control that outputs a cluster of the controls / indicators on the tabs d. A control that outputs the tab order of the controls on the front panel
正确答案:C
分析: 用排除法,a 中的 Input 与 Print 显然无法在公式节点中实现;子 VI 也一样情况, 对于 d 来讲,在公式节点中嵌套公式节点也是不被允许的,因此只能选 C。
11. Which of the following is the best method to update an indicator on the front panel? a. Use a Value property node b. Wire directly to the indicator terminal c. Use a local variable d. Use a functional global variable
正确答案: B
分析:Tab Control 即是选项卡控件,虽然在控件中的每一个 Tab 中都能放很多显示控件, 但是其实质是一个枚举类型(enumerated)。
4. Which server must be started before running DataSocket Vis a. HTTP server b. Data Socket server c. FTP server d. OPC server
正确答案: A
分析:在 VI Properties 中的 Documentation 可以输入对此 VI 的说明与描述,保存后,在 查看此 VI 时会在 Context Help 窗口中显示此条描述。
2. Can a wire be used to pass data between loops that are intended to run in parallel? a. Yes b. No
正确答案:C
分析:Coercion 是指数据类型的强制转换,如下图,当两个类型不一致的数据流连接时 (如 I8 与单精度实型),为了进行数据转换,需要对被转换数据进行一次备仹,因此为 了提醒编程者,需要有一个标记。
6. Which of the following statements is true about the following block diagram?
LabVIEW CLAD 认证模拟题详细解答
关于 CLAD 认证考试
CLAD ( Certified LabVIEW Associate Developer ) 即 LabVIEW 助理开发工程师认证, 是 NI LabVIEW 专业认证的第一步,获得 CLAD 认证证明您在 LabVIEW 环境下的专长, 能基本熟练地在测试和测量应用中运用虚拟仪器技术和产品 。
a. The loop will execute once and the iteration terminal, will output a value of one
b. The loop will execute once and the iteration terminal, will output a value of zero
a. 1-D Array of {1-4,3,7,-2,6} b. 1-D Array of {1,7,-4,-2,3,6} c. 2-D Array of {{1,-4,3,0},{7,-2,6}} d. 2-D Array of {{1,-4,3},{7,-2,6}} 正确答案:A 分析: 首先通过 assemble 可以知道是应该用 Bundle 而不是 Unbundle,其次需要 by their owned labels,因此选择 C。 14. What is the output of the Initialize Array function after the following code has executed?
相关文档
最新文档