Home > CompTIA Security+ Certification > Quizzes > Object Oriented Programming Practice Test: Memory Allocation & Scope of Variable
Object Oriented Programming Practice Test: Memory Allocation & Scope of Variable
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 74% Most missed: “If an object is allocated using new operator ____________”
Quiz questions on new and delete operators, automatic and extern variables. In object-oriented programming (OOP), memory allocation is the process of allocating memory to store the data members and functions of an object. The amount of memory required for an object depends on the size and type of its data members and the size and complexity of its member functions. In most programming languages, memory allocation for objects is done automatically when an object is created. When an object is destroyed, the memory allocated to it is automatically deallocated. The scope of a variable in OOP... Show more
Object Oriented Programming Practice Test: Memory Allocation & Scope of Variable
Time left 00:00
1 Questions

1. To use extern variable _____________________