Supponendo di voler dichiarare la variabile 'x' numerica decimale, quale, fra le seguenti, è l'istruzione in linguaggio C++ corretta?
Linguaggio C++

Quiz
•
Computers
•
10th - 12th Grade
•
Hard
Giulia Achilli
Used 103+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
float x
int x
x = 2.5
bool x
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Si consideri la seguente affermazione:
Se piove prendo l'ombrello
Indica quale fra le seguenti risulta essere la corretta traduzione nel linguaggio C++ considerando che con 'S' si indica SI e con 'N' si indica NO:
if(piove == 'S') {
prendi_ombrello = 'S';
}
if(piove == 'S') {
prendi_ombrello = 'S';
} else {
prendi_ombrello = 'N';
}
if(piove = 'S') {
prendi_ombrello = 'S';
}
if(piove = 'S') {
prendi_ombrello = 'S';
} else {
prendi_ombrello = 'N';
}
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Indica quale, fra le seguenti, è un'istruzione che permette di associare un valore alla variabile intera chiamata A:
cin >> A;
cout << "Inserire il valore di A" << endl;
cout << A;
A = 3.2;
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Con riferimento al linguaggio C++, la seguente istruzione:
int a;
dichiara una costante
dichiara una variabile
dichiara un costrutto
è errata perchè manca il main
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Con riferimento al linguaggio C++, dovendo memorizzare un nome è utile usare una variabile di tipo
char
string
float
int
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Quali categorie di variabili è possibile trovare in un programma
input, output, lavoro
input, output, calcolo
input, calcolo, lavoro
calcolo, output, lavoro
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Una proprietà dell'algoritmo è:
generico
finito
complesso
interpretato
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Algoritmi Java

Quiz
•
11th Grade
18 questions
[2T] Il software

Quiz
•
10th Grade
23 questions
Quiz sull'Evoluzione dei Sistemi Operativi

Quiz
•
11th Grade - University
25 questions
Ripasso Informazioni e Dati

Quiz
•
8th - 10th Grade
18 questions
linguaggio C++

Quiz
•
9th - 12th Grade
18 questions
HTML1.0

Quiz
•
11th Grade
15 questions
Algoritmo

Quiz
•
9th Grade - University
18 questions
C++ inizio

Quiz
•
10th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University