Informatica - Scuola secondaria di secondo gradoSystem System / Volume Sistemi Informativi Aziendali A per il secondo biennio

STL and generic programming - Quiz

5 esercizi
SVOLGI
INFO

Informatica

Push and Pop

The terms Push and Pop are related to

A:

array.

B:

stack.

C:

list.

D:

map.

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

The main characteristic of a stack

What is the main characteristic 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:

There are a root value and subtrees of children, represented as a set of linked nodes.

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

The typical algorithms of the STL

Which of the following are typical algorithms of the Standard Template Library (STL)?

A:

find()

B:

backup()

C:

erase()

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

Informatica

List, map, queue and stack

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

A:

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

B:

Map 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

The order produced by a code

What is the order produced in array v by the following code?

sort(v.begin(), v.end());

reverse(v.begin(), v.end());

A:

Ascending

B:

Descending

C:

None

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