SKILL BENCHMARK

C++ Pointers Competency (Intermediate Level)

  • 21m
  • 21 questions
The C++ Pointers Competency (Intermediate Level) benchmark measures your ability to employ nullptr, define and use pointers for STL containers, and differentiate between malloc/free and new/delete, new/delete and new[]/delete[], and const pointers and pointers to const. You will be assessed on your skills in correctly using smart pointer objects, leveraging RAII to use various pointers and references, and correctly using const references. Learners who score high on this benchmark demonstrate that they have the skills to define and use pointers and references.

Topics covered

  • allocate memory for strings and vectors
  • contrast const pointers and pointers to consts
  • contrast malloc() and new
  • contrast NULL and nullptr
  • copy, transfer, and reset pointers
  • create and use const references
  • create constant pointers and constant pointers to constants
  • create pointers on string objects
  • create references and modify variables through them
  • create references on different types and objects
  • create shared pointers using various syntaxes
  • examine values stored in shared pointers
  • invoke constructors and destructors on arrays
  • recall how unique pointers, shared pointers, and strong pointers work
  • recognize how weak pointers can become invalid
  • recognize how weak pointers can be deallocated
  • store strings in character arrays and pointers
  • use the const_cast operator
  • use the new and delete keywords on pointers
  • use the new keyword to allocate memory on the heap
  • use the nullptr keyword

RECENTLY ADDED COURSES