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
(79)
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
(97)
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.9/5
(80)
Correct Answer:
Verified

comparison operator​

Briefly explain the process of using arrays as data stacks.

(Essay)
4.9/5
(77)

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

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

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

(Multiple Choice)
4.8/5
(79)

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

(Multiple Choice)
4.7/5
(76)

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

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

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

(Multiple Choice)
4.9/5
(91)

Describe the structure of the if else statement.

(Essay)
4.9/5
(77)

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

(Multiple Choice)
5.0/5
(62)

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.9/5
(85)

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.9/5
(69)

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

(Multiple Choice)
4.9/5
(63)

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

Identify the expression used to reference array values.

(Multiple Choice)
4.8/5
(76)

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

(Multiple Choice)
4.9/5
(74)

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

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

Filters

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