Imperial Valley College Faculty Websites

You are here:Instructors»Robert Gallegos»Chapter 10 Homework
Monday, 16 April 2012 19:21

Chapter 10 Homework

Written by Robert Gallegos
Rate this item
(0 votes)

CIS 214           Chapter 10 Homework                                               Date Due: 04/23/2012

Student name: _____________________________________________________________

1.

Regular expressions are __________ used to match patterns in one or more strings.

Answer:

2.

Meta-characters let us describe patterns of text within a regular__________.

Answer:

3.

This meta-character looks for a digit. It will match any number from 0 to 9.

Answer:

4.

This meta-character looks for any alphanumeric character—in other words, either a letter or a number.

Answer:

5.

This meta-character looks for white space. This doesn’t mean just the space character you get on the screen when you hit the Space bar; \s also matches a tab character, or a newline or carriage return.

Answer:

6.

This meta-character looks for the beginning of a string, so you can use it to indicate that a match must happen at the start of a text string, rather than anywhere in the string.

Answer:

7.

The __________ meta-character, matches any one character, except a newline. It’ll match a letter or digit, just like \w, as well as a space or tab, like \s.

Answer:

8.

Looks for the end of a string. You can use this meta-character with ^ to bookend your match, specifying exactly where it will start and finish.

Answer:

9.

A __________ specifies how many times a metacharacter should appear.

Answer:

10.

A character __________ is a set of rules for matching a single character.

Answer:

11.

Standardizing your __________ gives you better SQL query results.

Answer:

12.

Validation is often a trade-off between what’s allowed and what is practical to__________.

Answer:

13.

PHP provides the __________ function for checking whether a domain is valid.

Answer:

Number of questions: 13

Number correct:________________________________     Percentage:_____________________

Grade:________________________________________