C Plus Plus Quiz Questions Large Objects 2 Online Exam Quiz
C Plus Plus Quiz Questions Large Objects 2 GK Quiz. Question and Answers related to C Plus Plus Quiz Questions Large Objects 2. MCQ (Multiple Choice Questions with answers about C Plus Plus Quiz Questions Large Objects 2
What is the size of the heap?
Options
A : 10MB
B : 500MB
C : 1GB
D : Size of the heap memory is limited by the size of the RAM and the swap memory
How to stop your program from eating so much ram?
Options
A : Find a way to work with the data one at a time
B : Declare it in program memory, instead of on the stack
C : Use the hard drive, instead of RAM
D : All of the mentioned
Which is used to pass the large objects in c++?
Options
A : pass by value
B : pass by reference
C : both pass by value & reference
D : pass by name
In Linux, how do the heaps and stacks are managed?
Options
A : ram
B : secondary memory
C : virtual memory
D : static memory
When we are using heap operations what do we need to do to save the memory?
Options
A : rename the objects
B : delete the objects after processing
C : both rename & delete the objects
D : add the objects
How to unlimit the size of the stack?
Options
A : setrlimit()
B : unlimit()
C : both setrlimit() & unlimit()
D : setflimit()
Which container in c++ will take large objects?
Options
A : string
B : class
C : vector
D : string & class
Which option is best to eliminate the memory problem?
Options
A : use smart pointers
B : use raw pointers
C : use virtual destructor
D : use smart pointers & virtual destructor
Chemical Engineering Basics - Part 1 more Online Exam Quiz
Cplusplus Programming Valarray
Cplusplus Programming Vtable Vptr
Cplusplus Programming Written Test
C Plus Plus Question Answers Dereferencing
Cplusplus Quiz Questions C Input Output
C Plus Plus Quiz Questions Objects
Cpp Interview Almost Containers
Cpp Interview Questions Experienced Sequences Containers