Informatica - Scuola secondaria di secondo gradoInfo Training Info Training / Volume Linguaggio Python per il secondo biennio

Data structures

4 esercizi
SVOLGI
INFO

Informatica

Data structures

Which of the following statements are true and which are false?

A:

List is a data structure that allows insert and erase operations anywhere and iteration in both directions.

B:

Dictionary represents a collection of keys and values.

C:

Queue is a LIFO structure.

D:

Stack is a FIFO structure.

Vero o falso
1

Il punteggio di un esercizio è determinato
dalla difficoltà: da 1 (più facile) a 5 (più
difficile). Vuoi saperne di più? Consulta il
Centro assistenza

Informatica

Stack

What are the main characteristics of a stack?

A:

Insertion and deletion of items take place at one end called top of the stack.

B:

The first element added to the stack will be the first one to be removed.

C:

The last element added to the stack will be the first one to be removed.

D:

It is a collection of elements each identified by an index.

Scelta multipla
1

Il punteggio di un esercizio è determinato
dalla difficoltà: da 1 (più facile) a 5 (più
difficile). Vuoi saperne di più? Consulta il
Centro assistenza

Informatica

Push and pop

The terms push and pop are related to

A:

queue

B:

stack

C:

list

D:

dictionary

Scelta multipla
1

Il punteggio di un esercizio è determinato
dalla difficoltà: da 1 (più facile) a 5 (più
difficile). Vuoi saperne di più? Consulta il
Centro assistenza

Informatica

Methods of the Python data structure

Which of the following are common methods used with Python data structures?

A:

append

B:

backup

C:

remove

D:

sort

Scelta multipla
1

Il punteggio di un esercizio è determinato
dalla difficoltà: da 1 (più facile) a 5 (più
difficile). Vuoi saperne di più? Consulta il
Centro assistenza