
JavaScriptAvanzado-II
Quiz
•
Fun, Education
•
1st - 12th Grade
•
Practice Problem
•
Medium
Viviana Cruz
Used 10+ times
FREE Resource
Enhance your content in a minute
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué es un CLOSURE?
una funcion que retorna otra funcion
una funcion que retorna otra funcion y que usa una variable definida en el scope de la funcion que la retornó
una variable que dentro del scope de una funcion retornada por otra funcion
es un mito de JavaScript
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿En qué momento pasa una función que está en el event queue al execution stack?
cuando pasa una determinada cantidad de tiempo.
cuando el execution stack esta vacio.
no se puede predecir el momento.
cuando el servicio ecterno termina de ejecutar el callback.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿En qué orden van a salir los outputs?
setTimeOut(function() {
console.log('uno');
}, 1000);
setTimeOut(function() {
console.log('dos');
}, 1500);
setTimeOut(function() {
console.log('tres');
}, 0);
console.log('cuatro');
cuatro uno dos tres
uno dos tres cuatro
tres dos uno cuatro
cuatro tres uno dos
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
La diferencia entre 'call' y 'bind' es que:
Bind retorna una nueva funcion, call invoca la funcion
Call cambia el valor del this, y bind no
no hay diferencia
los argumentos que reciben
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
En JavaScript podemos controlar el valor del keyword this de manera arbitraria.
Verdadero
Falso
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
En el código siguiente, qué variable quedaría en un CLOSURE al invocar `makeAdder`?
function makeAdder(x) {
return function(y) {
return x + y;
}
}
var add5 = makeAdder(5);
var add10 = makeAdder(10);
y
no hay closure
x
x e y
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
La diferencia entre `call` y `apply` es:
los parametros que reciben
una retorna una funcion nueva y otraa la invoca
la forma en que cambian el this
no hay ninguna diferencia
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Con la función _____ podemos forzar el valor de la variable this.
console.log
bind
this
new
Similar Resources on Wayground
11 questions
Ideas principales
Quiz
•
12th Grade
6 questions
CNCO
Quiz
•
KG - 1st Grade
8 questions
QUIZZIZ 1.- LA ERA DIGITAL
Quiz
•
12th Grade
10 questions
Test Psicológico
Quiz
•
3rd - 5th Grade
12 questions
Texto expositivo....
Quiz
•
3rd Grade
10 questions
Salud Ocupacional
Quiz
•
10th - 11th Grade
10 questions
Sinónimos y antónimos
Quiz
•
2nd - 3rd Grade
11 questions
Repaso "Popol Vuh"
Quiz
•
11th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Fun
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
10 questions
Christmas Trivia for Kids
Quiz
•
5th Grade
10 questions
Christmas/Winter
Quiz
•
KG - 2nd Grade
57 questions
Holiday Trivia
Quiz
•
5th Grade
20 questions
Christmas Song Emojis
Quiz
•
8th Grade
12 questions
Holiday Fun
Quiz
•
3rd Grade
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
