C++ - PEI

Quiz
•
Computers
•
10th Grade
•
Medium
Giancarlo Mancini
Used 7+ times
FREE Resource
Student preview

10 questions
Show all answers
1.
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?
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
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade