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

Quiz

PCEP

Khudaija Siddiqui 6 Fragen

Quiz starten

Fragen in diesem Quiz (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='"')

Informationen

Beschreibung
2º de Bachillerato python Quiz am PCEP, erstellt von Khudaija Siddiqui am 31/10/2021.
Sprache
English
Aufrufe
0
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck