Exam 10: Exploring Arrays Loops and Conditional Statements Tutorial

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

Identify the expression used to reference array values.

(Multiple Choice)
4.9/5
(40)

What is the output of the following code? var scores = [92, 68, 83, 95, 91, 65, 77]; var highScores = scores.filter(gradeA); function gradeA(value) { return value > 90; }

(Multiple Choice)
4.8/5
(29)

The _____ method creates a new array by passing the original array items to the callback function, which returns the equivalent value of the array items.

(Multiple Choice)
4.9/5
(38)

The getDate() method in a calendar app returns an integer ranging from 0 (Sunday) to 6 (Saturday).

(True/False)
4.7/5
(36)

Identify a method that is used to create a subarray.

(Multiple Choice)
4.8/5
(27)

Index values start with 1 so that the initial item in an array has an index value of 1, the second item has an index value of 2, and so on.

(True/False)
4.7/5
(38)

The map(callback [, thisArg]) method returns the index of the first element in the array that passes a test in the callback function.

(True/False)
4.7/5
(41)

Identify the syntax of the statement label.

(Multiple Choice)
4.8/5
(31)

Describe the structure of the if else statement.

(Essay)
4.8/5
(34)

Identify a compare function that sorts numeric values in ascending order.

(Multiple Choice)
4.8/5
(39)

Identify a true statement of array .some( callback [, thisArg ]) method.

(Multiple Choice)
4.8/5
(40)

The every(callback [, thisArg]) array method applies the callback function to each item in an array.

(True/False)
4.9/5
(37)

A calendar that is created as a web table can have class and ID designations to make it easy for page developers to assign different styles to different parts of the calendar.

(True/False)
4.8/5
(44)

By default, items are placed in an array either in the order in which they are defined or explicitly by index number.

(True/False)
4.8/5
(31)

Identify a method that extracts array items that match a specified condition.

(Multiple Choice)
4.9/5
(26)

The break statement runs a command or a command block only if the conditional expression returns the value true ; it does nothing if the condition is false.

(True/False)
4.8/5
(36)

Which of the following determines the current size of an array?

(Multiple Choice)
4.8/5
(34)

Which of the following values will the expression 15 % 4 return?

(Multiple Choice)
4.9/5
(29)

Identify a method that tests whether the condition returned by the callback function holds for all items in an array .

(Multiple Choice)
4.9/5
(44)

The slice() method reverses the order of items in an array, making the last items first and the first items last.

(True/False)
4.8/5
(43)
Showing 41 - 60 of 73
close modal

Filters

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