PCAP 31-03 Test Questions & Answers | 100 Questions with 100% Correct Answers | Updated & Verified | 40 Pages
What will be the value of the variable when the while e loop finishes its execution? i = 0 while i != 0: i = i-0 else: i = i+1 a. 1 b. 0 c. 2 d. the variable becomes unavailable - ANS - a. 1 And operator able to perform bitwise shifts is coded as (select 2 answers) a. -- b. ++ c. d. - ANS - c. and d. What will the value of the i variable be when the following loop finishes its execution? for i in range(10):
Información del documento
- Subido en
- 22 de febrero de 2023
- Número de páginas
- 40
- Escrito en
- 2022/2023
- Tipo
- Examen
- Contiene
- Preguntas y respuestas