• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 16:10
CEST 22:10
KST 05:10
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6Code S RO8 Preview: herO, Zoun, Bunny, Classic7
Community News
Weekly Cups (June 23-29): Reynor in world title form?6FEL Cracov 2025 (July 27) - $8000 live event13Esports World Cup 2025 - Final Player Roster14Weekly Cups (June 16-22): Clem strikes back1Weekly Cups (June 9-15): herO doubles on GSL week4
StarCraft 2
General
The SCII GOAT: A statistical Evaluation Weekly Cups (June 23-29): Reynor in world title form? How does the number of casters affect your enjoyment of esports? Esports World Cup 2025 - Final Player Roster HomeStory Cup 27 - Info & Preview
Tourneys
HomeStory Cup 27 (June 27-29) WardiTV Mondays SOOPer7s Showmatches 2025 FEL Cracov 2025 (July 27) - $8000 live event $200 Biweekly - StarCraft Evolution League #1
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers [G] Darkgrid Layout
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma Mutation # 477 Slow and Steady
Brood War
General
StarCraft & BroodWar Campaign Speedrun Quest ASL20 Preliminary Maps BW General Discussion BGH Auto Balance -> http://bghmmr.eu/ Unit and Spell Similarities
Tourneys
The Casual Games of the Week Thread [BSL20] GosuLeague RO16 - Tue & Wed 20:00+CET [Megathread] Daily Proleagues [BSL20] ProLeague LB Final - Saturday 20:00 CET
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do. [G] How to get started on ladder as a new Z player
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Path of Exile What do you want from future RTS games? Beyond All Reason
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Trading/Investing Thread Stop Killing Games - European Citizens Initiative Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread Korean Music Discussion
Sports
2024 - 2025 Football Thread Formula 1 Discussion NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Blog #2
tankgirl
Game Sound vs. Music: The Im…
TrAiDoS
StarCraft improvement
iopq
Heero Yuy & the Tax…
KrillinFromwales
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 681 users

Teacher "Ambiguity"

Blogs > EsX_Raptor
Post a Reply
EsX_Raptor
Profile Blog Joined February 2008
United States2801 Posts
May 03 2009 01:03 GMT
#1
So I'm studying for my finals next week, but the review questions our CS teacher gave us are so freaking ambiguous it's not even funny.

It goes like this:


Describe the strings (by giving the name of a language construct) that are represented by the regular expression:

([A-Z]|[a-z]|_)([A-Z]|[a-z]|[0-9]|_)*


Well... from that we can observe that the following:

FA009_zbT
_AA09
z
ABCDEFGHIJKLMNOPQRSTUVWXYZ

And so on, follow the rules of that regular expression. But I'm still confused what's that guy asking for!?



*
allluckysevens7777
Profile Joined February 2009
United States53 Posts
May 03 2009 01:22 GMT
#2
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?
tec27
Profile Blog Joined June 2004
United States3696 Posts
May 03 2009 01:24 GMT
#3
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
Can you jam with the console cowboys in cyberspace?
EsX_Raptor
Profile Blog Joined February 2008
United States2801 Posts
Last Edited: 2009-05-03 01:30:16
May 03 2009 01:29 GMT
#4
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!
keV.
Profile Blog Joined February 2009
United States3214 Posts
May 03 2009 03:37 GMT
#5
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.
"brevity is the soul of wit" - William Shakesman
AcrossFiveJulys
Profile Blog Joined September 2005
United States3612 Posts
May 03 2009 04:02 GMT
#6
lol good luck man. What year are you?
Tyrant
Profile Joined September 2003
Korea (South)234 Posts
May 03 2009 05:19 GMT
#7
I'd just draw a huge meaty manhood on the paper and hope that he's into dudes.
darktreb
Profile Joined May 2007
United States3016 Posts
May 03 2009 10:32 GMT
#8
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.
The_Australian
Profile Blog Joined December 2007
Australia458 Posts
May 03 2009 12:59 GMT
#9
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.
"Nothing should be unstoppable when you see it coming...." - Boxer
errol1001
Profile Joined April 2008
454 Posts
May 03 2009 13:00 GMT
#10
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..
EsX_Raptor
Profile Blog Joined February 2008
United States2801 Posts
May 03 2009 20:45 GMT
#11
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
Please log in or register to reply.
Live Events Refresh
Monday Night Weeklies
16:00
#20
SteadfastSC940
FunKaTv 527
ZombieGrub323
BRAT_OK 199
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SteadfastSC 940
FunKaTv 527
ZombieGrub323
BRAT_OK 199
MaxPax 192
StarCraft: Brood War
Calm 2466
Rain 1516
Mini 397
firebathero 150
Soulkey 23
soO 23
League of Legends
Grubby3922
JimRising 302
Counter-Strike
Stewie2K988
pashabiceps431
sgares249
Heroes of the Storm
Liquid`Hasu640
Other Games
FrodaN2054
fl0m1355
mouzStarbuck466
KnowMe274
ToD204
Pyrionflax170
Mew2King82
Trikslyr64
Sick43
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 22 non-featured ]
StarCraft 2
• kabyraGe 296
• LUISG 20
• LaughNgamezSOOP
• sooper7s
• AfreecaTV YouTube
• Migwel
• intothetv
• Kozan
• IndyKCrew
StarCraft: Brood War
• Azhi_Dahaki29
• 80smullet 18
• Eskiya23 9
• FirePhoenix8
• Pr0nogo 6
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• WagamamaTV379
League of Legends
• TFBlade1606
• masondota2750
Other Games
• imaqtpie1448
• Shiphtur313
Upcoming Events
Replay Cast
3h 50m
Wardi Open
14h 50m
PiGosaur Monday
1d 3h
The PondCast
1d 13h
Replay Cast
2 days
RSL Revival
2 days
WardiTV European League
2 days
Replay Cast
3 days
RSL Revival
3 days
WardiTV European League
3 days
[ Show More ]
FEL
3 days
Korean StarCraft League
4 days
CranKy Ducklings
4 days
RSL Revival
4 days
FEL
4 days
Sparkling Tuna Cup
5 days
RSL Revival
5 days
FEL
5 days
BSL: ProLeague
5 days
Dewalt vs Bonyth
Liquipedia Results

Completed

Proleague 2025-06-28
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
BSL Season 20
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025
YaLLa Compass Qatar 2025

Upcoming

CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.