Search Header Logo

Quiz Arrays - Estrutura de dados

Authored by Fabricio Silva

Computers

University

Used 1+ times

Quiz Arrays - Estrutura de dados
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

46 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Qual é a saída do seguinte código? array = [10, 20, 30, 40] print(array[2])

10

20

30

40

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Qual é o resultado da operação len(array) no seguinte código? array = [5, 8, 12]

2

3

4

5

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Qual será o conteúdo do array após a execução do código? array = [1, 2, 3] array.append(4)

[1, 2, 3]

[1, 2, 3, 4]

[1, 2, 3, 0]

[1, 2, 3, 4, 5]

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

O que acontece ao tentar acessar o índice 4 neste código? array = [9, 18, 27] print(array[4])

Retorna 0

Retorna None

Gera um erro de índice

Retorna o último elemento

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Qual será a saída do seguinte código? array = [2, 4, 6, 8] array.insert(2, 10) print(array)

[2, 4, 6, 8, 10]

[2, 4, 10, 6, 8]

[2, 10, 4, 6, 8]

[2, 4, 6, 10, 8]

6.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

Qual função é utilizada para remover o primeiro elemento de um array?

(a)  

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

O que o código a seguir faz? array = [1, 3, 5, 7] array.remove(5)

Remove o último elemento

Remove o elemento 5

Remove o primeiro elemento

Não faz nada

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?