Q 01/05

C++'s creator joked that C makes it easy to shoot yourself in the foot, but C++ blows off what?

A) Your other foot

B) Your whole leg

C) Both your hands

D) Your entire arm

Answer · why

B) Your whole leg

Your whole leg is the punchline: he said C++ makes the mistake harder to make but far worse when it happens. He confirms saying it around 1986, and ad...

Q 02/05

Which Danish computer scientist began work in 1979 on the extension of C that grew into C++?

A) Bjarne Stroustrup

B) Anders Hejlsberg

C) Dennis Ritchie

D) David Heinemeier Hansson

Answer · why

A) Bjarne Stroustrup

Bjarne Stroustrup wanted a language as efficient and flexible as C that also offered high-level features for organising large programs. Nearly two dec...

Q 03/05

The '++' in the name C++ is which operator from C, signalling a step beyond the older language?

A) Addition

B) Concatenation

C) Increment

D) Exponentiation

Answer · why

C) Increment

Increment is what ++ does in C: it adds one to a variable. As the language's creator likes to point out, the slightly shorter name "C+" is a syntax er...

Q 04/05

At which research lab, also the birthplace of the transistor and Unix, was C++ first developed?

A) Xerox PARC

B) IBM Research

C) MIT Lincoln Lab

D) Bell Labs

Answer · why

D) Bell Labs

Bell Labs, then the research arm of AT&T, is also credited with the laser, information theory and the C language on which C++ was built.

Q 05/05

Which game engine from Epic Games, the technology behind Fortnite, is written in C++?

A) Unreal

B) Unity

C) Godot

D) CryEngine

Answer · why

A) Unreal

Unreal Engine is written in C++, and Epic removed its home-grown UnrealScript language from version 4 so that game logic would be written in C++ as we...

Want the full quiz?

Play the full C++ quiz — scored, streaked, and passable to a friend.

Play it on BrainPickle