Informatica - Scuola secondaria di secondo gradoInformatica e reti di comunicazione Informatica e reti di comunicazione / Volume 2

Coding - Quiz in English

10 esercizi
SVOLGI
INFO

Informatica

Python

Python defines code blocks

A:

using braces { }.

B:

using special keywords.

C:

using indentation.

D:

using semicolons.

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

C and C++ languages

What would be the value of k at the end of the following code?

k = 1;
while (k<=5) k++;

A:

1

B:

4

C:

5

D:

6

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

C and C++ languages

Where are the instructions of a C or C++ program written?

A:

In the #include directive.

B:

Inside the main function.

C:

Inside a library.

D:

In the namespace.

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

Enumerative iteration

The structure used for enumerative iteration is

A:

if

B:

while

C:

for

D:

else

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

Coding

Which of these statements are true and which are false?

A:

The debug is an error or failure that produces an incorrect or unexpected result.

B:

Python is a case sensitive language.

C:

In Python, every variable must be declared with its type before being used.

D:

In Python, the conditional expression of an if structure is followed by a colon.

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

Coding

Which of these statements are true and which are false?

A:

A program is the result of translating an algorithm into a programming language.

B:

Machine language is written using letters and words.

C:

C++ was created before the C language.

D:

In C, input and output are performed using scanf and printf.

E:

The if… else structure is used for decision-making.

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

C++: declare a constant

The keyword used in C++ to declare a constant is

A:

#define

B:

var

C:

const

D:

static

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

Programming errors

What type of error occurs when the program runs but it produces wrong results?

A:

Syntax error

B:

Logical error

C:

Lexical error

D:

Compilation error

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

Python

A variable in Python is created

A:

when it is declared with a type.

B:

when the program starts.

C:

when a value is assigned to it for the first time.

D:

when the file is saved.

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

Python

Dynamic typing in Python means

A:

variables must be declared before use.

B:

the interpreter automatically determines the variable type.

C:

variables can only store numbers.

D:

the programmer chooses the data type manually.

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