Quiz
PCEP
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this 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='"')
Information
- Description
- 2º de Bachillerato python Quiz on PCEP, created by Khudaija Siddiqui on 31/10/2021.
- Author
- Khudaija Siddiqui
- Language
- English
- Views
- 0
- Tags
- Rating
- No ratings yet Rate this quiz