Test
For...Next Loops
Este test tiene tipos de pregunta que se abren en el reproductor de siempre.
Preguntas del test (9)
1The pair of statements [blank_start]For[blank_end] and [blank_start]Next[blank_end] cause the statements between them to be repeated a specified number of times.
- AFor
- BNext
2The [blank_start]For[blank_end] statement designates a numerical variable, called the [blank_start]control variable[blank_end], that is initialized and then automatically changes after each execution of the loop. Also the [blank_start]For[blank_end] statement gives the [blank_start]range of values[blank_end] the variable will assume.
- AFor
- Bcontrol variable
- CFor
- Drange of values
3The [blank_start]Next[blank_end] statement [blank_start]increments[blank_end] the control variable.
- ANext
- Bincrements
4[blank_start]For[blank_end] and [blank_start]Next[blank_end] statements must be paired.
- AFor
- BNext
5The [blank_start]Next[blank_end] statement continues to [blank_start]increment[blank_end] the control variable and check the new value to see it [blank_start]exceeds the terminating value[blank_end]. If not, the entire process is repeated until the value of the control variable [blank_start]exceeds[blank_end] the value of the terminating value.
- ANext
- Bincrement
- Cexceeds the terminating value
- Dexceeds
6Unless specified otherwise, the control variable is increased by [blank_start]1[blank_end]; in other words, in a [blank_start]For[blank_end] statement if the Step value is omitted, the Step's default value is 1.
- A1
- BFor
7If a negative step value is used and the initial value is greater than the terminating value, then the control value is [blank_start]decreased[blank_end] until reaching the terminating value. In other words, the loop counts backward or downward.
- Adecreased
8A [blank_start]For...Next[blank_end] loop can contain another [blank_start]For...Next[blank_end] loop - a [blank_start]nested loop[blank_end]. The inside loop must be completely contained inside the first loop and must have a different control variable.
- AFor...Next
- BFor...Next
- Cnested loop
9When the number of times a loop should run is known in advance, we should use the [blank_start]For...Next[blank_end] loop.
- AFor...Next
Información
- Descripción
- Information Technology Test sobre For...Next Loops, creado por jessica cardoso el 18/05/2017.
- Autor
- jessica cardoso
- Idioma
- English
- Visitas
- 1
- Etiquetas
- Valoración
- Aún sin valoraciones Valora este test