Informatica
Python defines code blocks
using braces { }.
using special keywords.
using indentation.
using semicolons.
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
What would be the value of k at the end of the following code?
k = 1;
while (k<=5) k++;
1
4
5
6
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
Where are the instructions of a C or C++ program written?
In the #include directive.
Inside the main function.
Inside a library.
In the namespace.
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 structure used for enumerative iteration is
if
while
for
else
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
Which of these statements are true and which are false?
The debug is an error or failure that produces an incorrect or unexpected result.
Python is a case sensitive language.
In Python, every variable must be declared with its type before being used.
In Python, the conditional expression of an if structure is followed by a colon.
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
Which of these statements are true and which are false?
A program is the result of translating an algorithm into a programming language.
Machine language is written using letters and words.
C++ was created before the C language.
In C, input and output are performed using scanf and printf.
The if… else structure is used for decision-making.
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 keyword used in C++ to declare a constant is
#define
var
const
static
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
What type of error occurs when the program runs but it produces wrong results?
Syntax error
Logical error
Lexical error
Compilation error
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
A variable in Python is created
when it is declared with a type.
when the program starts.
when a value is assigned to it for the first time.
when the file is saved.
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
Dynamic typing in Python means
variables must be declared before use.
the interpreter automatically determines the variable type.
variables can only store numbers.
the programmer chooses the data type manually.
Il punteggio di un esercizio è determinato
dalla difficoltà: da 1 (più facile) a 5 (più
difficile). Vuoi saperne di più? Consulta il
Centro assistenza