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

Quiz
•
Computers
•
10th Grade
•
Medium
Giancarlo Mancini
Used 7+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
float x;
float x
int x;
int x
x = 2.5;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Supponendo di voler dichiarare la variabile 'x' numerica decimale, quale, fra le seguenti, è l'istruzione in linguaggio C++ corretta?
x = 2.5
string x;
(posso tranquillamente scegliere string in quanto, essendo alfanumerica, mi permette di inserire qualunque valore)
cin >> x;
(faccio scegliere all'untente il valore della variabile x)
x = "2.5";
Nessuna delle altre risposte è corretta
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Si consideri la seguente affermazione:
Se piove prendo l'ombrello altrimenti no
Dalla sua valutazione si può stabilire che:
prendo l'ombrello nel caso in cui dovesse piovere
non prendo l'ombrello nel caso in cui non dovesse piovere
posso prendere l'ombrello nel caso in cui dovesse piovere
posso prendere l'ombrello anche nel caso in cui non dovesse piovere
prendo l'ombrello anche nel caso in cui non dovesse piovere
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Con riferimento al linguaggio C++, dovendo memorizzare un codice avviamento postale (C.A.P.), è utile usare una variabile di tipo
string
int
float
char
bool
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Con riferimento al linguaggio C++, per visualizzare un messaggio a video, si può usare:
cout
cin
scrivi
end
include
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Indica l'istruzione di dichiarazione di funzione
int sconto();
int x;
cout << "Ciao";
cin >> x;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Il parametro di una funzione è:
una variabile locale
un messaggio a video
un valore inserito da tastiera
Create a free account and access millions of resources
Similar Resources on Quizizz
14 questions
Tipuri de date simple

Quiz
•
9th - 10th Grade
8 questions
Conosci Arduino?

Quiz
•
10th Grade
9 questions
Algoritmi

Quiz
•
1st - 10th Grade
15 questions
Quiz sul Microprocessore

Quiz
•
10th Grade
13 questions
Quiz sui Linguaggi di Programmazione

Quiz
•
10th Grade
15 questions
Quiz su PHP

Quiz
•
9th - 12th Grade
10 questions
Quiz Finale Python - Classi e Oggetti

Quiz
•
10th Grade
10 questions
gigabyte, megabyte, kilobyte

Quiz
•
7th - 11th 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
20 questions
Types of Credit

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

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