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

Quiz

Python

No Name 35 perguntas

Fazer o quiz

Perguntas do quiz (35)

  1. 1which of the following is invalid
    1. A__str__=1
    2. Bnone of the mentioned
    3. C__a=1
    4. D_a=1
  2. 21. Is Python case sensitive when dealing with identifiers?
    1. Aa) yes
    2. Bb) no
    3. Cc) machine dependent
    4. Dd) none of the mentioned
  3. 32. What is the maximum possible length of an identifier?
    1. Aa) 31 characters
    2. Bb) 63 characters
    3. Cd) none of the mentioned
    4. Dc) 79 characters
  4. 44. Which of the following is an invalid variable?
    1. Aa) my_string_1
    2. Bb) 1st_string
    3. Cc) foo
    4. Dd) _
  5. 55. Why are local variable names beginning with an underscore discouraged?
    1. Aa) they are used to indicate a private variables of a class
    2. Bb) they confuse the interpreter
    3. Cc) they are used to indicate global variables
    4. Dd) they slow down execution
  6. 66. Which of the following is not a keyword?
    1. Aa) eval
    2. Bb) assert
    3. Cc) nonlocal
    4. Dd) pass
  7. 77. All keywords in Python are in
    1. Aa) lower case
    2. Bb) UPPER CASE
    3. Cc) Capitalized
    4. Dd) None of the mentioned
  8. 88. Which of the following is true for variable names in Python?
    1. Aa) unlimited length
    2. Bb) all private members must have leading and trailing underscores
    3. Cc) underscore and ampersand are the only two special characters allowed
    4. Dd) none of the mentioned
  9. 99. Which of the following is an invalid statement?
    1. Aa) abc = 1,000,000
    2. Bb) a b c = 1000 2000 3000
    3. Cc) a,b,c = 1000, 2000, 3000
    4. Dd) a_b_c = 1,000,000
  10. 1010. Which of the following cannot be a variable?
    1. Aa) __init__
    2. Bb) in
    3. Cc) it
    4. Dd) on

Informações

Descrição
Quiz sobre Python, criado por No Name em 28-12-2019.
Idioma
English
Visualizações
45
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?