
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
Evaluación Diagnóstica

Quiz
•
12th Grade
10 questions
Memoria Ram

Quiz
•
9th - 10th Grade
10 questions
Refleksi

Quiz
•
10th Grade
10 questions
Programming basics

Quiz
•
9th - 12th Grade
10 questions
Strings & Integers

Quiz
•
6th - 9th Grade
10 questions
Memory Allocation in C Programming Language Quiz

Quiz
•
12th Grade
8 questions
String Handling in Java

Quiz
•
10th Grade
10 questions
TEMA 2. UNIDADES FUNCIONALES DEL ORDENADOR.

Quiz
•
12th Grade
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
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade