Languages Flashcards
What does a question mark denote when used in a regular expression?
The previous character does not have to be present
What is the symbol to denote the OR bitwise operator in a regular expression?
|
What does the “-“ symbol represent in a regular expression?
A range of values
What is the purpose of a regular expression?
To determine whether a string is valid in a defined language
What is the syntax used when searching for an entire string in a regular expression?
Rounded brackets are used “()”
What is the syntax used when searching for individual characters?
Squared brackets “[]”
What does the “+” symbol denote in a regular expression?
A wildcard. There must be one or more of the preceding element present
What does the “*” symbol denote in a regular expression?
A wildcard. There can be 0+ of the preceding element
Why is reverse Polish notation used?
To make mathematical expressions easier for a computer to process
What type of tree traversal does reverse Polish notation use?
Post-order traversal