
Gestione della memoria in C++
Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Lorenzo Bellincampi
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lo stack è ...
Gestito dal sistema
Gestito dall'utente
Soggetto a frammentazione
La parte di memoria in cui vanno le variabili statiche
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lo stack overflow...
Si verifica quando si tenta di allocare ulteriore spazio in uno Stack pieno
È esclusivamente un sito web in cui trovare le soluzioni a tutti i problemi della vita
Si verifica più raramente se si usa la ricorsione
Si verifica quando viene allocata troppa memoria nell'Heap, che quindi "invade" lo Stack
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
L'Heap...
non è mai più grande della memoria statica
contiene memoria allocata tramite la funzione malloc
contiene memoria allocata automaticamente quando dichiariamo variabili
viene svuotato automaticamente dalla CPU
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cosa si intende per "allocazione dinamica della memoria"?
La memoria viene allocata solo durante l'esecuzione del programma
Un metodo per allocare memoria in modo statico
Un'operazione eseguita automaticamente dal compilatore
La memoria viene allocata solo durante la compilazione del programma
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Le variabili globali vengono allocate
Nello Stack
Nell'Heap
Nella memoria statica
Nella ROM
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dereferenziare un puntatore p significa
Leggere il contenuto della variabile puntata da p
Liberare la memoria puntata da p
Dichiarare il puntatore p
Cambiare l'indirizzo di memoria puntato da p
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Un memory leak...
Non può verificarsi se uso solo l'Heap
Si verifica quando non si libera della memoria allocata dinamicamente e si perde il puntatore relativo.
Si verifica in seguito allo stack overflow, ovvero quando parte dello Stack finisce nell'Heap.
Si verifica molto più frequentemente se la memoria è frammentata
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
“Классная” работа с динамической памятью
Quiz
•
9th Grade
12 questions
Python
Quiz
•
7th - 9th Grade
10 questions
QBASIC Programming
Quiz
•
5th - 10th Grade
10 questions
Cos’è la ROM?
Quiz
•
6th - 12th Grade
13 questions
Diagnostico bases Informática
Quiz
•
1st - 12th Grade
10 questions
BIOS - UEFI - CONFIGURACION
Quiz
•
1st - 12th Grade
13 questions
CCIS 104 Quiz #1.2
Quiz
•
12th Grade
15 questions
Microbit (python)
Quiz
•
8th - 10th 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
