Quiz
PCEP
Erstelle ein kostenloses Konto, um dieses Quiz zu beenden
Speichere deinen Fortschritt und sieh dir dein Endergebnis an.
oder mit deiner E-Mail registrieren
Schon ein Konto? Anmelden
Fragen in diesem Quiz (6)
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- A0
- B1
- C2
- Dthe variable becomes unavailable
2An operator able to perform bitwise shifts is coded as (Select two answers)
- A--
- B++
- C<<
- D>>
3What will the value of the i variable be when the following loop finishes its execution?
for i in range(10):
pass- A10
- Bthe variable becomes unavailable
- C11
- D9
4The following expression evaluates to:
1+-2- Aequal to 1
- Binvalid
- Cequal to 2
- Dequal to -1
5A compiler is a program designed to:
- Arearrange the source code to make it clearer
- Bcheck the source code in order to see if it's correct
- Cexecute the source code
- Dtranslate the source code into machine code
6What is the output of the following piece of code?
a = 'ant'
b = 'bat'
c = 'camel'
print(a,b,c, sep = '"')- Aant' bat' camel
- Bant"bat" camel
- Cantbatcamel
- Dprint(a,b,c, sep='"')
Informationen
- Beschreibung
- 2º de Bachillerato python Quiz am PCEP, erstellt von Khudaija Siddiqui am 31/10/2021.
- Autor
- Khudaija Siddiqui
- Sprache
- English
- Aufrufe
- 0
- Schlagwörter
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz