Languages Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What does a question mark denote when used in a regular expression?

A

The previous character does not have to be present

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the symbol to denote the OR bitwise operator in a regular expression?

A

|

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does the “-“ symbol represent in a regular expression?

A

A range of values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the purpose of a regular expression?

A

To determine whether a string is valid in a defined language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the syntax used when searching for an entire string in a regular expression?

A

Rounded brackets are used “()”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the syntax used when searching for individual characters?

A

Squared brackets “[]”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does the “+” symbol denote in a regular expression?

A

A wildcard. There must be one or more of the preceding element present

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does the “*” symbol denote in a regular expression?

A

A wildcard. There can be 0+ of the preceding element

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Why is reverse Polish notation used?

A

To make mathematical expressions easier for a computer to process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What type of tree traversal does reverse Polish notation use?

A

Post-order traversal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly