Midterm2A_Solution

pdf

School

Pennsylvania State University *

*We aren’t endorsed by this school

Course

200

Subject

Electrical Engineering

Date

Feb 20, 2024

Type

pdf

Pages

11

Uploaded by ElderRabbitPerson19

Report
1. Which of the following statements about the use of Coercion Dots is TRUE ? a. Coercion Dots improve program performance. b. Coercion Dots cannot affect memory usage. c. Coercion Dots represent a conversion from one data type to another. d. Coercion Dots means that data values are being coerced because they are out of range. 2. Which data type would be appropriate to display temperature in celsius, from -200 to +200 degrees, rounded to the nearest whole number? b a. b. c. d. 3. What is the output of the Build Array function in the following block diagram when Concatenate Inputs is N OT selected? a. 1-D Array of {8, 8, 8, 8, 1, 2} b. 2-D Array of {{8, 8}, {1, 2}} c. 2-D Array of {{8, 8, 8, 8}, {1, 2}} d. 2-D Array of {{8, 8, 8, 8}, {1, 2, 0, 0}} 4. Which of the following statements regarding the use of Cluster is FALSE ? a. A cluster can group mixed data types into logical structures. b. A cluster can decrease the number of Connector Pane terminals of SubVI’s. c. A cluster can help to reduce wire clutter on the Block Diagram. d. A cluster can contain a mixture of controls and indicators. 5. If possible, an FSM can be replaced with a(n) ___________. a. Event structure b. Sequence structure c. For loop d. While loop
EE 200 Exam 2A Spring 2022 6. What is the result in the Output after the following code has executed? a. Good PSUing! b. Good PSUning! c. GoodPSUening! d. GoodPSUning! 7. What is an advantage of using a Strictly Typed VI refnum? a. The data types passed to the VI can change programmatically. b. The data types of the target VI are known at compile time. c. You can flatten the data to a string to improve code performance. d. Causes dynamically loaded VIs to be loaded at the start of execution. 8. Which of the following is N OT a traditional debugging feature used to find errors in a VI? a. Error Cluster b. Highlight Execution. c. Single Stepping d. Breakpoints 9. Which of the following statements regarding the use of Property Nodes is FALSE ? a. Property Nodes allow attributes of front panel objects to be programmatically manipulated. b. Property Nodes can be used to update the values contained in a front panel object. c. More than one Property Node can be used for a single front panel object. d. Property Node can be used to invoke methods on a control. 10. Which of the following CA NN OT be used to transfer data? a. Semaphores b. Queues c. Notifiers d. Local variables
EE 200 Exam 2A Spring 2022 11. Which chart update mode is the waveform chart in? a. Step Chart b. Strip Chart c. Scope Chart d. Sweep Chart 12. Which of the following accurately describes the following code? a. A breakpoint causes the VI to abort. b. A breakpoint causes the VI to pause. c. A coercion dot indicates that a polymorphic operation will be performed on the data. d. A coercion dot indicates that data values are being coerced. 13. What type of data is contained in lines that are thick and alternating between black and yellow? a. Broken wires b. Variants c. Error cluster d. 2D arrays 14. Which of the following CA NN OT be used to transfer data between two parallel loops? a. Wires b. Queues c. Notifiers d. Local variables
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
EE 200 Exam 2A Spring 2022 15. The Wait function can be added to While Loops: a. To free up available memory. b. To allow the processor time to complete other tasks. c. To allocate memory used by the CPU. d. To reserve which prpocessor the code is running on. 16. Which of the following accurately describes the following code? a. The VI will output all positive numbers of an input 1D array. b. The VI will output all negative numbers of an input 1D array. c. The VI will output the number of the positive numbers of an input 1D array. d. The VI will output the number of the negative numbers of an input 1D array. 17. Which of the following accurately describes the output that results from execution of the following code? a. The output A is updated every 1s. b. The maximum value of B is 9. c. When the stop button is pressed, the program will stop immediately. d. If the stop button is not pressed, the while loop will run 10 times.
EE 200 Exam 2A Spring 2022 18. Which of the following accurately describes the wires labeled A through D in the following code segment? a. A is a 1D array with 4 double floating elements. b. B is a 1D array with 300 double floating elements. c. C is is a 2D array with 300 double floating elements. d. D is a cluster and one of its elements is double floating array. 19. For the front panel shown below, determine which of the following icon & connector panes represents the connections for the DIO subVI. d a. b. c. d.
EE 200 Exam 2A Spring 2022 20. The file C:\test.txt does not exist and the stop button is not pressed. Which of the following accurately describes the result after this code executes? a. The program stops and an error dialog box will pop up. b. The program continues and an error dialog box will pop up. c. The program stops and an error dialog box will not pop up. d. The program continues and an error dialog box will not pop up. 21. Which words accurately describes the code? a. Explicitly Linked Invoke Node b. Implicitly Linked Invoke Node c. Explicitly Linked Property Node d. Implicitly Linked Property Node 22. What VI is typically used to terminate an Error Cluster wire and to display any error message? a. Merge Errors b. Case Structure c. Property Node d. Simple Error Handler 23. Which data type is N OT accepted by the selector terminal of a case structure? a. Boolean b. Enumerated type values c. Double-precision floating point d. String
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
EE 200 Exam 2A Spring 2022 24. Which of the following methods is NOT a method to create a 1‐D Array ? a. Place an Array Shell on the Front Panel and drag a Control into the shell. b. Use a While Loop with auto‐indexing disabled. c. Use a For Loop with auto‐indexing enabled. d. Use the Initialize Array function. 25. How many bytes does LabVIEW write to the file when the code executes? a. 10 Bytes b. 12 Bytes c. 16 Bytes d. 20 Bytes 26. What is the best method to stop a While loop on an error condition? a. Use the Error Handler VI to automatically handle the error b. Compare the Status Boolean of an error cluster with a constant and wire it to the Stop terminal c. Connect the error wire directly to the Stop terminal d. Create an Event structure to handle the error event. 27. For the elements of the Boolean array to be written out to the myDAQ DIO lines 0:2, the Polymorphic VI selector for the DAQmx Write should read: a. Digital 1D Bool 1 Chan 1 Samp b. Digital 1D Bool 1 Chan N Samp c. Digital 1D Bool N Chan 1 Samp d. Digital U8 1 Chan N Samp
EE 200 Exam 2A Spring 2022 28. Which of the following statements is TRUE regarding the use of the Formula nodes? a. The Formula Node can accept the inputs with the same names. b. The Formula Node can accept text-based versions of if statements. c. The Formula Node can accept the complex variables. d. The Formula Node can accept nested Formula Node structures. 29. Which of the following is the best method to update an indicator on the front panel? a. Use a local variable b. Use a functional global variable c. Use a Value property node d. Wire directly to the indicator terminal 30. Which of the following functions assembles Cluster elements by their owned labels? a. Bundle by Name b. Bundle c. Unbundle by Name d. Unbundle 31. You have a front panel control on a top-level VI that you must control from within a subVI. What must you pass to the subVI? a. The control's properties b. The control's methods c. The control's reference d. The control's data type 32. Which structure accurately describes the following code? a. Event Structure b. Sequence structure c. While loop d. For loop
EE 200 Exam 2A Spring 2022 33. Which of the following Block diagram will give the outputs A=1 and B=12? c a. b. c. d. 34. A button is pressed once and immediately turns on the light of a dark room. The light stays on after the button is released. Which is the mechanical action of the button? a. Switch when pressed b. Switch when released c. Latch when pressed d. Latch until released
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
EE 200 Exam 2A Spring 2022 35. What is the result of the following array subtraction? A 36. 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 use DAQ functions
EE 200 Exam 2A Spring 2022 37. Which of the following will cause an event to be captured by the LabVIEW Event Structure? a. Changing a Front Panel control’s Value via a mouse click on the control b. Changing a Front Panel control’s Value property via a property node c. Changing a Front Panel control’s Value via a control reference d. Changing a Front Panel control’s Value via a local variable 38. The following block diagram represents which common type of VI architecture? a. Multiple Case Structure VI b. State Machine VI c. Producer-Consumer VI d. General VI 39. Which of the following illustrates an advantage of a global variable over a local variable? a. Global variables do not require owned labels to operate. b. Global variables can pass data between two independent VIs running simultaneously. c. Only global variables can pass array data, local variables cannot. d. Global variables follow the dataflow model, and therefore cannot cause race conditions. 40. How does a producer consumer design pattern process excessive amounts of data? a. The producer loop will slow its cycle time to allow the consumer loop to catch up. b. The consumer loop will increase its processing time to match the producer loop. c. Using a notify, the Consumer loop only processes current data. d. Using a queue for storage the Consumer loop processes all data when it has time.