The Daily CLAD

Community Browser
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Byte Array to String

SercoSteveB
Active Participant

What is Byte Array Out following execution of the VI?

Byte Array to String.png

Byte Array to String.bmp

Comments
LordNobady
Member

B. it is an  easy one. it is more about knowing ascii then labview.


Learning LabVIEW since January 2013
crossrulz
Knight of NI

B

The key to this one is actually knowing the ranges for the upper vs lower case ASCII values.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
MrStevenUND
Member

B.

You're changing it up on us and using decimal.

2verb
Member

B

In addition to knowing about ASCII, you have to know that the top element of the array is the zeroth index and that this corresponds to the leftmost character in the string. This is obvious to me now, but it wasn't always.

It is a good CLAD question, especially as some CLAD developers will be new to programming.

nmpundlik
Member

ANS B.

RAMESHB
Member

Answer is B.

JGmitter
Member

Seriously?  You guys know the ASCII table off the top of you head? 

SercoSteveB
Active Participant

This is a LabVIEW question and an exam mindset question all rolled into one.  The answers are structured such that it is possible to get to the correct answer knowing only that the lower case letters appear after upper case letters in the ASCII table (a fact which crossrulz mentioned a few posts ago).

Sometimes it is interesting how little you have to know to get to the correct answer.

crossrulz
Knight of NI

J-MACK wrote:


                       

Seriously?  You guys know the ASCII table off the top of you head? 


                   

Not really.  It was embedded into my brain in college that the numbers are in the 0x30 range (just add 0x30 to the number!) and capital A is 65.  I also knew that the lower case letters are after the upper case at some point.  So based on that knowledge, you can figure it out.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
JGmitter
Member

LOL.  Ok Well know I guess I've got some info on the ASCII table that should help me at some point. 

Thanks guys.

SercoSteveB
Active Participant

J-MACK wrote:

LOL.  Ok Well know I guess I've got some info on the ASCII table that should help me at some point. 

Thanks guys.

Maybe......have no real use for it myself (only when writing CLAD questions that is)

adiveppa
Member

Ans is B

SercoSteveB
Active Participant

Answer: B.  Nice one LordNobady, crossrulz, MrStevenUND, 2verb, nmpundlik, RAMESHB & adiveppa

Nice comments; thanks 2verb and crossrulz

mini09
Active Participant

nice discussion agreed with B....

ashwinilele
Member

B

skian
Member

B