|
|
I'd say that it describes identifiers. As in, most (all?) programming languages don't allow variable/function/method/type names to start with digits.
I agree that it is a very ambiguous question though, unless he specifically discussed said language constructs. What class is this for?
|
Yeah, he's looking for you to give answers as things like "variable names" or "class names" or "function names", etc. Thats what he means by "by giving the name of a language construct", I think
|
Programming Language Concepts
I think you're right, I just want to know what he means with "by giving the name of a language construct," he never explained to us those (aren't there like, LOTS?)
I know that:
(\+|\-)?[0-9]+\.[0-9]+
represents floating point numbers... so that's why I think you're right that the previous represents identifiers.
edit: yeah, thank you guys!
|
On May 03 2009 10:24 tec27 wrote: Yeah, he's looking for you to give answers as things like "variable names" or "class names" or "function names", etc. Thats what he means by "by giving the name of a language construct", I think
This sounds right.
|
lol good luck man. What year are you?
|
I'd just draw a huge meaty manhood on the paper and hope that he's into dudes.
|
Other people have already given the right answer but you should try not to be intimidated by questions like these. Assuming you know your regular expressions, you know that the question was basically asking "what doesn't start with a number and consists of letters, numbers, and underscores?" Thinking about it that way, it becomes a lot clearer.
|
i remember i had a prompt once for English class (the topic was Jason and the argonauts) that was literally "jason, discuss" like, wtf? so i can relate a bit to your problem.
|
On May 03 2009 21:59 The_Australian wrote: i remember i had a prompt once for English class (the topic was Jason and the argonauts) that was literally "jason, discuss" like, wtf? so i can relate a bit to your problem.
lol, relate to what problem? The question he posted was in fact not ambiguous at all..
|
I'm a junior, but I'm 19 (so I don't know crap compared to the other guys...) sorry, my brain was literally fried that day (hours of study) now as much as I hate to admit it (literally) it is true what they say about having a good sleep, breakfast, etc, before taking a test x.x
|
|
|
|