Exam 3: Manipulating Strings

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Characters contained in a set of parentheses within a regular expression are referred to as a subexpression or ____________________.

(Short Answer)
4.8/5
(38)

Regular expressions consist of literal characters and ____________________, which are special characters that define the pattern matching rules in an expression.

(Short Answer)
4.8/5
(33)

____ quantifiers allow you to more precisely specify the number of times a character must repeat sequentially.

(Multiple Choice)
4.8/5
(37)

The strcasecmp() function and the strcmp() function respectively perform a case-insensitive and case-sensitive comparison of strings.

(True/False)
4.8/5
(31)

The ____ quantifier specifies that zero or more of the preceding characters can match.

(Multiple Choice)
4.7/5
(32)

Using a ____________________ escape sequence at the end of an echo statement makes XHTML code easier to debug and read.

(Short Answer)
4.8/5
(25)

The strcmp() function performs a ____ comparison of two strings.

(Multiple Choice)
4.8/5
(29)

The circumflex character (^) used in a character class specifies ____________________ characters to exclude in a pattern match.

(Short Answer)
5.0/5
(34)

The ____ metacharacter is used to specify a range of values in a character class.

(Multiple Choice)
5.0/5
(28)

The explode() function splits a string into an indexed array at a specified separator.

(True/False)
4.8/5
(34)

The ____________________ functions do not modify the contents of an existing string; instead they return a new string, which is assigned to a variable.

(Short Answer)
4.8/5
(26)

ASCII values range from ____________________.

(Short Answer)
4.9/5
(39)

The metacharacter (.) matches any single character.

(True/False)
4.8/5
(37)

In PHP, the escape character is the ____________________.

(Short Answer)
4.9/5
(45)

____________________ syntax allows you to use the value of a variable inside a text string enclosed by double quotation marks.

(Short Answer)
4.8/5
(45)

The function substr_count() returns the total number of characters in a string.

(True/False)
4.8/5
(38)

The strchr() function or strrchr() function return a substring from the specified characters to the end of the string.

(True/False)
4.9/5
(34)

The ____________________ quantifier specifies that one or more sequential occurrences of the preceding characters match.

(Short Answer)
4.9/5
(40)

____ are special characters that define the pattern matching rules in a regular expression.

(Multiple Choice)
4.7/5
(27)

The escape sequence \\ inserts a(n) ____.

(Multiple Choice)
4.9/5
(34)
Showing 61 - 80 of 83
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)