
Quiz Strutture

Quiz
•
Computers
•
University
•
Easy
MADDALENA MIGLIACCIO
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Che tipo di puntatore è rec passato alla funzione memInfo(rec **, char *[]) ?
Puntatore alla struttura rec
Doppio puntatore alla struttura rec
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Che tipo di puntatore è char *str[] passato alla funzione memInfo(rec **, char *[])?
Puntatore a puntatore a carattere
Array di puntatori a carattere
Puntatore a una stringa
Doppio puntatore a carattere
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Che tipo di puntatore è rec *info1 dichiarato nel main()?
Puntatore alla struttura rec
Doppio puntatore alla struttura rec
Puntatore a puntatore alla struttura rec
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Se nel main dichiaro rec *info1, info2; cosa sto passando quando richiamo cmpInfo(info1, info2)?
Due puntatori a rec
Due strutture rec passate per valore
Un puntatore a rec e una struttura rec passata per valore
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quale delle seguenti operazioni è corretta per liberare la memoria allocata dinamicamente per info1 nel main()?
free(info1)
free(*info1);
free(info1->s1);
free(info1->s1); free(info1->s2); free(info1);
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quando usi calloc() per allocare memoria, quale comportamento viene garantito?
La memoria viene inizializzata a un valore casuale
La memoria viene inizializzata a zero
La memoria non viene mai inizializzata
La memoria viene inizializzata con valori di default per il tipo
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In una funzione che manipola strutture dinamiche, perché è importante liberare correttamente la memoria allocata con free()?
Per aumentare la velocità del programma
Per evitare che il programma fallisca al termine
Per prevenire memory leaks (perdite di memoria)
Per rendere la memoria non utilizzabile da altri programmi
Create a free account and access millions of resources
Similar Resources on Wayground
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University