¡GoConqr estrena diseño! Cuéntanos qué te parece.

Test

Multiple Choice Questions

Aparna Dhirde 10 preguntas

Hacer el test

Preguntas del test (10)

  1. 1A loop that never ends is called a:
    1. AContinue loop
    2. BInfinite loop
    3. CCircle loop
    4. DNone of these
  2. 2Which of the following loop will continue infinitely?
    1. Awhile O:
    2. Bwhile 1:
    3. Cwhile :1:
    4. Dwhile False:
  3. 3We can go back to the start of the loop by using __________
    1. Aloop
    2. Bback
    3. Cstart
    4. Dcontinue
  4. 4The two types of loops used in Python are:
    1. Afor
    2. Bwhile
    3. Cdo while
    4. DBoth for & while
  5. 5Which of the following is a valid for loop in Python?.
    1. Afor(i=0; i < n; i++)
    2. Bfor i in range(0,5):
    3. Cfor i in range(0,5)
    4. Dfor i in range(5)
  6. 6Which of the following sequences would be generated by the given line of code? range (5,0,-2)
    1. A5 4 3 2 1 0 -1
    2. B5 4 3 2 1 0
    3. C5 3 1
    4. DNone of the above
  7. 7When does the else statement written after loop executes?.
    1. AWhen break statement is executed in the loop
    2. BWhen loop condition becomes false
    3. CElse statement is always executed
    4. DNone of the above
  8. 8for loop in python are work on
    1. Arange
    2. Biteration
    3. CBoth of the above
    4. DNone of the above
  9. 9For loop in python is……..
    1. AEntry control loop
    2. BExit control loop
    3. CSimple loop
    4. DNone of the above
  10. 10To break the infinite loop , which keyword we use ?
    1. Acontinue
    2. Bbreak
    3. Cexit
    4. DNone of the above

Información

Descripción
Test sobre Multiple Choice Questions, creado por Aparna Dhirde el 13/03/2020.
Idioma
English
Visitas
64
Etiquetas
xi
Valoración
Aún sin valoraciones
Valora este test
Valora este test

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?