GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Karteikarten

Comp 1633 MidTerm Review

Arsh Dhillon Computer Science 1 Englisch 24 Karten

Karten in diesem Stapel (24)

  1. 1What does Testing involve(two things)?1. Verification
    2. Validation
  2. 2What is Testing for?The process of detecting bugs in code and evaluating the logic errors
  3. 3What are four basic constructs from which all programs are built?1. simple statements in sequence
    2. selection contructs
    3. repetition constructs
    4. invocation
  4. 4what is Exhaustive Testing?Try every possible input combination
  5. 5Black box analysis ?a form of functional testing
  6. 6White Box analysis ?a form of structural testing
  7. 7What is Module ?a functional unit of code
    e.g. a function
    or
    a .cpp module
    or
    a class
  8. 8Modular Testing ?testing each module as you go
    (i.e. test small pieces at a time)
  9. 9What is a stub ?a "dummy" function
  10. 10What is a test driver ?a program which tests modules by invoking them in many different ways with many different test data.
    a "dummy" main program
  11. 11Issues with One‐File Programs1. file length becomes large
    2. difficult to edit
    3.potential of code loss
    4. only 1 programmer may work on it at once
  12. 12Advantages of Multi‐File Programs1. keeps each module a manageable size
    2. modules can be edited and tested separately
  13. 13Why are header guards included?To prevent from multiple declarations
  14. 14Types of Input Error ?1. Input of legal format, but out of range for the application
    2. No input
    3. Input not of legal format
  15. 15Pros of dynamic data ?Dynamic data can expand and shrink as needed
  16. 16Size of int?4 bytes
  17. 17Size of char?1 byte
  18. 18Size of double?8 bytes
  19. 19What kind of values do pointers hold?A memory address
  20. 20What is a pointer variable?a variable which can contain a memory address
  21. 21int num = 1; int *ptr; ptr = # What does "&" do?Gives the address of the variable
  22. 22int num = 1; int *ptr; *ptr = num; What does "*" do?Evaluate the contents of the address
  23. 23___ = new Node; What does "new" do?new gets memory space of the appropriate type and returns a pointer to the dynamic variable
  24. 24delete Ptr; What does delete do?Allocated memory is returned to the heap

Informationen

Beschreibung
1 Computer Science Karteikarten am Comp 1633 MidTerm Review, erstellt von Arsh Dhillon am 28/02/2016.
Erstellt von
Arsh Dhillon
Aufrufe
1
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck