Webcast Wednesday Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Webcast Wednesday Contest # 22

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?

Picture2.png

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?

Picture3.png

  1. Since there is no While loop, the VI does not wait for any event and finishes execution. No dialogs are displayed.
  2. The VI front panel stops responding if Two’s value is changed before One’s value is changed.
  3. The VI runs as expected if Two’s value is changed before One’s value is changed.
  4. The VI’s front panel stops responding when any of the control value is 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

  • Post your answers as comments on this thread.
  • The participant answering all the questions correctly and in the shortest time will be the winner. In case of VI or code as answers, the participant will also be judged on the basis of the efficiency of the VI/code.
  • The deadline for answer submission is Monday.
  • Entries made after the deadline will not be accepted.
  • The winner will be announced in the next session of Webcast Wednesday and on this thread, with further information & next steps.


Recordings of the Previous Sessions

Previous Contests of the Week


0 Kudos
Message 1 of 22
(7,858 Views)

Answers for Quesitions

Q1:c

Q2:a

Q3:d

AB
Kudos are Accepted
0 Kudos
Message 2 of 22
(4,950 Views)

1)c

2)a

3)d

0 Kudos
Message 3 of 22
(4,950 Views)

Answers are given below:

S.NO         ans

1.                 c

2.                 a

3.                 d

0 Kudos
Message 4 of 22
(4,950 Views)

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.


0 Kudos
Message 5 of 22
(4,950 Views)

Q1:c

Q2:c

Q3:d

0 Kudos
Message 6 of 22
(4,950 Views)

Q1:c

Q2:a

Q3:d

0 Kudos
Message 7 of 22
(4,950 Views)

Q1:C

Q1:A

Q1:D

0 Kudos
Message 8 of 22
(4,950 Views)

Q1: C

Q2: A

Q3: D

0 Kudos
Message 9 of 22
(4,950 Views)

Q1: C

Q2: A

Q3: B

0 Kudos
Message 10 of 22
(4,950 Views)