Exam 2: Basic Elements of C++

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

Why are comments important in a program?

Free
(Short Answer)
5.0/5
(43)
Correct Answer:
Verified

A well-documented program is easier to understand and modify, even a long time after you originally wrote it. You use comments to document programs. Comments should appear in a program to explain the purpose of the program, identify who wrote it, and explain the purpose of particular statements.

What does these terms refer to: - \gg Cast operator (type conversion, type casting):

Free
(Short Answer)
4.8/5
(33)
Correct Answer:
Verified

used to explicitly convert one data type to another data type

What does these terms refer to: - \gg Mixed expression:

Free
(Short Answer)
4.8/5
(33)
Correct Answer:
Verified

an expression that has operands of different data types

A(n) ____________________ operator has only one operand.

(Short Answer)
4.8/5
(35)

What does these terms refer to: - \gg Operands:

(Short Answer)
4.7/5
(36)

What does these terms refer to: - \gg Floating-point notation:

(Short Answer)
4.8/5
(38)

What is the syntax for declaring single or multiple variables?

(Short Answer)
5.0/5
(38)

What does these terms refer to: - \gg Run-together word:

(Short Answer)
4.8/5
(43)

An expression that has operands of different data types is called a(n) ____________________.

(Short Answer)
4.8/5
(39)

What does these terms refer to: - \gg Output statement:

(Short Answer)
4.7/5
(37)

What does these terms refer to: - \gg Binary operator:

(Short Answer)
4.8/5
(36)

What does these terms refer to: - \gg Simple data type:

(Short Answer)
4.9/5
(42)

What does these terms refer to: - \gg Identifier:

(Short Answer)
4.7/5
(43)

What does these terms refer to: - \gg Enumeration:

(Short Answer)
4.9/5
(33)

What does these terms refer to: - \gg Decrement operator:

(Short Answer)
4.9/5
(35)

The semicolon is also called the ____________________.

(Short Answer)
4.8/5
(37)

What does these terms refer to: - \gg Arithmetic expression:

(Short Answer)
4.9/5
(38)

What does these terms refer to: - \gg Function (subprogram):

(Short Answer)
4.7/5
(38)

What does these terms refer to: - \gg Source code:

(Short Answer)
5.0/5
(27)

What does these terms refer to: - \gg Executable statements:

(Short Answer)
4.9/5
(38)
Showing 1 - 20 of 76
close modal

Filters

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