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

Quiz

Sem título

Jessica Braganza 10 perguntas

Fazer o quiz

Perguntas do quiz (10)

  1. 1What is the output of the following code?
    valueOne = 5 ** 2
    valueTwo = 5 ** 3

    print(valueOne)
    print(valueTwo)
    1. A10
      15
    2. B25
      125
    3. CError : Invalid Syntax
  2. 2What is the output of the following code?
    str = "pynative"
    print (str[1:3])
    1. Apy
    2. Byn
    3. Cpyn
    4. Dyna
  3. 3What is the output of the following code?
    p, q, r = 10, 20 ,30
    print(p, q, r)
    1. A10 20
    2. B10 20 30
    3. CError: invalid syntax
  4. 4What is the output of the following code?
    var = "James" * 2 * 3
    print(var)
    1. AJamesJamesJamesJamesJamesJames
    2. BJamesJamesJamesJamesJames
    3. CError: invalid syntax
  5. 5What is the output of the following code ?
    var= "James Bond"
    print(var[2::-1])
    1. AJam
    2. Bdno
    3. CmaJ
    4. DdnoB semaJ
  6. 6var1 = 1
    var2 = 2
    var3 = "3"

    print(var + var2 + var3)
    1. A6
    2. B33
    3. C123
    4. DError. Mixing operators between numbers and strings are not supported
  7. 7What is the data type of print(type(10))
    1. AFloat
    2. Bint
    3. Cstr
    4. DNone of the above
  8. 8What is the datatype of the following ?
    a = (1, 'John', 1+3j)
    print(type(a[2:3]))
    1. AList
    2. BComplex
    3. CTuple
    4. DNone of the above
  9. 9Select all the valid String creation in Python
    1. Astr1 = “str1”
    2. Bstr1 = ‘str1’
    3. Cstr1 = ”’str1”’
    4. Dstr1 = string
  10. 10What is the output of print(10 - 4 * 2)
    1. A2
    2. B12

Informações

Descrição
Quiz sobre Sem título, criado por Jessica Braganza em 24-01-2021.
Idioma
English
Visualizações
2
Etiquetas
basic
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?