GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

Python - Módulo 2

Cristina Sierra Segura 20 Fragen

Quiz starten

Fragen in diesem Quiz (20)

  1. 1An operator able to check whether two values are equal is coded as:
    1. A=
    2. B===
    3. C==
    4. D!=
  2. 2The value eventually assigned to x is equal to:
    x = 1
    x = x == x
    1. AFalse
    2. B1
    3. CTrue
    4. D0
  3. 3How many stars will the following snippet send to the console?
    i = 0
    while i <= 3 :
    i += 2
    print(“*”)
    1. Atwo
    2. Bthree
    3. Cone
    4. Dzero
  4. 4How many stars will the following snippet send to the console?
    i = 0
    while i <= 5 :
    i += 1
    if i % 2 == 0:
    break
    print(“*”)
    1. Azero
    2. Bone
    3. Ctwo
    4. Dthree
  5. 5How many hashes will the following snippet send to the console?
    for i in range(1):
    print(“#”)
    else:
    print(“#”)
    1. Aone
    2. Btwo
    3. Czero
    4. Dthree
  6. 6How many hashes will the following snippet send to the console?
    var = 0
    while var < 6:
    var += 1
    if var % 2 == 0:
    continue
    print(“#”)
    1. Atwo
    2. Bzero
    3. Cone
    4. Dthree
  7. 7How many hashes will the following snippet send to the console?
    var = 1
    while var < 10:
    print(“#”)
    var = var << 1
    1. Aeight
    2. Bone
    3. Cfour
    4. Dtwo
  8. 8What value will be assigned to the x variable?
    z = 10
    y = 0
    x = y < z and z > y or y > z and z < y
    1. A0
    2. B1
    3. CTrue
    4. DFalse
  9. 9What is the output of the following snippet?
    a = 1
    b = 0
    c = a & b
    d = a | b
    e = a ^ b
    print(c + d + e)
    1. A1
    2. B3
    3. C2
    4. D0
  10. 10What is the output of the following snippet?
    lst = [3, 1, -2]
    print(lst[lst[-1]])
    1. A1
    2. B-2
    3. C3
    4. D-1

Informationen

Beschreibung
Informática (Entornos de Desarrollo) Quiz am Python - Módulo 2, erstellt von Cristina Sierra Segura am 24/04/2019.
Sprache
Español
Aufrufe
19
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck