• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 06:41
CET 12:41
KST 20:41
  • 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
RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
BGE Stara Zagora 2026 announced10[BSL21] Ro.16 Group Stage (C->B->A->D)4Weekly Cups (Nov 17-23): Solar, MaxPax, Clem win3RSL Season 3: RO16 results & RO8 bracket13Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge2
StarCraft 2
General
BGE Stara Zagora 2026 announced SC: Evo Complete - Ranked Ladder OPEN ALPHA When will we find out if there are more tournament Weekly Cups (Nov 17-23): Solar, MaxPax, Clem win Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge
Tourneys
RSL Revival: Season 3 Constellation Cup - Main Event - Stellar Fest Tenacious Turtle Tussle [Alpha Pro Series] Nice vs Cure $5,000+ WardiTV 2025 Championship
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 501 Price of Progress Mutation # 500 Fright night Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death
Brood War
General
BW General Discussion Which season is the best in ASL? A cwal.gg Extension - Easily keep track of anyone soO on: FanTaSy's Potential Return to StarCraft BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[Megathread] Daily Proleagues [BSL21] RO16 Group B - Sunday 21:00 CET [BSL21] RO16 Group C - Saturday 21:00 CET Small VOD Thread 2.0
Strategy
Game Theory for Starcraft How to stay on top of macro? Current Meta PvZ map balance
Other Games
General Games
Nintendo Switch Thread The Perfect Game Stormgate/Frost Giant Megathread Beyond All Reason Should offensive tower rushing be viable in RTS games?
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
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas TL Mafia Community Thread
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread The Big Programming Thread Things Aren’t Peaceful in Palestine Artificial Intelligence Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Where to ask questions and add stream? The Automated Ban List
Blogs
Esports Earnings: Bigger Pri…
TrAiDoS
Thanks for the RSL
Hildegard
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1905 users

Teacher "Ambiguity"

Blogs > EsX_Raptor
Post a Reply
EsX_Raptor
Profile Blog Joined February 2008
United States2802 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 States3702 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 States2802 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 States3017 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 States2802 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
Next event in 20m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SortOf 261
MindelVK 46
Rex 10
StarCraft: Brood War
Britney 50407
Rain 2008
Horang2 1395
Mini 525
BeSt 479
Hyuk 403
Larva 390
firebathero 360
Stork 355
Last 215
[ Show more ]
Rush 195
ZerO 191
Pusan 127
Zeus 126
Hyun 104
Soulkey 89
hero 67
sorry 59
Barracks 55
ggaemo 52
Sharp 43
Backho 40
Mong 33
Shine 32
Noble 13
IntoTheRainbow 10
scan(afreeca) 7
Dota 2
qojqva2630
XcaliburYe616
NeuroSwarm97
League of Legends
JimRising 421
Counter-Strike
byalli6536
zeus850
oskar98
edward74
Heroes of the Storm
Khaldor200
Other Games
summit1g14482
B2W.Neo484
Fuzer 253
Mew2King210
nookyyy 63
ArmadaUGS61
ZerO(Twitch)13
Organizations
Dota 2
PGL Dota 2 - Main Stream417
StarCraft: Brood War
lovetv 11
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• LUISG 50
• Adnapsc2 7
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• lizZardDota2165
• WagamamaTV15
Upcoming Events
WardiTV Korean Royale
20m
ByuN vs Cure
TBD vs NightMare
TBD vs Classic
TBD vs Solar
Zoun vs Creator
OSC
5h 20m
Sparkling Tuna Cup
22h 20m
WardiTV Korean Royale
1d
TBD vs SHIN
TBD vs Reynor
TBD vs herO
Replay Cast
1d 12h
Wardi Open
2 days
Monday Night Weeklies
2 days
StarCraft2.fi
2 days
Replay Cast
2 days
Wardi Open
3 days
[ Show More ]
StarCraft2.fi
3 days
PiGosaur Monday
3 days
Wardi Open
4 days
StarCraft2.fi
4 days
Replay Cast
4 days
The PondCast
4 days
Replay Cast
5 days
Korean StarCraft League
6 days
CranKy Ducklings
6 days
Liquipedia Results

Completed

SOOP Univ League 2025
RSL Revival: Season 3
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
CSCL: Masked Kings S3
Slon Tour Season 2
META Madness #9
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
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.