
C++ Domande sull'esercizio CTriangolo

Quiz
•
Computers
•
10th Grade
•
Easy
Daneel R.
Used 1+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cosa rappresenta la classe CPunto studiata a lezione e quali funzionalità offre?
Un piano cartesiano con coordinate x e y.
Un punto nel piano cartesiano con coordinate x, y e un nome identificativo.
Un cerchio centrato su x y.
Un segmento con coordinate x1 y1 e x2 y2.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Nella classe CTriangolo studiata a lezione come viene determinato se un triangolo è rettangolo?
Verificando se vale il teorema di Pitagora con lato1*lato1 + lato2*lato2 = lato3*lato3
Ordinando i lati per lunghezza e applicando il teorema di Pitagora.
Controllando se lato 1 è orizzontale e lato2 è verticale
Utilizzando il coefficiente angolare dei segmenti.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In che modo le classi CPunto, CSegmento e CTriangolo viste a lezione sono correlate tra loro?
Sono classi differenti relative a oggetti indipendenti l'uno dall'altro
CPunto eredita da CSegmento e CSegmento eredita da CTriangolo.
CPunto definisce i punti usati da CSegmento, e CSegmento definisce i lati di CTriangolo.
CTriangolo usa 3 oggetti di tipo CPunto per identificare i vertici CPunto senza passare per CSegmento.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quale delle seguenti affermazioni sui costruttori del linguaggio C++ è corretta?
Un costruttore può restituire un valore
Un costruttore deve sempre avere lo stesso nome della classe
Un costruttore in C++ deve essere preceduto da void
Un costruttore non può avere parametri
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C++, i metodi "getter" servono per:
Modificare il valore di un attributo
Restituire il valore di un attributo
Eliminare un attributo della classe
Inizializzare un attributo
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C++, i metodi "setter" servono per:
Modificare il valore di un attributo
Restituire il valore di un attributo
Eliminare un attributo della classe
Inizializzare un attributo
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Nella classe CTriangolo vista in classe, i segmenti vengono passati come parametri al costruttore.
Quale tra queste affermazioni è corretta?
I segmenti vengono passati per valore e vengono copiati
I segmenti vengono passati per riferimento e modificano gli originali
Non è possibile passare oggetti di un’altra classe a un costruttore
I segmenti vengono automaticamente convertiti in coordinate di punti
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
CONTEST 19 WORD 2019

Quiz
•
7th - 12th Grade
10 questions
Explorando Tinkercad en Secundaria

Quiz
•
7th Grade - University
11 questions
L'ordinateur et ses périphériques

Quiz
•
1st - 10th Grade
14 questions
Windows 10

Quiz
•
10th Grade
13 questions
PROGRAMACION EN ARDUINO

Quiz
•
10th Grade
13 questions
Algoritmos y diagramas de flujo

Quiz
•
10th Grade - University
15 questions
Introducción a las computadoras

Quiz
•
10th Grade
10 questions
Sistemas Operativos

Quiz
•
10th - 12th Grade
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
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
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade