
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
Kuis Dasar-Dasar HTML

Quiz
•
9th Grade
10 questions
Bài tập trắc nghiệm C++

Quiz
•
3rd - 12th Grade
8 questions
test-vectori-cls9

Quiz
•
9th Grade
10 questions
C++ Programming Quiz

Quiz
•
12th Grade
12 questions
Post Test Pengenalan Pemrograman Bahasa C++

Quiz
•
11th Grade
11 questions
computer 12

Quiz
•
12th Grade
12 questions
Informatica 10 Operatori

Quiz
•
10th Grade
16 questions
Arithmetic Types Declare Initialize Relation Logical Ops

Quiz
•
9th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

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

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade