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
(76)
Correct Answer:
Verified

A

The bool data type

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

B

C++ is a case-sensitive language.

Free
(True/False)
4.9/5
(89)
Correct Answer:
Verified

True

The expression 5 / 2 evaluates to

(Multiple Choice)
4.8/5
(80)

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

(Multiple Choice)
4.8/5
(77)

Every C++ program must have

(Multiple Choice)
4.8/5
(73)

The expression 7 % 2 evaluates to

(Multiple Choice)
4.9/5
(71)

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

(Multiple Choice)
4.9/5
(83)

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

(Multiple Choice)
4.9/5
(79)

The expression 5 % 2 evaluates to

(Multiple Choice)
4.8/5
(65)

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

(Multiple Choice)
4.9/5
(78)

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

(Multiple Choice)
4.8/5
(88)

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

(Multiple Choice)
4.7/5
(78)

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

(Multiple Choice)
4.8/5
(78)

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

(True/False)
4.8/5
(78)

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

(Multiple Choice)
4.9/5
(81)

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

(True/False)
4.8/5
(74)

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

(Multiple Choice)
4.8/5
(81)

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

(True/False)
4.9/5
(82)

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

(Multiple Choice)
4.8/5
(75)
Showing 1 - 20 of 40
close modal

Filters

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