Online Test-Lists

Descrição

Quiz sobre Online Test-Lists, criado por Aparna Dhirde em 17-03-2020.
Aparna Dhirde
Quiz por Aparna Dhirde, atualizado more than 1 year ago
Aparna Dhirde
Criado por Aparna Dhirde mais de 4 anos atrás
86
0

Resumo de Recurso

Questão 1

Questão
Slicing is used to extract a part of the list.
Responda
  • True
  • False

Questão 2

Questão
Single element is not treated as list.
Responda
  • True
  • False

Questão 3

Questão
List is enclosed in curly brackets.
Responda
  • True
  • False

Questão 4

Questão
Operator & concatenates one list to the end of other list.
Responda
  • True
  • False

Questão 5

Questão
Operator * repeats the content of a list by specified number of times.
Responda
  • True
  • False

Questão 6

Questão
Which of the following commands will create a list?
Responda
  • list1 = list()
  • list1 = []
  • list1 = list([1, 2, 3])
  • all of the mentioned

Questão 7

Questão
Suppose list1 is [2, 33, 222, 14, 25], What is list1[:-1]?
Responda
  • [2, 33, 222, 14]
  • Error
  • 25
  • [25, 14, 222, 33, 2]

Questão 8

Questão
Suppose list1 is [1, 3, 2], What is list1 * 2?
Responda
  • [2, 6, 4]
  • [1, 3, 2, 1, 3]
  • [1, 3, 2, 1, 3, 2]
  • [1, 3, 2, 3, 2, 1]

Questão 9

Questão
What will be the output of the following Python code? >>>"Welcome to Python".split()
Responda
  • [“Welcome”, “to”, “Python”]
  • (“Welcome”, “to”, “Python”)
  • {“Welcome”, “to”, “Python”}
  • “Welcome”, “to”, “Python”

Questão 10

Questão
To which of the following the “in” operator can be used to check if an item is in it?
Responda
  • Lists
  • Dictionary
  • Set
  • All of the mentioned

Semelhante

Fundamentos Químicos da vida
Priscila Reinaldo
Noções Gerais de Direito Administrativo
Alynne Saraiva
Dicionário de Química
Alessandra S.
SUBSTANTIVOS
Viviana Veloso
Doenças Cardiovasculares
marianamota99
Função Polinomial do 1º Grau
KauanM
Todos os verbos irregulares em inglês com tradução
Luiz Fernando
PROCESSO DISCIPLINAR
GoConqr suporte .
Dúvidas frequentes da Língua Portuguesa
John Lennon Santos Valença
Grupos de GoConqr - Guia do usuário
GoConqr suporte .
Estudo de Gramática - Classes de Palavras
Edivaldo Siqueira