Test
Functions
Este test tiene tipos de pregunta que se abren en el reproductor de siempre.
Preguntas del test (5)
1Functions help make our programs more modular and let us reuse a block of code as many times as we need.
- AVerdadero
- BFalso
2In the following code we are both defining and then calling a function. What does `a` represent in this example?
function findSum(a, b) {
return a + b;
}
var sum = findSum(5, 8);
console.log(sum);- Aa parameter
- Ban argument
- Cthe returned value
- Dthe function name
3In the following code we are both defining and then calling a function. What does `8` represent in this example?
function findSum(a, b) {
return a + b;
}
var sum = findSum(5, 8);
console.log(sum);- Aa parameter
- Ban argument
- Cthe returned value
- Dthe function name
4The [blank_start]output[blank_end] of a function is often called a return value. If no value is explicitly provided the function defaults to returning [blank_start]undefined[blank_end].
- Aoutput
- Binput
- Cundefined
- Dnull
5The body of the function is the block of code contained in the curly braces. It may contain any of the following:
- AConditionals
- BLoops
- CVariables
- DOther functions
Información
- Descripción
- Test sobre Functions, creado por Code Ramp el 19/04/2018.
- Autor
- Code Ramp
- Idioma
- English
- Visitas
- 342
- Etiquetas
- Valoración
- Aún sin valoraciones Valora este test