Exam 10: Exploring Arrays, loops, and Conditional Statements

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

Identify a method that is used to create a subarray.

Free
(Multiple Choice)
4.7/5
(37)
Correct Answer:
Verified

B

_________ is a number associated with each individual value in an array and distinguishes each value from other values in the array.

Free
(Short Answer)
4.8/5
(41)
Correct Answer:
Verified

​Index

A _________ is an operator that compares the value of one expression to another returning a Boolean value indicating whether the comparison is true or not.

Free
(Short Answer)
4.8/5
(42)
Correct Answer:
Verified

comparison operator​

Briefly explain the process of using arrays as data stacks.

(Essay)
4.9/5
(29)

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

(Multiple Choice)
4.9/5
(37)

What is the output of the following code? Var x = [4,7,11]; X.forEach(stepUp); Function stepUp(value,i,arr){ Arr[i] = value + 1; }

(Multiple Choice)
4.8/5
(39)

Identify the output of the following code. Var x = [3,45,1234,24]; X.sort();

(Multiple Choice)
4.8/5
(39)

Identify a method that inserts new items at the front of an array.

(Multiple Choice)
4.7/5
(35)

Which of the following methods creates a new array populated with the elements of array that return a value of true from the callback function?

(Multiple Choice)
4.8/5
(35)

Increasing the value of the length property adds more items to an array,but the items have null values until they are defined.

(True/False)
4.8/5
(43)

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

(Multiple Choice)
4.9/5
(37)

Describe the structure of the if else statement.

(Essay)
4.9/5
(37)

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

(Multiple Choice)
4.9/5
(37)

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

In an if loop,a variable known as a counter variable is used to track the number of times a block of commands is run.

(True/False)
4.8/5
(34)

The _____ operator tests whether two items are equal in value and have the same data type.

(Multiple Choice)
4.9/5
(29)

Identify the letter of the choice that best matches the phrase or definition. -This method links all items in the array into a single text string.

(Multiple Choice)
5.0/5
(32)

Identify the expression used to reference array values.

(Multiple Choice)
4.8/5
(34)

Which of the following functions increases the value of each item in an array by 1?

(Multiple Choice)
4.9/5
(30)

The _____ loop tests the condition to continue the loop right after the latest command block is run.

(Multiple Choice)
4.9/5
(37)
Showing 1 - 20 of 90
close modal

Filters

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