C++ One Mark
C++ One Mark
C++ One Mark
57. Data abstraction is a programming technique that relies on the separation of interface
and implementation.
58. In C++, classes provides great level of data abstraction.
59. Program statement is the part of a program that performs actions and they are called
functions.
60. The data is the information of the program which gets affected by the program functions.
61. Data abstraction is a mechanism of exposing only the interfaces and hiding the
implementation details from the user.
62. Any C++ program where you implement a class with public and private members is an
example of data encapsulation and data abstraction.
63. A class is made abstract by declaring at least one of its functions as pure
virtual function.
64. The purpose of an abstract class is to provide an appropriate base class from which other
classes can inherit.
65. Abstract classes cannot be used to instantiate objects and serves only as an interface.
66. Classes that can be used to instantiate objects are called concrete classes.
67. Exceptions provide a way to transfer control from one part of a program to another.
68. An exception is a problem that arises during the execution of a program.
69. Exceptions can be thrown anywhere within a code block using throw statement.
70. A good understanding of how dynamic memory really works in C++ is essential to
becoming a good C++ programmer.
71. C++ provides a data structure, the array, which stores a fixed-size sequential collection
of elements of the same type.
72. The arraySize must be an integer constant greater than zero and type can be any valid
C++ data type.
73. Signals are the interrupts delivered to a process by the operating system which can
terminate a program prematurely.
74. C++ signal-handling library provides function signal to trap unexpected events.
75. The preprocessors are the directives, which give instructions to the compiler to
preprocess the information before actual compilation starts.
76. Process-based multitasking handles the concurrent execution of programs.
77. Thread-based multitasking deals with the concurrent execution of pieces of the same
program.
78. C++ does not contain any built-in support for multithreaded applications.
79. Templates are the foundation of generic programming, which involves writing code in a
way that is independent of any particular type.
80. A namespace is designed to overcome this difficulty and is used as additional
information to differentiate similar functions, classes, variables.
81. Constants refer to fixed values that the program may not alter and they are called literals.
82. Constants can be of any of the basic data types and can be divided into Integer Numerals,
Floating-Point Numerals, Characters, Strings and Boolean Values.
83. An integer literal can be a decimal, octal, or hexadecimal constant.
84. A floating-point literal has an integer part, a decimal point, a fractional part, and an
exponent part.
85. Character literals are enclosed in single quotes.
86. Programming languages provide various control structures that allow for more
complicated execution paths.
87. C++ programming language provides the following type of loops to handle looping
requirements.
88. A pointer is a variable whose value is the address of another variable.
89. The asterisk used to declare a pointer is the same asterisk that you use for multiplication.
90. The predefined object cout is an instance of ostream class.
91. The cout object is said to be "connected to" the standard output device, which usually is
the display screen.
92. The predefined object cin is an instance of istream class.
93. The cin object is said to be attached to the standard input device, which usually is the
keyboard.
94. The structure tag is optional and each member definition is a normal variable definition,
such as int i; or float f; or any other valid variable definition.
95. A modifier is used to alter the meaning of the base type so that it more precisely fits the
needs of various situations.
96. The modifiers signed and unsigned can also be used as prefix to long or short modifiers.
97. Program comments are explanatory statements that you can include in the C++ code.
98. A loop statement allows us to execute a statement or group of statements multiple times.
99. C++ programming language provides the following type of loops to handle looping
requirements.
100. Loop control statements change execution from its normal sequence.