I went thru some of it and noticed this is really poorly written. It has unusual usage of commonly used operators and some of the answers seem to be very dependent on the compiler behavior.
So, I went to the page and noticed it has < 2000 visitors since 2002! and the lic publication was in 2007. The page looks like it was written even before 2002
I went thru some and then lost interest because I really don't see how this test would help unless you are applying for a job that uses whatever system (language) they are using.
I quit when I notice they were talking about logging in. Sounds like an old online realtime system rather than a compiled type language.
Is there a reason you picked that test? Doesn't seem to be related to any modern system, and the website seems beyond dead.
Answers (if it helps)
A
B
G
E? -- They set 'A = 0' so the 'array' is not an array, it's a variable. then they define the elements of an array. This should override the 'A=0' and define an array named 'A'
the question is using math on an array with elements but not selecting any one of the elements. The results may be defined by the language / compiler.
F?
1+1 = 2
2*3 = 6
6/2 = 3
3+7=10
10#12 = 2 Note: it said STRICTLY LEFT TO RIGHT
#6
B and C
I'll say C because if you have a - number, it won't be > 0,
and B because if A is 1, it's false
# 7
A
#8
A
B
#9 is confusing "if you were asked for '17"
it doesn't say to apply ' to integer 17 which it says would be nill (not zero). So the answer (if the question is apply ' to 17) would be nill which is not on the list. So what does 'asked for' mean? to get the value of the expression?
so what's stored when you get a nill? (which they don't tell us, however they do mention above in the True/False that False is nill)
So it could be either 0 or " " unless the " " is a "" but it looks like a " " (space character vs no character)
Note: this seems very language specific, not so much logic. If you knew the language, you could run the program, without a language behavior, I see it as confusing.
Also note: I saw in # 11: In arithmetic expressions, the "nill" string is evaluated as a zero. So maybe this is 0. Seems to depend on what they mean by 'asked for' which seems to mean 'retrieve the value of'
#10
A
#11
B
#12
F
#13
C
#14
A
#15
Dam hard to tell with the limited information given
0.A+B+C-3
looks like:
"0JOHN" + "JANE" + "3DOES" -3
would be 0 - 3 or -3 because the last operation is math and it takes all the numbers until it reaches the 1st non number (H none of the above)