Quiz
PCEP
Crie uma conta grátis para terminar este quiz
Salve seu progresso e veja sua nota final.
Já tem uma conta? Inicie sessão
Perguntas do 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='"')
Informações
- Descrição
- 2º de Bachillerato python Quiz sobre PCEP, criado por Khudaija Siddiqui em 31-10-2021.
- Autor
- Khudaija Siddiqui
- Idioma
- English
- Visualizações
- 0
- Etiquetas
- Avaliação
- Ainda sem avaliações Avalie este quiz