Exam 2: Introduction to C

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

When typing your source code into the computer, you should be careful since most of your C++ instructions, header files, and variable names are case sensitive.

(True/False)
4.7/5
(36)

What will the following code display? Cout << "Monday"; Cout << "Tuesday"; Cout << "Wednesday";

(Multiple Choice)
4.9/5
(33)

Which of the following statements correctly assigns the character M to the variable named letter?

(Multiple Choice)
4.8/5
(35)

What is the value of number after the following statements execute? Int number; Number = 18 / 4;

(Multiple Choice)
4.8/5
(31)

Which of the following lines must be included in a program that has string variables?

(Multiple Choice)
4.8/5
(33)

Every complete C++ program must have a

(Multiple Choice)
4.9/5
(40)

Which control sequence is used to skip over to the next horizontal tab stop?

(Multiple Choice)
4.8/5
(40)

You must have a _____________ for every variable you intend to use in a program.

(Multiple Choice)
4.9/5
(31)

C++ does not have a built-in data type for storing strings of data.

(True/False)
4.8/5
(35)

The data type of a variable whose value can be either true or False is

(Multiple Choice)
4.7/5
(39)

In a C++ program, two slash marks (//) indicate

(Multiple Choice)
4.8/5
(26)

In C++, key words are written in all lowercase letters.

(True/False)
4.9/5
(27)

A variable's __________ is the part of the program that has access to the variable.

(Multiple Choice)
4.9/5
(32)

Which of the following is not a valid C++ identifier?

(Multiple Choice)
4.8/5
(37)

What will the following code display? Int number = 23; Cout << "The number is " << "number" << endl;

(Multiple Choice)
4.8/5
(33)

In C++11, if you want an integer literal to be treated as a long long int, you can append __________ at the end of the number.

(Multiple Choice)
4.8/5
(31)

The preprocessor reads a program before it is compiled and only executes those lines beginning with # symbol.

(True/False)
4.7/5
(38)

For every opening brace ({) in a C++ program, there must be a

(Multiple Choice)
5.0/5
(39)

Which part of the following line is ignored by the compiler? Double userName = "janedoe"; // user's name is janedoe

(Multiple Choice)
4.8/5
(45)

The __________ is(are) used to display information on the computer's screen.

(Multiple Choice)
4.8/5
(34)
Showing 21 - 40 of 62
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)