Skip to content

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

Test MDX File

This is a Test MDX File for my Quiz setup. Test callout:

Test content… Remember to Test the Light and Dark themes on the top RHS.

C++ is a powerful, object-oriented programming language that has played a significant role in software development since its inception. Developed by Bjarne Stroustrup at Bell Labs (now AT&T Labs) between 1983 and 1985, C++ built upon the foundations of the C language. C itself has a rich lineage, tracing back to the B language (1970) by Ken Thompson and ultimately to the BCPL language.

Test code example of cout, which should be highlighted, the using namespace call should also be highlighted:

// Hello World Application
#include <iostream> // 1
using namespace std; // 2
int main() { // 3
cout << "Hello world!\n"; // 4
return 0; // 5
}

Test rust code with a diff:

// Enum for messages in a game, with tuple-like data
enum Message {
Quit, // No data
Move(i32, i32), // Holds x and y coordinates
Write(i32), // Holds a int message
Write(String), // Holds a String message
ChangeColor(i32, i32, i32), // Holds RGB values
}

Test bash output:

Terminal window
User1 email: derek@dcu.ie
Example Output

Here is an example of a Quiz that is minimised by default from the MDX page.

Knowledge Check

Which of the following statements about the 'volatile' keyword are true?

Here is an example of a Quiz that is expanded by default from the MDX page.

Here is an example of a Code debug Quiz component …

Code Check

Spot the Hardware Polling Bug

1int sensor_value = 0;
2
3void waitForSensor() {
4 // Wait until the hardware updates the sensor_value to 1
5 while(sensor_value == 0) {
6 // Do nothing, just wait...
7 }
8 std::cout << "Sensor triggered!" << std::endl;
9}
Knowledge Check

What is true regarding the shortest valid C++ program?

It requires the iostream header.
It must contain a main() function.
It must explicitly return 0.
An empty method body is valid.
Knowledge Check

What is true regarding the shortest valid C++ program?

It requires the iostream header.
It must contain a main() function.
It must explicitly return 0.
An empty method body is valid.