Exam 10: Exploring Arrays, loops, and Conditional Statements

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

Identify the letter of the choice that best matches the phrase or definition. -This method duplicates items within an array.

(Multiple Choice)
4.9/5
(36)

Identify the general structure of a for loop.

(Multiple Choice)
4.8/5
(33)

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

(True/False)
4.8/5
(36)

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.8/5
(41)

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
(30)

JavaScript supports logical operators that connect several expressions.

(True/False)
4.8/5
(37)

Identify the general syntax of the do/while loop.

(Multiple Choice)
4.7/5
(39)

_________ is a section of an array.

(Short Answer)
4.8/5
(34)

JavaScript allows for the creation of _________,in which some array values are undefined.

(Short Answer)
4.9/5
(35)

What is the output of the following code? Var sum = 0; Var x = [1,3,7,11]; X.forEach(sumArray); Function sumArray(value){ Sum += value; }

(Multiple Choice)
4.8/5
(35)

When a pass statement is encountered,control is passed to the statement immediately following it.

(True/False)
4.8/5
(35)

Explain the length property of an array with examples.

(Essay)
4.9/5
(34)

Arrays can be used to store information in a data structure known as a _________ in which new items are added to the top or to the end of the array.

(Short Answer)
4.8/5
(35)

Gregor, a software developer, is developing a calendar application. He has to use several if conditional statements to ensure that the calendar displays the exact number of days present in each month of each year. He creates a dayCount array to keep track of the number of days in each month. -Gregor wants to create a condition to ensure that all the years divisible by 4 should contain 29 days in February.Which of the following statements should he use?

(Multiple Choice)
4.8/5
(36)

Identify the general structure for accessing each value from an array using a for loop.

(Multiple Choice)
4.9/5
(46)

Identify the structure of an if statement

(Multiple Choice)
4.9/5
(32)

Identify the letter of the choice that best matches the phrase or definition. -This method removes the last item from an array.

(Multiple Choice)
4.8/5
(45)

Statement labels are used to identify statements in JavaScript code so that the statements can be referenced elsewhere in a program.

(True/False)
4.9/5
(42)

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.8/5
(33)

Identify a method that decreases array by keeping only those items that return a value of true from the callback function.

(Multiple Choice)
4.7/5
(42)
Showing 41 - 60 of 90
close modal

Filters

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