Posts Tagged ‘C++’
An 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 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 MoreWrite a statement that would print your last name, followed by a comma, followed by your first name.
LANGUAGE: C++ CHALLENGE: 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).
Read MoreWrite a statement that prints Hello World to the screen.
LANGUAGE: C++ CHALLENGE: Write a statement that prints Hello World to the screen.
Read MoreSpecify the seating order as the names separated by commas.
CHALLENGE: Five friends are going to the theater. They have purchased a row of five seats with an aisle on either end. James doesn’t want to sit next to Jill Betty and Herb are dating and want to sit next to each other Bob must sit on an aisle Provide a seating order that conforms…
Read More