Exam 1: C++ Class and Function Fundamentals

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

Dividing a program into functions

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

D

The default access level assigned to members of a class is              

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

A

Which of the following operators allow defining the member functions of a class outside the class?

Free
(Multiple Choice)
4.9/5
(37)
Correct Answer:
Verified

A

There is nothing like a virtual constructor of a class.

(True/False)
4.8/5
(35)

Variables declared in the body of a particular member function are known as data members and can be used in all member functions of the class.

(True/False)
4.8/5
(26)

For the object for which it was called, a const member function

(Multiple Choice)
4.8/5
(32)

What is the difference between struct and class in terms of Access Modifier?

(Multiple Choice)
4.8/5
(34)

Every class has at least one constructor function, even when none is declared.

(True/False)
4.8/5
(38)

Which one of the following is not a valid reserved keyword in C++?

(Multiple Choice)
4.8/5
(41)

Under what conditions a destructor destroys an object?

(Multiple Choice)
4.8/5
(40)

When class B is inherited from class A, what is the order in which the constructers of those classes are called

(Multiple Choice)
4.9/5
(37)

A function argument is

(Multiple Choice)
4.8/5
(39)

A function's single most important role is to

(Multiple Choice)
4.9/5
(41)

What is a constructor?

(Multiple Choice)
4.9/5
(46)

In a class definition, data or functions designated private are accessible

(Multiple Choice)
4.7/5
(27)

Which type of class has only one unique value for all the objects of that same class?

(Multiple Choice)
4.7/5
(38)

An expression

(Multiple Choice)
4.8/5
(30)

Classes are useful because they

(Multiple Choice)
4.8/5
(34)

It's perfectly all right to use variables of different data types in the same arithmetic expression.

(True/False)
5.0/5
(29)

A variable of type char can hold the value 301.

(True/False)
4.8/5
(35)
Showing 1 - 20 of 21
close modal

Filters

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