Choose the match for each given basic regular expression in question 1) to 3): 1) Java C (a) Java 2) '[^o]*¹ (b) C (a) twitter (b) amazon (c) javale (c) google (d) JAVA (d) great (e) Java C (e)None of above 3)" class{.*}' (a) class class class (b) class{ int a=0} (c) class a (d) class int a=0; 4) *a?[bc]** (e) None of abc

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Answer all subparts!!!

Choose the match for each given basic regular expression in question 1) to 3):
1) 'Java C'
(a) Java
2) '[^o]**
(a) twitter (b) amazon
(b) C
4) *a?[bc]**
(a) abc
(b) a?[bc]
6) '[^aeiou]{6}'
(a) peach
(a) are you OK?
(e) None of above
(c) javalc
(c) google
3) * class{.*}'
(a) class class class (b) class{ int a=0) (c) class a (d) class int a=0; (e) None of above
7) (+?[1-9][02468])0'
(a) +2
(b) 20
(d) JAVA
Choose match for each given extended regular expression in question 4) to 6):
5) [a-z\s]*you [?!.]' (hint: \s matches any space character)
(b)nice to meet you! (c) Hey...you!
(b) lychee
(d) great
(c) 2
(c) a? (d) a[bc (e)None of above
(e) Java C
(d) +0
(e)None of above
(c) papaya
(d) loquat
(d) eh ii love you.
(e) None of above
(e) None of above
Transcribed Image Text:Choose the match for each given basic regular expression in question 1) to 3): 1) 'Java C' (a) Java 2) '[^o]** (a) twitter (b) amazon (b) C 4) *a?[bc]** (a) abc (b) a?[bc] 6) '[^aeiou]{6}' (a) peach (a) are you OK? (e) None of above (c) javalc (c) google 3) * class{.*}' (a) class class class (b) class{ int a=0) (c) class a (d) class int a=0; (e) None of above 7) (+?[1-9][02468])0' (a) +2 (b) 20 (d) JAVA Choose match for each given extended regular expression in question 4) to 6): 5) [a-z\s]*you [?!.]' (hint: \s matches any space character) (b)nice to meet you! (c) Hey...you! (b) lychee (d) great (c) 2 (c) a? (d) a[bc (e)None of above (e) Java C (d) +0 (e)None of above (c) papaya (d) loquat (d) eh ii love you. (e) None of above (e) None of above
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Concept of pointer parameter
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education