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

Quiz

phyton

Меруерт Бекен 102 perguntas

Fazer o quiz

Perguntas do quiz (102)

  1. 1This set of Python Multiple Choice Questions & Answers (MCQs) focuses on “Variable Names”.
    1. Aa) yes
    2. Bb) no
    3. Cc) machine dependent
    4. Dd) none of the mentioned
  2. 2What is the maximum possible length of an identifier?
    1. Aa) 31 characters
    2. Bb) 63 characters
    3. Cc) 79 characters
    4. Dd) none of the mentioned
  3. 3Which of the following is invalid?
    1. Aa) _a = 1
    2. Bb) __a = 1
    3. Cc) __str__ = 1
    4. Dd) none of the mentioned
  4. 4Which of the following is an invalid variable?
    1. Aa) my_string_1
    2. Bb) 1st_string
    3. Cc) foo
    4. Dd) _
  5. 5Why 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. 6Which of the following is not a keyword?
    1. Aa) eval
    2. Bb) assert
    3. Cc) nonlocal
    4. Dd) pass
  7. 7All keywords in Python are in _________
    1. Aa) lower case
    2. Bb) UPPER CASE
    3. Cc) Capitalized
    4. Dd) None of the mentioned
  8. 8Which 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. 9 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. 10 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 phyton, criado por Меруерт Бекен em 27-12-2019.
Idioma
English
Visualizações
2
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?