
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
Similar Resources on Wayground
10 questions
Python Arithmetic Operators

Quiz
•
8th - 9th Grade
14 questions
Componentes hardware

Quiz
•
11th Grade
15 questions
Pemrograman Berorientasi Objek PAS GANJIL XII RPL

Quiz
•
12th Grade
10 questions
Introducción a la Informática

Quiz
•
1st - 10th Grade
10 questions
STRING HANDLING

Quiz
•
10th Grade
14 questions
BERPIKIR KOMPUTASIONAL

Quiz
•
10th Grade
11 questions
Hardware

Quiz
•
10th Grade
10 questions
Introducción a VBA

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade