C++
The rules that govern the correct order and usage of the elements of a language are called the... of the language.
Syntax
An error in a program that involves a violation of language rules will be detected at... time.
compile
Write a statement that prints Hello World to the screen.
cout << "Hello World";
Suppose your name was Alan Turing. Write a statement that would print your last name, followed by a comma, followed by your first name. Do not print anything else (that includes blanks)
cout << "Turing,Alan";
Given an integer variable count, write a statement that writes the value of count to standard output.
cout << count;
Division by zero when the program is executing is an example of a ... error.
run-time
Write the include directive needed to allow use of the various I/O operators such as cout and cin.
#include <iostream> using namespace std;
Write a complete program that prints Hello World to the screen
#include <iostream> using namespace std; int main() { cout << "Hello World"; return 0; }
Write a complete program that -declares an integer variable, -reads a value from the keyboard into that variable, and -writes to standard output the square of the variable's value. Besides the number, nothing else should be written to standard output.
#include <iostream> using namespace std; int main() { int num; cin >> num; cout << num * num; return 0; }
The purpose of testing a program with different combinations of data is to expose run-time and... errors.
logical