Quiz Answer Key and Fun Facts
1. What is a computer program?
2. The central processing unit or CPU is the heart of a computer. Its job is to fetch instructions, follow those instructions, and then produce a result. But, the CPU can only follow instructions that are written in what is called machine language. If you were to look at a program written in machine language what would you see?
3. It would be tedious for human beings to write programs using nothing but binary code. For this reason, computer programming languages which use words instead of numbers were invented. Special software is used to convert programs written in these higher level languages into machine language. What is the generalized name for the type of special software that is used to convert source code that is written in C++?
4. There are elements that are common to nearly all programming languages. They can be classified as key words, programmer defined symbols, operators, and punctuation. A language's syntax dictates how these elements are used. Which of these choices would be considered an operator in C++?
5. Variables are programmer defined symbols. But, in C++ terms, what is a variable?
6. Statement is also an important term in programming. Which of these choices best defines it?
7. What form of punctuation must end all C++ statements?
8. Variables in C++ are classified by their data type. The data type determines the kind of information that the variable can store. Which of these C++ variable types would be the most obvious choice for storing a whole number?
9. Which of these C++ variable types can be used to store a floating point number?
10. If you looked at some C++ source code, near the top you would likely see a line of code that starts with a #. What does that symbol indicate?
Source: Author
slipnslide
This quiz was reviewed by FunTrivia editor
crisw before going online.
Any errors found in FunTrivia content are routinely corrected through our feedback system.