Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

📝 Scored Quiz Page

/
Knowledge Test Score Board
· 0%

Work through the questions below — your score updates as you go.

Keep going · grade bands mapped to DCU's honours scale

target03:00

Only your first attempt at each question counts toward this score. Reload the page to reset.

This page has 3 scored items. The board above updates as you answer each one correctly, and the score never goes down on a retry.

Q1
Quiz
Select 0/3

Which of the following are valid C++ access modifiers?

private
internal
public
protected
Q2
Code Cloze
C++

Complete the Main Function

Drag snippets from the pool into the blanks so the program produces the output shown, then click Submit.

1#include <iostream>
2
3····· main() {
4 std::cout << "Hello, Edge!" << std::·····;
5 ····· 0;
6}

Available Snippets

endl
flush
return
end
int
void
exit
Q3
Quiz
Select 0/1

What is the primary purpose of a virtual destructor in a C++ base class?

Prevent the compiler generating a default destructor.
Destroy the object immediately, ignoring smart pointers.
Ensure derived destructors run when deleting through a base pointer.
Zero out all member variables before release.