Exam 1: An Overview of Object-Oriented Programming and C++

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

What is the scope of a variable?

(Essay)
4.8/5
(36)

What is a function header and what are its components?

(Essay)
4.7/5
(35)

Object-oriented programs use ____ to carry out the same operation in a manner customized to the object.

(Multiple Choice)
4.9/5
(35)

In C++, a(n) ____ comment begins with two slashes ( // ) and continues to the end of the line on which it is placed.

(Multiple Choice)
4.8/5
(39)

In C++, ____________________ consists of any number of spaces, tabs, and Enter characters.

(Short Answer)
4.9/5
(41)
Match each term with the correct statement below.
Premises:
a real-life program used by a business
Responses:
interpreter
procedural program
compiler
Correct Answer:
Verified
Premises:
Responses:
a real-life program used by a business
interpreter
(Matching)
4.7/5
(30)

____ variables store whole numbers.

(Multiple Choice)
4.8/5
(43)

Characters may be stored in character data type variables, declared with the keyword ____.

(Multiple Choice)
4.9/5
(34)

What does it mean to compile a program?

(Essay)
4.9/5
(47)
Match each term with the correct statement below.
Premises:
information produced by a program
Responses:
output
interpreter
machine language
Correct Answer:
Verified
Premises:
Responses:
information produced by a program
output
(Matching)
4.8/5
(42)

In object-oriented programming, descendent classes can ____ all the attributes of the original (or parent) class, or they can override inappropriate attributes.

(Multiple Choice)
4.9/5
(41)
Match each term with the correct statement below.
Premises:
translates programming language instructions one line at a time
Responses:
machine language
procedural program
production program
Correct Answer:
Verified
Premises:
Responses:
translates programming language instructions one line at a time
machine language
(Matching)
4.8/5
(37)

A ____ is used to perform different tasks based on a condition.

(Multiple Choice)
4.8/5
(33)

____ variables store numbers with decimal places.

(Multiple Choice)
4.8/5
(37)

C++ refers to locations where values may be stored as ____________________ because these values are located on the left side of assignment statements.

(Essay)
4.9/5
(33)

____________________ errors are errors that are so severe that they prevent a program from executing.

(Short Answer)
4.7/5
(31)

What is low-level programming? What is high-level programming? Is programming in C++ considered low-level or high-level?

(Essay)
4.8/5
(36)

What are header files? What are preprocessor directives?

(Essay)
4.9/5
(38)

The ____ of a variable defines what kind of values may be stored in a variable and what kind of operations can be performed on it.

(Multiple Choice)
4.9/5
(35)

A(n) ____ error occurs when you use a statement that, although syntactically correct, doesn't do what you intended.

(Multiple Choice)
4.9/5
(39)
Showing 21 - 40 of 55
close modal

Filters

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