Con riferimento al linguaggio C++, dovendo memorizzare un nome è utile usare una variabile di tipo
C++ cap. 4

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Carolina Pellecchia
Used 8+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
char
string
float
int
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Supponendo che x sia di tipo float e y di tipo intero, quale delle seguenti rappresenta un'operazione di casting?
y = int x;
(y) = int x;
y = (int) x;
(y) = int x;
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Considera il seguente frammento di codice:
if (x > 5)
{
if(x > 7)
{x = 6;}
}
else{
x = 0;
}
Cosa viene stampato a video se x = 2?
0
6
2
5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
L'operatore % in C++ serve per:
calcolare la percentuale
non è mai utilizzato
calcola il resto della divisione
calcola il quoziente della divisione
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Il seguente frammento di codice stampa a video:
inp = 3;
out = 0;
do{
out = out + inp;
inp = inp - 1;
}while (inp>0)
0
3
6
9
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
La periferica di default utilizzata per inserire i dati è:
la tastiera
il mouse
lo scanner
la tastiera e il mouse
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Che cosa visualizza la seguente istruzione in C++ inserendo le stringhe "ciao" e "ciao mondo"?
string s1, s2;
cin>>s1;
cin>>s2;
if (s1==s2)
cout<<"Stringhe uguali!"<<endl;
else
cout<<"Stringhe non uguali!"<<endl;
Stringhe uguali
Stringhe non uguali
errore
0
Create a free account and access millions of resources
Similar Resources on Quizizz
16 questions
Javascript Basics

Quiz
•
9th - 12th Grade
16 questions
Loops

Quiz
•
5th - 12th Grade
20 questions
Algoritmi Java

Quiz
•
11th Grade
15 questions
Test JAVA - 1

Quiz
•
12th Grade
10 questions
Викторина по Python (Урок 1-2)

Quiz
•
5th - 11th Grade
17 questions
Elementele de bază ale limbajului C++

Quiz
•
10th Grade
10 questions
Post Test C++

Quiz
•
9th - 12th Grade
15 questions
ASK F2 -KOD ARAHAN (PYTHON)

Quiz
•
1st Grade - University
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