
Quiz Strutture
Authored by MADDALENA MIGLIACCIO
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
TARJETA MADRE
Quiz
•
University
10 questions
Informática I 1er Bloque
Quiz
•
University
10 questions
Introdução aos ponteiros em C
Quiz
•
University
10 questions
Introduction to Cybersecurity - Test 2
Quiz
•
University
10 questions
INTRODUCCION A LA PROGRAMACION
Quiz
•
6th Grade - University
10 questions
Computacion
Quiz
•
University
11 questions
Herramientas WEB
Quiz
•
6th Grade - Professio...
10 questions
Partes internas de una computadora
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade