• Please review our updated Terms and Rules here

what language or scripting does this code snippet BEST represent?

luvit

Experienced Member
Joined
Feb 16, 2014
Messages
488
Location
east of Newark, Oh i;m luvit
i'm not a programmer
what language or scripting does this code snippet BEST represent?
[ATTACHED PIC REMOVED]

thank you.
 

Attachments

  • elephant-front.jpg
    elephant-front.jpg
    20.8 KB · Views: 1
Last edited:
I'd agree with the BASIC assumption, except the comma delimited variables before there are line-numbers should be colons, and the "is not equal 0" part is utter gibberish in any dialect of BASIC I'm aware of. The "end while" is also a bit off since in BASIC dialects that have WHILE typically use WEND.

Actually has me thinking it might be COMAL or something similar, except that COMAL uses := instead of = on assignments.

That's really kind of a strange hodge-podge. It has the telltales and structure of three different languages.
 
The chatty style and no punctuation is reminiscent of HyperCard style languages. If there is an actual language behind this (given the date there may not be), it is probably taken from someone's grad school thesis from about 1990.
 
So ignoring the line numbers which may be for reference or IDE, I found the leading variables and indented text interesting.
It was wordy, but didn't resemble basic to me.
This is important for me to identify as its a real question on a standardized test.
I hope for further feedback from vcf.
 
This is important for me to identify as its a real question on a standardized test.
What are the potential answers, or are they not known.

I know very few languages that use 'is not equal' as a comparison.

Apple script, but the while is wrong.

Looks like generic pseudo code to me.
 
Last edited:
what language or scripting does this code snippet BEST represent?

That tells me there could possibly be a syntax error and it still BEST represents something.

In that case, given my very limited experience (considering the plethora of languages out there!) I'd say it's probably one of the VBA variants. Only because there are two certain sets of languages I'd expect to be on a test: Popular ones, and, "historical" ones. This does not look like any of the "historical" languages I'm familiar with.
 
What are the potential answers, or are they not known.
Looks like generic pseudo code to me.
i agree it looks like pseudo code.
1) testers choose from 4 choices on what type of error is produced.
2) testers choose from 4 choices on how to debug this code.

That tells me there could possibly be a syntax error and it still BEST represents something.
syntax error is one of 4 answers for what error is produced. :)

Since this is a question on a real test, I have removed the pic from the OP.
Thanks to everyone for your expertise.
 
Back
Top