Web Programming Final Test Questions and Answers
Web Programming Final Test Questions and Answers By default, items are placed in an array either in the order in which they are defined or explicitly by index number. a) true b) false - ANSWER true The slice() method reverses the order of items in an array, making the last items first and the first items last. a) true b) false - ANSWER false 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. a) true b) false - ANSWER false A command block is indicated by its opening and closing square brackets [ ]. a) true b) false - ANSWER false The _____ operator tests whether two items are equal in value and have the same data type. a) = = b) = = = c) = d) != - ANSWER = = = Which of the following examples tests whether x is equal to 5 or y is equal to 8? a) (x === 5) && (y === 8) b) (x === 5) : (y === 8) Web Programming Final Test Questions and Answers c) (x === 5) || (y === 8) d) (x === 5) / (y === 8) - ANSWER c) (x === 5) || (y === 8) What is the output of the following code? var x = [4, 7, 11]; Each(stepUp); function stepUp(value, i, arr) { arr[i] = value + 1; } a) 4, 7, 11 b) 3, 7, 11 c) 5, 8, 12 d) 8, 14, 22 - ANSWER c) 5, 8, 12 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? a) (callback [, thisArg]) b) r(callback [, thisArg]) c) (callback [, thisArg]) d) (callback [, thisArg]) - ANSWER b) r(callback [, thisArg]) Identify a true statement of (callback [, thisArg]) method. a) It tests whether the condition returned by the callback function holds for at least one item in array. b) It returns the value of the first element in the array that passes a test in the callback function. c) It tests whether the condition returned by the callback function holds for all items in array. d) It returns the index of the first element in the array that passes a test in the callback function. - ANSWER a) It tests whether the condition returned by the callback function holds for at least one item in array. Web Programming Final Test Questions and Answers Identify a true statement of (callback [, thisArg]) method. a) It tests whether the condition returned by the callback function holds for at least one item in array. b) It returns the value of the first element in the array that passes a test in the callback function. c) It tests whether the condition returned by the callback function holds for all items in array. d) It returns the index of the first element in the array that passes a test in the callback function. - ANSWER b) It returns the value of the first element in the array that passes a test in the callback function. Which of the following statements is used to terminate any program loop or conditional statement? a) for b) while c) pass d) break - ANSWER d) break Identify the syntax of the statement label. a) label = {statements} b) statement!(label) c) label: statements d) - ANSWER c) label: statements
Escuela, estudio y materia
- Institución
- Web Programming
- Grado
- Web Programming
Información del documento
- Subido en
- 26 de febrero de 2024
- Número de páginas
- 30
- Escrito en
- 2023/2024
- Tipo
- Examen
- Contiene
- Preguntas y respuestas
Temas
-
web programming
-
web programming final test
-
web programming final test questions
-
web programming final test questions and answers
Documento también disponible en un lote