
Linguaggio C++

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
cattaneo cecina
Used 2+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
La sequenza 1234 può essere dichiarata in C++ come dato:
logico
stringa
stringa o intero
intero
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Che problema risolve ?
#include <iostream>
#include <string>
using namespace std;
const string nome_scuola="IIS De Sarlo-DeLorenzo";
string data;
string n;
int main () { cout << "inserisci la data" << endl;
cin >> data;
n=nome_scuola;
cout << n << endl;
cout << data << endl;
return 0:}
stampa la data corrente, il nome della scuola "IIS De Sarlo-DeLorenzo"
stampa il nome della scuola "IIS De Sarlo-DeLorenzo" e la data in input
stampa il nome della scuola e la data presi in input
stampa prima la data e poi il nome della scuola "IIS De Sarlo-DeLorenzo"
3.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
Quanto vale s alla fine dell'esecuzione del programma ?
#include <string>
using namespace std; int main () {
float x,y,z;
z=0;
x=z+1;
y=z+x+x*x;
if (y<0)
s=z*z*2+x+y;
else
s=z/y-x-y;
cout << endl<<s;
retrun 0 }
-3
1
3
0
4.
MULTIPLE SELECT QUESTION
2 mins • 3 pts
Dato il programma: (2 risposte valide)
#include <iostream>
#include <string>
using namespace std;
int a,b,x;
int main(){
cout <<”inserisci a e b”;
cin >> a >>b;
if (a>b) {x=a+b; cout<<x+a;}
else { x=a+b; cout << x-b;}
return 0;
}
se a=b il risultato visualizzato x è a;
se a=-5 e b=5 il risultato visualizzato x è -5
se a=-5 e b=5 il risultato visualizzato x è 5
se a=b il risultato visualizzato x è a-2b
5.
MULTIPLE SELECT QUESTION
2 mins • 2 pts
Dato un triangolo con i lati l1,l2,l3 determinare di che triangolo si tratta.
Quale sequenza di condizioni sono valide per determinare se è isoscele ?
(2 risposte valide)
se l1<>l3 allora scrivi “è isoscele”
se l1=l2 allora se l1<>l3 allora scrivi “è isoscele”
se l1<>l3 allora se l3=l2 allora scrivi “è equilatero”
se l1=l3 allora se l2<>l1 allora scrivi “è isoscele”
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Definire i dati del seguente problema:
Un negozio applica uno sconto x% se un cliente compra almeno tre prodotti. Calcolare il totale da pagare tenendo conto dell’eventuale sconto. Quali tipologie di variabili occorre definire ?
prezzo input, x input, totale output
prezzo input, x input, sconto lavoro, totale output
prezzo input, totale output
prezzo input, x lavoro, totale output, sconto lavoro
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Dati un’equazione di primo grado ax=b, cosa devo controllare
nell’algoritmo risolutivo ?
che a sia diverso da zero
che x sia un dato di input
che a e b non siano entrambi nulli
che b sia diverso da zero
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Le basi C++

Quiz
•
11th Grade
10 questions
Вспоминаем условный оператор

Quiz
•
8th - 10th Grade
15 questions
ELEMENTE DE BAZA ALE LIMBAJULUI C++

Quiz
•
10th Grade
12 questions
Praca klasowa C++

Quiz
•
12th Grade
7 questions
While Loops

Quiz
•
10th - 12th Grade
14 questions
C ++ For Loop

Quiz
•
9th - 12th Grade
15 questions
Latihan Soal

Quiz
•
11th Grade
12 questions
Divide et Impera

Quiz
•
11th Grade - University
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade