Quiz Ch. 8

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

A standardized set of characters from many of the world's languages

Unicode

The ____ method returns the position number in a string of the first instance of the first character in the pattern argument. a. indexOf(pattern) b. search(pattern) c. charAt(pattern) d. slice(pattern)

[ ? ] a. indexOf(pattern) OR b. search(pattern)

The ____ method of the String class returns the position number in a string of the first character in the argument. a. search() b. charAt() c. substring() d. indexOf()

[ ? ] a. search() OR d. indexOf()

To manipulate arrays in your scripts, you use the methods and length property of the ____ class. a. Array b. Vector c. String d. Matrix

[ ? ] c. String OR a. Array

A pattern that matches the beginning or end of a line is called a(n) ____. a. anchor b. metastring c. metacharacter d. tail

a. anchor

You use ____ classes in regular expressions to treat multiple characters as a single item. a. character b. pattern c. expression d. metarule

a. character

The JavaScript String class includes the ____ method, which creates a new string by combining strings that are passed as arguments. a. concat() b. strcpy() c. strcat() d. strpst()

a. concat()

The ____ method adds one or more elements to the end of an array. a. pop() b. push() c. shift() d. unshift()

b. push()

To sort elements of an array alphabetically, you use the ____ method. a. list() b. sort() c. order() d. arrange()

b. sort()

Characters contained in a set of parentheses within a regular expression are referred to as a subexpression or ____. a. subrule b. subpattern c. substring d. subset

b. subpattern

To allow a string to contain an alternate set of substrings, you separate the strings in a regular expression pattern with the ____ metacharacter. a. / b. | c. $ d. &

b. |

The ____ method constructs a text string from Unicode character codes that are passed as arguments. a. fromStrCode() b. fromLangCode() c. fromCharCode() d. fromUniCode()

c. fromCharCode()

The ____ method removes and returns the first element from the beginning of an array. a. split() b. unshift() c. shift() d. slice()

c. shift()

You use the ____ method of the String class to split a string into an indexed array. a. shift() b. slice() c. split() d. toArray()

c. split()

To convert a JavaScript object to a JSON string, you use the ____ method.​ a. ​parse() b. convertToString() c. stringify() d. ​json()

c. stringify()

The ____ method converts a text string to lowercase. a. lowerCase() b. toMinCase() c. toLowerCase() d. toUpperCase()

c. toLowerCase()

The ____ method converts a text string to uppercase. a. toTitleCase() b. toHigherCase() c. toUpperCase() d. toMaxCase()

c. toUpperCase()

The ____ object contains methods and properties for working with regular expressions in JavaScript. a. StringExp b. Expression c. StrExp d. RegExp

d. RegExp

The String class ____ property returns the number of characters in a string. a. maxIndex b. elements c. size d. length

d. length

Regular expression patterns consist of literal characters and ____. a. metabytes b. metadata c. supercharacters d. metacharacters

d. metacharacters

The fromCharCode() method is called a ____ method because it is not used as a method of any string objects (which can be literal strings or variables) in your scripts. a. dynamic b. global c. local d. static

d. static

Compares strings according to the particular sort order of a language or country

localeCompare() method

Special character that defines pattern matching rules in a regular expression

metacharacter

Adds one or more elements to the end of an array

push()

Metacharacter that specifies the quantity of a match

quantifier

Text contained within double or single quotation marks

string

Separates alternate sets of substrings in a regular expression

|

Combines array elements into a string

​join()

Converts a JSON string value to an object

​parse()

Removes the last element from the end of an array

​pop()


Set pelajaran terkait

Azure 900 Quiz Questions From Udemy Course

View Set

Chapter 8 Lesson 1 (Solids, Liquids, and Gases) *Not finished*

View Set

Macroeconomics Test 2: Chapter 3.2

View Set

MKC1 Study Guide Flashcards Big Set

View Set

PSYC 100 Exam #1 Study Questions

View Set