Midterm Review,  CPSC 110,

Some things you should know: 

 

This is NOT an all encompassing list, but it should help.

 

Be sure to look over your quizzes and the reviews posted for them !

Also look over your homework assignments.

This midterm will be ALL true/false and multiple choice – bring a scantron and a pencil with you to class. (The scantron needed is the full page gray/brown one).

 

  1. Your Name, Your ID, Your Section Number
  2. Number of bits in a byte, Number of bytes in a kilobyte etc.
  3. Binary numbers and decimal numbers.
  4. What are some high level and low level languages (what’s the difference between them?)
  5. What error types are there? What detects which kind?
  6. Syntax (of a program language) is what?
  7. What is type compatibility (see chapter 2 and notes chap_02_part_b.ppt)?
  8. What is Software Engineering?
  9. What are the phases of the software life cycle?
  10. What is robustness?
  11. Comments increase the readability of code and provide program documentation they are NOT compiled.
  12. This class is about Problem Solving (in a structured way (using Turbo Pascal) ).
  13. Read, Readln, Write, Writeln are what? How do you use them?
  14. How do you format the output of type real (i.e. x = 45.679, write( x : 5: 2) outputs what ?)
  15. What is an expression in Pascal? (Are they found in if statements? while statements? assignment statements? etc)
  16. Understand Boolean values and expressions (be able to evaluate them, see also short circuit eval).
  17. A branching statement in Pascal would be written how?
  18. Understand MOD and DIV.
  19. Be aware of some of the ‘built in’ functions of Pascal – like, but not limited to, sqrt, rand, round, trunc, ln, exp, etc.
  20. What is a CONST? Where are they used/defined in a Pascal program?
  21. Understand Loops (WHILE, FOR and REPEATs) – and nested loops.
  22. How do you increment or decrement a character variable (see pred and ????)
  23. What is a parameter? What are the types of parameters?
  24. What are valid parameter names (same as valid variable names).
  25. What is the difference between an actual variable parameter and an actual value parameter?
  26. What is the difference between a formal variable parameter and a formal value parameter?
  27. Understand CASE statements (relate them to if-else if- else stmts).
  28. What is the scope of a variable? A block of code? What is a global variable? A local variable?
  29. Global variables may be used in procedures but should not be.
  30. Be able to determine the output of a given program – see the book for examples.
  31. Other things talked about in class and/or in lab and/or homework and/or some from the book.