RegEx 01

RegEx 01

University

20 Qs

quiz-placeholder

Similar activities

Name the Cartoon Network Shows

Name the Cartoon Network Shows

KG - University

20 Qs

Connective Tissues

Connective Tissues

University

15 Qs

general aptitude

general aptitude

University

20 Qs

Run with Aptitude

Run with Aptitude

University

15 Qs

FUNCTIONAL VS LOGIC

FUNCTIONAL VS LOGIC

University

15 Qs

python script

python script

University

16 Qs

Regular expression,RegExp object,metacharacters

Regular expression,RegExp object,metacharacters

University

20 Qs

FUNDAMENTALS Communication

FUNDAMENTALS Communication

University

16 Qs

RegEx 01

RegEx 01

Assessment

Quiz

Other

University

Easy

Created by

Mclyn Rinon

Used 3+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a lexer generator?

A tool for generating patterns

A tool for generating compilers

A tool for generating tokens

A tool for generating scanners

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a token in the context of lexical analysis?

A string of characters

A categorized block of text

A pattern for matching strings

A type of regular expression

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does a lexeme represent?

A rule describing string matches

An instance of a string that matches a pattern

A type of lexical analyzer

A category of tokens

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following describes a pattern?

A categorized block of text

A rule describing which strings match a given token

An instance of a string

A type of regular expression

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the regular expression [a-zA-Z_] match?

Any special character

Any digit

Any alphabetical character or underscore

Any whitespace character

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the metacharacter * signify in regular expressions?

Zero or more occurrences

No occurrences

One or more occurrences

Exactly one occurrence

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the expression (ab)+ match?

Any number of 'ab'

Only 'ab'

At least one 'ab'

None of the above

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?