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