Skip to content

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

Test MDX File V2

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

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.

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}

Here is an example of a Code Gap Check (C++), expanded by default …

Code Gap Check
C++

Complete the Hello World Program

1#include <iostream>
2using namespace std;
3
4int main() {
5 // Output the greeting to the console
6 // select an option below
7 return 0;
8}
cout << "Hello world!\n";
printf("Hello world!\n");
std::print("Hello world!");
System.out.println("Hello world!");

Here is a Code Gap Check (Rust), collapsed by default …

Code Gap Check
Rust

Complete the Rust Iterator