Exam 2: Introduction to C Plus Plus

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

Which of the following will cause the next output to begin on a new line?

Free
(Multiple Choice)
5.0/5
(33)
Correct Answer:
Verified

A

The bool data type

Free
(Multiple Choice)
4.8/5
(32)
Correct Answer:
Verified

B

C++ is a case-sensitive language.

Free
(True/False)
5.0/5
(32)
Correct Answer:
Verified

True

The expression 5 / 2 evaluates to

(Multiple Choice)
4.8/5
(32)

What value will be assigned to the variable number by the following statement? Int number = 7.8;

(Multiple Choice)
4.9/5
(29)

Every C++ program must have

(Multiple Choice)
4.8/5
(32)

The expression 7 % 2 evaluates to

(Multiple Choice)
4.9/5
(26)

Which of the following definitions will allow the variable total to hold floating-point values?

(Multiple Choice)
4.9/5
(34)

Which of the following is/are valid C++ identifiers?

(Multiple Choice)
4.9/5
(27)

The expression 5 % 2 evaluates to

(Multiple Choice)
4.7/5
(25)

The ________ is used to display information on the computer's screen.

(Multiple Choice)
4.9/5
(42)

Which of the following definitions will allow the variable average to hold floating-point values?

(Multiple Choice)
4.8/5
(33)

Which of the following is/are valid C++ identifiers?

(Multiple Choice)
4.7/5
(35)

A ________ is used to mark the end of a complete C++ programming statement.

(Multiple Choice)
4.8/5
(34)

The following is a legal C++ statement to define and initialize a variable. char firstName = "Jack";

(True/False)
4.8/5
(32)

What value will be assigned to the variable number by the following statement? Int number = 7.8;

(Multiple Choice)
4.9/5
(42)

A variable of the char data type can hold a set of characters like "January".

(True/False)
4.7/5
(33)

#include <iostream> is an example of a(n)

(Multiple Choice)
4.7/5
(31)

The following two statements both assign the value 5 to the variable dept. 5 = dept; dept = 5;

(True/False)
4.9/5
(38)

You must have a(n) ________ for every variable you include in a program.

(Multiple Choice)
4.7/5
(28)
Showing 1 - 20 of 40
close modal

Filters

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