O GoConqr está de visual novo! Conte para nós o que você achou.

Quiz

Python II

Vit C 40 perguntas

Fazer o quiz

Este quiz tem tempo limite, por isso abre no player de sempre.

Perguntas do quiz (40)

  1. 1Frage 1
    What will be the value of the i variable when the while loop finishes its execution?
    i = 0
    while i != 0:
    i = i - 1
    else:
    i = i + 1
    1. A1
    2. B0
    3. C2
    4. Dthe variable becomes unavailable
  2. 2Frage 2
    Operator able to perform bitwise shifts is coded as (Choose two.)
    1. A--
    2. B++
    3. C<<
    4. D>>
  3. 3Frage 3
    What 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. 4 Frage 4
    The following expression
    1+-2
    is:
    1. Aequal to 1
    2. Binvalid
    3. Cequal to 2
    4. Dequal to -1
  5. 5 Frage 5
    A compiler is a program designed to (Choose two.)
    1. Arearrange the source code to make it clearer
    2. Bcheck the source code in order to see of it's correct
    3. Cexecute the source code
    4. Dtranslate the source code into machine code
  6. 6 Frage 6
    What 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= '"')
  7. 7Frage 7
    What is the expected output of the following snippet?
    i = 5
    while i > 0:
    i = i // 2
    if i % 2 = 0:
    break
    else:
    i += 1
    print(i)
    1. Athe code is erroneous
    2. B3
    3. C7
    4. D15
  8. 8 Frage 8
    How many lines does the following snippet output?
    for i in range(1, 3):
    print("*", end="")
    else:
    print("*")
    1. Athree
    2. Bone
    3. Ctwo
    4. Dfour
  9. 9Frage 9
    Which of the following literals reflect the value given as 34.23? (Choose two.)
    1. A.3423e2
    2. B3423e-2
    3. C.3423e-2
    4. D3423e2
  10. 10 Frage 10
    What is the expected output of the following snippet?
    a = 2
    if a > 0:
    a += 1
    else:
    a -= 1
    print(a)

    1. A3
    2. B1
    3. C2
    4. Dthe code is erroneous

Informações

Descrição
Quiz sobre Python II, criado por Vit C em 10-09-2024.
Autor
Vit C
Idioma
English
Visualizações
0
Avaliação
Ainda sem avaliações
Avalie este quiz
Avalie este quiz

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?