MGT 317,HRM 326,GSP 125,CMGT 582,FIN 585,ACCT 505,CIS 517,CIS 517,BUS 661,ECET 365 , ,

UOP GSP 125 Midterm Exam NEW

Check this A + tutorial guideline at

http://www.assignmentclick.com/gsp-125-devry/gsp-125-midterm-exam-latest

For more classes visit

http://www.assignmentclick.com/

 

 

  1. Accidentally inheriting from the same class has caused terrible ambiguity, and is known as (Points: 2)
           inheritance overload.
           the dreaded diamond of death.
           From Neumann bottleneck.
           There is nothing wrong with inheriting the same class more than once.
     
    Question 2. 2. Creating classes in separate .h and .cpp files is good because (Points: 2)
           moving code to separate files is good design (separation of concerns).
           separating declaration from definition allows de-coupling of dependencies.
           Many smaller files are easier to maintain by teams of programmers.
           All of the above
     
    Question 3. 3. Virtual methods are resolved at runtime by using a (Points: 2)
           dynamic list.
           virtual table.
           vector.
           haystack.
     
    Question 4. 4. Allowing many different types to be treated in the same way is called (Points: 2)
           polymorphism.
           multi typecasting.
           deep-copy.
           virtual.
     
    Question 5. 5. Heap memory is where (Points: 2)
           global variables and raw machine code are stored.
           local variables and execution of instructions is kept track of.
           dynamic memory is allocated to.
           None of the above
     
    Question 6. 6. Memory leaks in a computer program are (Points: 2)
           not a big deal because operating systems clean up all program memory.
           easy to find and debug in C and C ++.
           difficult and important to manage in C and C ++.
           a problem in every programming language.
     
    Question 7. 7. Virtual functions have a cost when compared to normal (statically bound) functions; specifically, they are (points: 2)
           slower and less optimizable.
           less dynamic.
           unusable with polymorphism.
           more difficult to read than external or static functions.
     
    Question 8. 8. The explicit keyword (Points: 2)
           labels data as being volatile.
           prevents constructors from being automatically called by implicit typecasting.
           marks a method as an override of a polymorphic base.
           identifies a variable that can be referenced but is defined in another compilation unit.
     
    Question 9. 9. Preprocessor macros (Points: 2)
           should be advised if other langauge features want to work just as well.
           can easily confuse other progammers not familiar with your macro.
           should be undefined after use to avoid polluting the global namespace.
           All of the above
     
    Question 10.10. Which piece of the C / C ++ compile tool chain arranges compiled code into the final executable? (Points: 2)
           Preprocessor
           Compiler
           Linker
           Debugger

 

information

 

Diskussion