Gradiance Online Accelerated Learning 3
Gradiance Online Accelerated Learning 3
Pavan Kumar
Home Page
Assignments Due
Progress Report
Handouts
Tutorials
Homeworks
Submission number:
Submission certificate:
Submission time:
20352
DF539663
2015-08-24 12:23:41 PST (GMT - 8:00)
Lab Projects
Log Out
Help
Number of questions:
Positive points per question:
Negative points per question:
Your score:
4
3.0
1.0
12
1/3
8/25/2015
http://www.newgradiance.com/casu/servlet/COTC
Write a regular expression for real numbers in the form described above.
There are several options, of course. Identify from the list below, one of the
possible regular expressions that denotes all these real numbers and nothing
else.
a) -?[0-9][0-9]*.[0-9]*((E|e)-?[0-9][0-9]*)?
b) [-]?[0-9]+.[0-9]+([Ee][-]?[0-9]+)?
c) -?[0-9]+.[0-9]*[Ee]-?[0-9]+
d) -?[0-9][0-9]*.[0-9]*((E|e)-[0-9][0-9]*)?
2/3
8/25/2015
Answer submitted: a)
4.Identify from the list below the regular expression that generates all and only
the strings over alphabet {0,1} that end in 1.
a) (0*1*)+1
b) (0+1)*1+1
c) (0*+1)*
d) (0+1)*10*
Answer submitted: a)
http://www.newgradiance.com/casu/servlet/COTC
3/3