10-09-2013 05:11 AM
Question 1) What is the result in Array after the following code has executed?
a. A 1-D array of {1, 4, 3, 2, 1, 0}
b. A 1-D array of {1, 8, 0, 1, 2, 3, 4, 6, 2}
c. A 1-D array of {1, 4, 3, 2, 1, 0, 8, 6, 2}
d. A 1-D array of {1, 8, 0, 1, 2, 2, 9}
Question 2) What is the result in new string after the following code has executed?
a. Hello to you!
b. Hello Wto you!
c. Hello to you!!
d. Helloto you!
Question 3) In the following block diagram, both the Event structures are configured to not lock the front panel until the event case completes. What will be the VI’s response if the two control values are changed?
Leave your answers as comments below by clicking on Reply
You will need to be logged-in to do so. Click here to sign-in/sign-up.
Rules & Guidelines
Recordings of the Previous Sessions
10-09-2013 06:08 AM
Answers for Quesitions
Q1:c
Q2:a
Q3:d
10-09-2013 06:15 AM
1)c
2)a
3)d
10-09-2013 06:15 AM
Answers are given below:
S.NO ans
1. c
2. a
3. d
10-09-2013 06:17 AM
Question1:
Insert array function is used to insert an element /sub array values at the specified index,when the vi executed,for loop is executes for 5 times, every time when the for loop iterates ,the iterated value which is connected, will be inserted at index1 of the feedback array.
when i=0,array value={1,0,8,6,2} ,when i=1 array value={1,1,0,8,6,2}......hence Ans:C
Question2:
Replace array function inserts,deletes or replaces the string with the substring at the specified offset value ,since the length of the sub string is mentioned ,it allows only 7 characters to be replaced in the string and returns it to new string.so the answer is A
Question 3:
ANS B.The VI frontpanel stops responding if two's value is changed before one's value.
We could specify the number of milliseconds the Event structure should wait for an event to occur,but in this case there is no such condition, hence we can take the default value –1, indicating never to time out.so definitely option A could not be the answer.
Sequence structure executes sequentially,since the time out period is indefinite ,it waits in the second sequence until one's value is changed.in such a case if two's value is changed the front panel gets locked and one's event structure will not execute,we call it as deadlock state.hence the answer is b.
10-09-2013 06:17 AM
Q1:c
Q2:c
Q3:d
10-09-2013 06:18 AM
Q1:c
Q2:a
Q3:d
10-09-2013 06:20 AM
Q1:C
Q1:A
Q1:D
10-09-2013 06:21 AM
Q1: C
Q2: A
Q3: D
10-09-2013 06:28 AM
Q1: C
Q2: A
Q3: B