
Enum in C++
Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Lorenzo Bellincampi
FREE Resource
Enhance your content in a minute
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quale delle seguenti affermazioni riguardo alle enum in C++ è corretta?
Le enum possono essere utilizzate solo per rappresentare valori numerici interi.
È obbligatorio specificare un valore numerico per ogni membro di un'enumerazione.
Le enum possono essere convertite automaticamente in stringhe senza la necessità di utilizzare una funzione di conversione.
Le enum sono sempre definite come tipi numerici senza segno.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quale di queste sintassi è corretta?
enum e {A; B; C};
enum e {A, B, C};
enum e {A = 0; B;}
enum e {int A, int B};
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quale delle seguenti affermazioni è corretta?
Le enum vanno prima definite e poi possono essere utilizzate
Le enum sono in realtà char
Le enum non sono tipi di dato personalizzato ma solo elenchi
Le enum partono sempre da 1
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Le enum
Non possono essere utilizzate nelle funzioni
Possono essere utilizzate nelle funzioni come tipo di ritorno ma non come parametro
Possono essere utilizzate nelle funzioni come parametro ma non come tipo di ritorno
Possono essere utilizzate nelle funzioni come tutti gli altri tipi
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Supponendo di aver definito una enum Seme {Cuori, Quadri, Fiori, Picche}, quale delle seguenti sintassi è corretta?
Int seme = Cuori;
Seme s = Cuori;
Seme s = "Cuori";
char s = Cuori;
Similar Resources on Wayground
10 questions
Quizzone Gmail
Quiz
•
9th - 12th Grade
10 questions
Smart City quiz
Quiz
•
10th - 12th Grade
10 questions
Esercizi codice di Hamming
Quiz
•
11th Grade
10 questions
Modello TCP/IP - Livello 2
Quiz
•
12th Grade
10 questions
Ripasso
Quiz
•
2nd Grade - University
9 questions
Le basi dell'informatica - COMUNICAZIONE
Quiz
•
1st - 12th Grade
5 questions
Educazione civica: bolle di filtri
Quiz
•
9th - 12th Grade
5 questions
Diagrammi E-R (1)
Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
