C++
Which of the following IS a legal identifier?
LANGUAGE: C++ CHALLENGE: Which of the following IS a legal identifier?
Read MoreWhich of the following is NOT a legal identifier?
LANGUAGE: C++ CHALLENGE: Which of the following is NOT a legal identifier?
Read MoreAn identifier that cannot be used as a variable name is a ____ word.
LANGUAGE: C++ CHALLENGE: An identifier that cannot be used as a variable name is a ____ word.
Read MoreA location in memory used for storing data and given a name in a computer program is called a
LANGUAGE: C++ CHALLENGE: A location in memory used for storing data and given a name in a computer program is called a ____ because the data in the location can be changed.
Read MoreEvery C++ program must contain a ____ function.
LANGUAGE: C++ CHALLENGE: Every C++ program must contain a ____ function.
Read MoreWhich of the following is not a statement?
LANGUAGE: C++ CHALLENGE: Which of the following is not a statement?
Read MoreRearrange the following code so that it forms a correct program that prints out the letter Q:
LANGUAGE: C++ CHALLENGE: Rearrange the following code so that it forms a correct program that prints out the letter Q:
Read MoreWrite the include directive needed to allow use of the various I/O operators such as cout and cin.
LANGUAGE: C++ CHALLENGE: Write the include directive needed to allow use of the various I/O operators such as cout and cin.
Read MoreWrite 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.
LANGUAGE: C++ CHALLENGE: 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 .
Read MoreGiven an integer variable count, write a statement that writes the value of count to standard output.
LANGUAGE: C++ CHALLENGE: Given an integer variable count, write a statement that writes the value of count to standard output.
Read MoreWrite a complete program that would print your last name, followed by a comma, followed by your first name.
LANGUAGE: C++ CHALLENGE: Suppose your name was George Gershwin. Write a complete program that would print your last name, followed by a comma, followed by your first name. Do not print anything else (that includes blanks).
Read MoreWrite a complete program that prints Hello World to the screen.
LANGUAGE: C++ CHALLENGE: Write a complete program that prints Hello World to the screen.
Read More