| Title | Action | ||||
|---|---|---|---|---|---|
| 1 | Output OperatorWhich operator is used for console output in C++?... | easy | ○ Not Started | Printing | Solve |
| 3 | Vector SizeWhat is the output of this code?... | easy | ○ Not Started | Arrays | Solve |
| 5 | Scope ResolutionWhat is the `::` operator called in C++?... | easy | ○ Not Started | Functions | Solve |
| 6 | Pointer BasicsWhich operator is used to get the memory address of a variable in C++?... | easy | ○ Not Started | Pointers | Solve |
| 9 | For Loop CountWhat is the output of this code?... | easy | ○ Not Started | Loops | Solve |
| 10 | String LengthWhat is the output of this code?... | easy | ○ Not Started | Strings | Solve |
| 12 | Ternary OperatorWhat is the output of this code?... | easy | ○ Not Started | Conditionals | Solve |
| 13 | Array Index OutputWhat is the output of this code?... | easy | ○ Not Started | Arrays | Solve |
| 14 | While Loop ConditionWhat is the output of this code?... | easy | ○ Not Started | Loops | Solve |
| 16 | Null PointerWhat keyword is used in modern C++ (C++11 and later) to represent a null pointer... | easy | ○ Not Started | Pointers | Solve |
| 19 | String ConcatenationWhat is the output of this code?... | easy | ○ Not Started | Strings | Solve |
| 21 | Unfreed Heap MemoryThis code compiles and runs, but it has a problem. What is the issue?... | easy | ○ Not Started | Dynamic Memory | Solve |
| 22 | Delete on Stack VariableThis code has a bug that causes undefined behavior. What is the issue?... | easy | ○ Not Started | Dynamic Memory | Solve |
| 23 | Dangling Pointer AccessThis code compiles but has a serious bug. What is the issue?... | easy | ○ Not Started | Dynamic Memory | Solve |
| 24 | Private Member in Base ClassThis code fails to compile. What is the issue?... | easy | ○ Not Started | Inheritance | Solve |
| 25 | Default Private InheritanceThis code fails to compile at the indicated line. What is the issue?... | easy | ○ Not Started | Inheritance | Solve |
| 26 | Missing Base Constructor CallThis code fails to compile. What is the issue?... | easy | ○ Not Started | Inheritance | Solve |
| 27 | Non-Virtual Method CallThe programmer expects this code to print `"Dog speaks"`, but it prints `"Animal... | easy | ○ Not Started | Polymorphism | Solve |
| 28 | Cannot Create Abstract ObjectThis code fails to compile. What is the issue?... | easy | ○ Not Started | Polymorphism | Solve |
| 29 | Missing DestructorThis code compiles and runs, but it has a problem. What is the issue?... | easy | ○ Not Started | Rule of Three | Solve |
| 30 | Default Copy Double FreeThis code compiles but crashes at runtime. What is the issue?... | easy | ○ Not Started | Rule of Three | Solve |
| 41 | Exception Handling KeywordsWhich three keywords are used for exception handling in C++?... | easy | ○ Not Started | Exceptions | Solve |
| 42 | Code After throw Is SkippedWhat is the output of this code?... | easy | ○ Not Started | Exceptions | Solve |
| 43 | Exception Header FileWhich header must you include to use `std::runtime_error` and `std::invalid_argu... | easy | ○ Not Started | Exceptions | Solve |
| 44 | Catch-All HandlerWhat does `catch (...)` do in a C++ exception handler?... | easy | ○ Not Started | Exceptions | Solve |
| 51 | Template Type Parameter MeaningWhat does `T` represent in the following code?
```cpp
template <typename T>
voi... | easy | ○ Not Started | Templates | Solve |
| 52 | Template Class InstantiationWhich line correctly creates a `Box<int>` object given this template class?
```... | easy | ○ Not Started | Templates | Solve |
| 53 | Valid Template Function SignatureWhich of the following is a valid C++ template function that returns the larger ... | easy | ○ Not Started | Templates | Solve |
| 54 | Template Function OutputWhat is the output of the following program?
```cpp
#include <iostream>
using n... | easy | ○ Not Started | Templates | Solve |
| 59 | What Is a Stream?Which of the following best describes a "stream" in C++?... | easy | ○ Not Started | Streams | Solve |
| 60 | Input Stream ClassesWhich class should you use to read input from a file in C++?... | easy | ○ Not Started | Streams | Solve |
| 61 | Output Stream ClassesWhich class is used to write output to a file in C++?... | easy | ○ Not Started | Streams | Solve |
| 62 | Extraction Operator vs getlineWhat is a key difference between the extraction operator `>>` and `getline()` wh... | easy | ○ Not Started | Streams | Solve |
| 63 | The get() FunctionWhat makes `cin.get()` different from the extraction operator `cin >>`?... | easy | ○ Not Started | Streams | Solve |
| 64 | setw ManipulatorWhat does `setw(10)` do when used with `cout`?
```cpp
cout << setw(10) << 42;
`... | easy | ○ Not Started | Streams | Solve |
| 66 | setprecision with fixedWhat is the output of the following code?
```cpp
#include <iostream>
#include <... | easy | ○ Not Started | Streams | Solve |
| 67 | The ws ManipulatorWhat does the `ws` manipulator do when used with an input stream?
```cpp
getlin... | easy | ○ Not Started | Streams | Solve |
| 68 | Stream Condition State: eof()Which of the following stream condition functions returns `true` when the stream... | easy | ○ Not Started | Streams | Solve |
| 71 | peek() vs unget()What does `cin.peek()` do?... | easy | ○ Not Started | Streams | Solve |
| 72 | Testing If a File Opened SuccessfullyAfter opening a file, which code correctly checks whether the file stream opened... | easy | ○ Not Started | Streams | Solve |
| 73 | Function Declaration vs DefinitionWhat is a function declaration (prototype) in C++?... | easy | ○ Not Started | Functions | Solve |
| 76 | What Is a C-String?Which of the following correctly describes a C-string in C++?... | easy | ○ Not Started | Strings | Solve |
| 77 | Character Classification FunctionsWhich function from `<cctype>` returns true if a character is a letter of the al... | easy | ○ Not Started | Strings | Solve |
| 79 | find Returns nposWhat does `s.find("xyz")` return when `"xyz"` is not found in the string `s`?... | easy | ○ Not Started | Strings | Solve |
| 81 | What Is std::string?Which description best fits std::string in C++?... | easy | ○ Not Started | STL Containers | Solve |
| 82 | String Iterator Type and AccessWhich statement about std::string iteration and element access is correct?... | easy | ○ Not Started | STL Containers | Solve |
| 83 | What Type Does std::string Store?What element type does std::string store, and can it store arbitrary types like ... | easy | ○ Not Started | STL Containers | Solve |
| 84 | What Is std::vector?Which description best fits std::vector<T>?... | easy | ○ Not Started | STL Containers | Solve |
| 86 | Vector Iterator TypeWhat category of iterator does std::vector provide, and what operations does it ... | easy | ○ Not Started | STL Containers | Solve |
| 88 | Deque vs Vector: Key AdvantageWhat does std::deque offer that std::vector does not?... | easy | ○ Not Started | STL Containers | Solve |
| 89 | Deque Subscript and Random AccessDoes std::deque support the subscript operator [] and random access iterators?... | easy | ○ Not Started | STL Containers | Solve |
| 90 | How std::list Stores ElementsHow does std::list<T> store its elements in memory?... | easy | ○ Not Started | STL Containers | Solve |
| 92 | Does std::list Support []?Can you use the subscript operator [] to access elements in std::list? Why or wh... | easy | ○ Not Started | STL Containers | Solve |
| 94 | What Makes std::set Unique?Which two properties always hold for std::set<T>?... | easy | ○ Not Started | STL Containers | Solve |
| 95 | Accessing Elements in std::setHow do you check whether a value exists in a std::set, and why is the [] operato... | easy | ○ Not Started | STL Containers | Solve |
| 97 | Does std::set Store Pairs?Does std::set store pair objects, or does each element hold a single value?... | easy | ○ Not Started | STL Containers | Solve |
| 98 | What Is std::map?Which description best fits std::map<Key, Value>?... | easy | ○ Not Started | STL Containers | Solve |
| 101 | Map Sorted by KeyIn what order does iterating over a std::map visit its entries?... | easy | ○ Not Started | STL Containers | Solve |
| 104 | Which Containers Auto-Sort?Which STL containers automatically maintain their elements in sorted order at al... | easy | ○ Not Started | STL Containers | Solve |
| 106 | Read-Only IteratorsWhich iterator type provides read-only access and prevents modification of conta... | easy | ○ Not Started | STL Containers | Solve |
| 107 | Iterator Dereference OperatorWhich operator is used to access the element that an STL iterator currently poin... | easy | ○ Not Started | STL Containers | Solve |
| 108 | Which Containers Store Unique Values?Which STL containers automatically reject duplicate values or keys?... | easy | ○ Not Started | STL Containers | Solve |
| 109 | Do STL Containers Auto-Resize?Which statement about memory management in standard STL containers is correct?... | easy | ○ Not Started | STL Containers | Solve |
| 2 | Reference vs CopyWhat is the output of this code?... | medium | ○ Not Started | Variables | Solve |
| 4 | Class ConstructorWhat is the output of this code?... | medium | ○ Not Started | Classes | Solve |
| 7 | Pointer Dereference OutputWhat is the output of this code?... | medium | ○ Not Started | Pointers | Solve |
| 8 | Inheritance AccessWhich access specifier allows a derived class to access a member, but keeps it h... | medium | ○ Not Started | Classes | Solve |
| 11 | Default Function ArgumentWhat is the output of this code?... | medium | ○ Not Started | Functions | Solve |
| 15 | Function OverloadingWhat is the output of this code?... | medium | ○ Not Started | Functions | Solve |
| 17 | Increment OperatorsWhat is the output of this code?... | medium | ○ Not Started | Variables | Solve |
| 31 | Wrong Delete on ArrayThis code has a subtle bug. What is the issue?... | medium | ○ Not Started | Dynamic Memory | Solve |
| 32 | Pointer to Local VariableThis code compiles with a warning but produces unpredictable output. What is the... | medium | ○ Not Started | Dynamic Memory | Solve |
| 33 | Missing Assignment OperatorThis class has a destructor and copy constructor, but the code still crashes. Wh... | medium | ○ Not Started | Rule of Three | Solve |
| 34 | Shallow Copy BugThis code crashes when the objects are destroyed. What is the bug in the copy co... | medium | ○ Not Started | Rule of Three | Solve |
| 35 | Rule of Three ViolationThis class manages dynamic memory. Which rule does it violate and what could go ... | medium | ○ Not Started | Rule of Three | Solve |
| 36 | Object SlicingThe programmer expects this to print `"Cat meows"`, but it prints `"Animal speak... | medium | ○ Not Started | Polymorphism | Solve |
| 37 | Non-Virtual Destructor LeakThis code has a subtle bug when `delete base` runs. What is the issue?... | medium | ○ Not Started | Polymorphism | Solve |
| 38 | Method Hiding in Derived ClassThis code fails to compile on the marked lines. What is the issue?... | medium | ○ Not Started | Inheritance | Solve |
| 39 | Diamond Inheritance AmbiguityThis code fails to compile. What is the issue?... | medium | ○ Not Started | Inheritance | Solve |
| 40 | Accidental Method Signature MismatchThe programmer expects this to print `"Derived: 42"`, but it prints `"Base: 42"`... | medium | ○ Not Started | Polymorphism | Solve |
| 45 | The noexcept SpecifierWhat does the `noexcept` specifier do when added to a function declaration in C+... | medium | ○ Not Started | Exceptions | Solve |
| 46 | Catch Block OrderingThis code has a problem related to the order of catch blocks. What is the issue?... | medium | ○ Not Started | Exceptions | Solve |
| 47 | Catch by Value Causes SlicingWhat is the output of this code?... | medium | ○ Not Started | Exceptions | Solve |
| 48 | Bare throw RethrowsWhat is the output of this code?... | medium | ○ Not Started | Exceptions | Solve |
| 49 | Exception Thrown in ConstructorWhat is the output of this code?... | medium | ○ Not Started | Exceptions | Solve |
| 50 | Unhandled Exception BehaviorWhat happens when a C++ program throws an exception that is never caught by any ... | medium | ○ Not Started | Exceptions | Solve |
| 55 | Template Type DeductionWhat is the output of this code?
```cpp
#include <iostream>
using namespace std... | medium | ○ Not Started | Templates | Solve |
| 56 | Two-Type Template Class OutputWhat is the output of this code?
```cpp
#include <iostream>
#include <string>
u... | medium | ○ Not Started | Templates | Solve |
| 57 | Template with Two Type ArgumentsWhat is the output of the following program?
```cpp
#include <iostream>
#includ... | medium | ○ Not Started | Templates | Solve |
| 58 | Template Instantiation FailureThe following code fails to compile at the call site. Why?
```cpp
#include <ios... | medium | ○ Not Started | Templates | Solve |
| 65 | setfill OutputWhat is the output of the following code?
```cpp
#include <iostream>
#include <... | medium | ○ Not Started | Streams | Solve |
| 69 | seekg and tellgAn `ifstream` has an internal get position tracking the next character to read. ... | medium | ○ Not Started | Streams | Solve |
| 70 | Stream Go TestWhich loop is the correct idiomatic "go test" for reading integers from a stream... | medium | ○ Not Started | Streams | Solve |
| 74 | const Reference ParameterWhy would you declare a function parameter as `const string&` rather than just `... | medium | ○ Not Started | Functions | Solve |
| 75 | Base Class as Function ParameterWhat is the advantage of writing a function with a base class reference paramete... | medium | ○ Not Started | Functions | Solve |
| 78 | substr ParametersWhat does `s.substr(2, 4)` return when `s = "Hello World"`?... | medium | ○ Not Started | Strings | Solve |
| 80 | stoi Stops at Non-DigitWhat does `stoi("42abc")` return in C++?... | medium | ○ Not Started | Strings | Solve |
| 85 | Vector Insertion PerformanceWhich insertion operation on std::vector runs in O(1) amortized time, and why is... | medium | ○ Not Started | STL Containers | Solve |
| 87 | How Deque Stores ElementsHow does std::deque store its elements internally, and how does this differ from... | medium | ○ Not Started | STL Containers | Solve |
| 91 | List Iterator TypeWhat type of iterator does std::list provide, and what limitation does this crea... | medium | ○ Not Started | STL Containers | Solve |
| 93 | List Insertion SpeedWhat is the time complexity of inserting an element into the middle of a std::li... | medium | ○ Not Started | STL Containers | Solve |
| 96 | Set Iterator Type and Read-Only AccessWhat type of iterator does std::set provide, and can you modify elements through... | medium | ○ Not Started | STL Containers | Solve |
| 99 | Map Subscript Operator BehaviorWhat does map[key] do if the key does not already exist in the map?... | medium | ○ Not Started | STL Containers | Solve |
| 100 | Map Iterator Dereference TypeWhen you dereference a std::map<string, int> iterator, what type do you get?... | medium | ○ Not Started | STL Containers | Solve |
| 102 | Inserting a Duplicate Key in std::mapWhat happens when you call map.insert({"age", 30}) and the key "age" already exi... | medium | ○ Not Started | STL Containers | Solve |
| 103 | Which Containers Use Contiguous Memory?Which standard STL containers guarantee that all elements are stored in a single... | medium | ○ Not Started | STL Containers | Solve |
| 105 | Which Containers Support Random Access Iterators?Which STL containers provide random access iterators that support +n and -n arit... | medium | ○ Not Started | STL Containers | Solve |
| 18 | Virtual Function ConceptWhat is the purpose of the `virtual` keyword when used on a method in a base cla... | hard | ○ Not Started | Classes | Solve |
| 20 | Static Class MemberWhat is the output of this code?... | hard | ○ Not Started | Classes | Solve |