
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
1AP - Análise e Projeto de Sistemas

Quiz
•
10th Grade
12 questions
3G_aprile

Quiz
•
10th Grade
8 questions
Diagramma ER

Quiz
•
10th Grade
8 questions
XML few questions

Quiz
•
10th Grade
12 questions
Subnetting Quiz

Quiz
•
10th Grade
15 questions
Gli indirizzi IP

Quiz
•
9th Grade - Professio...
14 questions
Il livello di Rete - Ripasso Primo Quadrimestre

Quiz
•
9th - 12th Grade
15 questions
Algoritmo

Quiz
•
9th Grade - University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

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

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade