DETAILED ANSWERS (VERIFIED ANSWERS) ALREADY
GRADED A+
Program Ans✓✓✓a list of instructions for a computer to execute
Machine Language Ans✓✓✓what is necessary for the computer, but
hard for people to read
Assembly Language Ans✓✓✓symbolic translations of machine code,
easier for people to read
High Level Procedural Languages Ans✓✓✓Allow the writing of
procedures and functions for code modularity, dividing the work into
separate actions
Ex: Pascal, Fortran, C
Object Oriented Languages Ans✓✓✓Encapsulate their data and
procedures together in units called objects, make items modular, more
readable for people and need to be translated by the machine
C++, Java, Smalltalk
Object Ans✓✓✓an encapsulation of data and functions that act upon
that data
, 3 aspects of an object Ans✓✓✓Name (variable we give it), Attributes
(member data that describe what the object is), Behavior (member
functions describe what the object does)
Class Ans✓✓✓a blueprint for objects, user defined type that describes
what a certain type of object will look like, consists of a declaration and
a definition
Difference between a class and a struct Ans✓✓✓classes include the
member functions because in c++ you can build objects that encapsulate
data and functions together
DDU Ans✓✓✓Declare, Define, Use
Class declaration Ans✓✓✓shows what an object will look like and what
its available functions are, gives an interface
Class definition Ans✓✓✓implementation details, doesn't need to be
seen by the user of the interface, consists definitions of its members
Class use Ans✓✓✓use of an item through its interface, the user uses the
class by creating objects and calling the available functions through
those objects