CSE 240 final Questions and Answers 100% Correct | Graded A+
CSE 240 final Questions and Answers 100% Correct | Graded A+ What is the key difference between a static variable and a global variable? A) They come from different parts of memory, or B) They have different visibility. - B What operations will acquire memory from heap? (declaration, free, malloc, new) - malloc, new If a function calls another function, the local variables in these two functions use the memory from (different, the same) stack frame(s). - different What is the best way to delete an array created by "p = new StructType[size];" in C++? - delete[] p; What memory must be garbage collected by a destructor? (_____ memory created by _____ (in the same, outside) the class) - heap, constructors, in the same Java programmers do not need to do garbage collection because Java A) does not use heap memory, or B) uses a system program to collect garbage. - B
Written for
- Institution
- MCSE - Microsoft Certified Systems Engineer
- Course
- MCSE - Microsoft Certified Systems Engineer
Document information
- Uploaded on
- April 20, 2024
- Number of pages
- 15
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
Also available in package deal