COP3330, FSU: Myers Exam 1 Actual Updated Questions And Answers, Exams of Medicine

COP3330, FSU: Myers Exam 1 Actual Updated Questions And Answers

Typology: Exams

2025/2026

Available from 01/12/2026

Ted.Bright
Ted.Bright ๐Ÿ‡บ๐Ÿ‡ธ

5

(1)

7.3K documents

1 / 7

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
COP3330, FSU: Myers Exam 1 Actual Updated Questions And
Answers
1.
Program
a list of instructions for a computer to execute
2.
Machine Language
what is necessary for the computer, but hard for people to read
3.
Assembly Language
symbolic translations of machine code, easier for people to read
4.
High Level Procedural
Allow the writing of procedures and functions for code modularity, dividing
Languages
5.
Object Oriented Lan-
guages
the work into separate actions
Ex: Pascal, Fortran, C
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
6.
Object
an encapsulation of data and functions that act upon that data
7.
3 aspects of an object
Name (variable we give it), Attributes (member data that describe what the
object is), Behavior (member functions describe what the object does)
8.
Class
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
9.
Difference between a
class and a struct
classes include the member functions because in c++ you can build objects
that encapsulate data and functions together
10.
DDU
Declare, Define, Use
11.
Class declaration
shows what an object will look like and what its available functions are, gives
an interface
12.
Class definition
implementation details, doesn't need to be seen by the user of the interface,
consists definitions of its members
pf3
pf4
pf5

Partial preview of the text

Download COP3330, FSU: Myers Exam 1 Actual Updated Questions And Answers and more Exams Medicine in PDF only on Docsity!

COP3330, FSU: Myers Exam 1 Actual Updated Questions And Answers

  1. Program a list of instructions for a computer to execute
  2. Machine Language what is necessary for the computer, but hard for people to read
  3. Assembly Language symbolic translations of machine code, easier for people to read
  4. High Level Procedural Allow the writing of procedures and functions for code modularity, dividing Languages
  5. Object Oriented Lan- guages the work into separate actions Ex: Pascal, Fortran, C 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
  6. Object an encapsulation of data and functions that act upon that data
  7. 3 aspects of an object Name (variable we give it), Attributes (member data that describe what the object is), Behavior (member functions describe what the object does)
  8. Class 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
  9. Difference between a class and a struct classes include the member functions because in c++ you can build objects that encapsulate data and functions together
  10. DDU Declare, Define, Use
  11. Class declaration shows what an object will look like and what its available functions are, gives an interface
  12. Class definition implementation details, doesn't need to be seen by the user of the interface, consists definitions of its members
  1. Class use
  1. Compilation includes what? compile stage and linking stage
  2. Compile stage syntax checked, variables and function calls checked to insure that correct declarations were made and match(but doesn't match function definitions to call yet), translates to object code, not executable program at this point
  3. Linking stage links the object code into an executable program, function calls are matched up with their definitions and the compiler checks to make sure it has one definition for every call, end result is an executable program
  4. Reasons there are two changes to a file require only that file to be recompiled and re-linked, parts of compiling libraries are distributed in pre-compiled format
  5. Compilation Errors usually syntax errors, undeclared variables, and functions, improper func- tion calls, result in failed compiling, usually provides a filename and line number indicating where it ran into trouble
  6. Linker errors usually involve undefined functions or multiply-defined functions or sym- bols, result in failed compiling
  7. Run-time errors fatal: cause program to crash during execution non-fatal: don't crash the program, but product erroneous results, occur while program is running
  8. Friend functions allow a class full access to an outside entity and its class members including its private section
  9. Conversion construc- tor has one parameter, by default the compiler will use such a constructor to enact automatic type conversions from the parameter type to the class type
  10. Explicit call f1 = Fraction(4);
  11. Implicit call f2 = 10;
  1. If a constructor with one parameter should not be used for type conversion what do you need to clarify? explicit (means only explicit calls can be made)
  2. Const 1) not allowed to change, within some scope
    1. expresses the intent more clearly to the user
    2. affects how certain items can be used
  3. Pass by value a copy is made, any r-value can be sent
  4. Pass by reference (w/ out const) no copy is made and only l-value can be sent
  5. Const reference objects passed as this make no copy but cannot be change through the reference
  6. const Member func- tions
  7. where to use const member functions the function may not change the calling object itself, can only be done to member functions of a class, member function cant change the member data constructors, accessors, friends
  8. Mutator (set functions), change member data so do not use const
  9. Accessor retrieve data from inside class, typically const, (show(), display())
  10. To ensure that a con- st object cannot be A const object may only call const member functions!!
  1. Composition refers to a stronger form of aggregation, where the embedded objects would typically not exist independent of the container object
  2. has-a relationship The relationship demonstrated by a class that contains another class
  3. Tracking variable member data variable that keeps track of how many elements are in the list
  4. How do you empty a current array list? set the tracking variable to 0