• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 02:30
CEST 08:30
KST 15:30
  • 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
[ASL20] Ro24 Preview Pt1: Runway112v2 & SC: Evo Complete: Weekend Double Feature3Team Liquid Map Contest #21 - Presented by Monster Energy9uThermal's 2v2 Tour: $15,000 Main Event18Serral wins EWC 202549
Community News
Weekly Cups (Aug 11-17): MaxPax triples again!10Weekly Cups (Aug 4-10): MaxPax wins a triple6SC2's Safe House 2 - October 18 & 195Weekly Cups (Jul 28-Aug 3): herO doubles up6LiuLi Cup - August 2025 Tournaments7
StarCraft 2
General
Maestros of the Game RSL Revival patreon money discussion thread 2v2 & SC: Evo Complete: Weekend Double Feature Playing 1v1 for Cash? (Read before comment) Weekly Cups (Aug 11-17): MaxPax triples again!
Tourneys
$5,100+ SEL Season 2 Championship (SC: Evo) Sparkling Tuna Cup - Weekly Open Tournament RSL: Revival, a new crowdfunded tournament series LiuLi Cup - August 2025 Tournaments SEL Masters #5 - Korea vs Russia (SC Evo)
Strategy
Custom Maps
External Content
Mutation # 487 Think Fast Mutation # 486 Watch the Skies Mutation # 485 Death from Below Mutation # 484 Magnetic Pull
Brood War
General
Flash Announces (and Retracts) Hiatus From ASL BW General Discussion ASL 20 HYPE VIDEO! New season has just come in ladder [ASL20] Ro24 Preview Pt1: Runway
Tourneys
[ASL20] Ro24 Group C [ASL20] Ro24 Group B [Megathread] Daily Proleagues [ASL20] Ro24 Group A
Strategy
Simple Questions, Simple Answers Fighting Spirit mining rates [G] Mineral Boosting Muta micro map competition
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Total Annihilation Server - TAForever Beyond All Reason [MMORPG] Tree of Savior (Successor of Ragnarok)
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
Russo-Ukrainian War Thread US Politics Mega-thread Things Aren’t Peaceful in Palestine European Politico-economics QA Mega-thread The Games Industry And ATVI
Fan Clubs
INnoVation Fan Club SKT1 Classic Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2026 Football Thread TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion
World Cup 2022
Tech Support
Gtx660 graphics card replacement Installation of Windows 10 suck at "just a moment" Computer Build, Upgrade & Buying Resource Thread
TL Community
TeamLiquid Team Shirt On Sale The Automated Ban List
Blogs
The Biochemical Cost of Gami…
TrAiDoS
[Girl blog} My fema…
artosisisthebest
Sharpening the Filtration…
frozenclaw
ASL S20 English Commentary…
namkraft
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1830 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 States3701 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
PiGosaur Monday
00:00
#45
davetesta14
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft: Brood War
Horang2 9142
Sea 3356
ggaemo 1633
Tasteless 307
TY 198
PianO 166
Leta 163
Backho 90
Bale 57
Movie 49
[ Show more ]
Shine 41
Noble 14
yabsab 4
ivOry 1
League of Legends
febbydoto2
Counter-Strike
Stewie2K797
Super Smash Bros
Mew2King145
Other Games
summit1g7878
C9.Mang0419
Trikslyr26
Organizations
Other Games
gamesdonequick934
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• Berry_CruncH397
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Rush1977
• Stunt644
Counter-Strike
• Shiphtur349
Upcoming Events
Afreeca Starleague
3h 30m
Mini vs TBD
Soma vs sSak
WardiTV Summer Champion…
4h 30m
Clem vs goblin
ByuN vs SHIN
Online Event
17h 30m
The PondCast
1d 3h
WardiTV Summer Champion…
1d 4h
Zoun vs Bunny
herO vs Solar
Replay Cast
1d 17h
LiuLi Cup
2 days
BSL Team Wars
2 days
Team Hawk vs Team Dewalt
Korean StarCraft League
2 days
CranKy Ducklings
3 days
[ Show More ]
SC Evo League
3 days
WardiTV Summer Champion…
3 days
Classic vs Percival
Spirit vs NightMare
[BSL 2025] Weekly
3 days
Sparkling Tuna Cup
4 days
SC Evo League
4 days
BSL Team Wars
4 days
Team Bonyth vs Team Sziky
Afreeca Starleague
5 days
Queen vs HyuN
EffOrt vs Calm
Wardi Open
5 days
Replay Cast
5 days
Afreeca Starleague
6 days
Rush vs TBD
Jaedong vs Mong
Liquipedia Results

Completed

Jiahua Invitational
uThermal 2v2 Main Event
HCC Europe

Ongoing

Copa Latinoamericana 4
BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Qualifiers
ASL Season 20
CSL Season 18: Qualifier 1
SEL Season 2 Championship
WardiTV Summer 2025
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025

Upcoming

CSLAN 3
CSL 2025 AUTUMN (S18)
LASL Season 20
BSL Season 21
BSL 21 Team A
Chzzk MurlocKing SC1 vs SC2 Cup #2
RSL Revival: Season 2
Maestros of the Game
EC S1
PGL Masters Bucharest 2025
MESA Nomadic Masters Fall
Thunderpick World Champ.
CS Asia Championships 2025
Roobet Cup 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
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.