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

Test

PCEP

Khudaija Siddiqui 6 preguntas

Hacer el test

Preguntas del test (6)

  1. 1What will be the value of the i variable once the loop has been executed?

    i = 0
    while i != 0:
    i = i - 1
    else:
    i = i + 1
    1. A0
    2. B1
    3. C2
    4. Dthe variable becomes unavailable
  2. 2An operator able to perform bitwise shifts is coded as (Select two answers)
    1. A--
    2. B++
    3. C<<
    4. D>>
  3. 3What will the value of the i variable be when the following loop finishes its execution?
    for i in range(10):
    pass
    1. A10
    2. Bthe variable becomes unavailable
    3. C11
    4. D9
  4. 4The following expression evaluates to:
    1+-2
    1. Aequal to 1
    2. Binvalid
    3. Cequal to 2
    4. Dequal to -1
  5. 5A compiler is a program designed to:
    1. Arearrange the source code to make it clearer
    2. Bcheck the source code in order to see if it's correct
    3. Cexecute the source code
    4. Dtranslate the source code into machine code
  6. 6What is the output of the following piece of code?

    a = 'ant'
    b = 'bat'
    c = 'camel'
    print(a,b,c, sep = '"')
    1. Aant' bat' camel
    2. Bant"bat" camel
    3. Cantbatcamel
    4. Dprint(a,b,c, sep='"')

Información

Descripción
2º de Bachillerato python Test sobre PCEP, creado por Khudaija Siddiqui el 31/10/2021.
Idioma
English
Visitas
0
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?