C++ Programming Flashcards
Where does C++ inherit most of its syntax and structure from? Is all C code valid in C++?
What are the basic elements of a C++ program?
What are most programs made up of? What is required for a program as an entry point?
How many main functions should / can exist?
Exactly one
What must be included to use ‘cout’?
Is C++ a compiled or interpreted language? C++ source code must be ___ and ___.
How can you, from the command line, build a C++ executable in one step? Multiple steps?
What is a statement? What is the simplest statement in C++?
What is an expression and a type?
What types does C++ have in common with C?
What are the different forms of constant expressions?
Which of the following are valid / invalid? Why?
What are the set of operators in C++? Does C++ do conversions?
What are statements and compound statements / blocks? Do blocks have a scope?
What is C++ control flow? What is a sequence? Selection? Repetition?
What are the different ways of doing multi-way selection in C++?
What are the different forms of repetition control flow?
while loops, for loops, do-while loops
What are structures? What is the keyword? What is the difference between a structure and a class with regards to members?
What is the syntax of declaring a structure?
What is the difference between C and C++ with regards to declaring an instance of a struct?