Exam 1 Topics
CS141: Introduction to Programming, Fall 2013


General Comments and Recommendations

Chapter 1: Introduction

Topics

Chapter 2: Fundamental Data Types

Vocabulary

variable
type
constant
magic number
literal
statement
expression
mod (remainder) function
declare
initialize
assignment statement
operator
operator precedence
cast
stepwise refinement

Topics

Chapter 3: Decisions

Vocabulary

if statement
condition and body
if-else statement
multi-way if-else
nested if-else
boolean value, expression
relational operator (<, >, <=, >=, ==, !=)
boolean operators (&&, ||, !)
lexicographic ordering (of Strings)
De Morgan's Laws

Topics

Chapter 4: Loops

Vocabulary

while-loop
for-loop
unwinding and hand tracing
do-while-loop
nested loop
break Statement
Loop variable, initialization, condition, update; loop body
sentinel value
pseudorandom number
counter, running total
accumulator variable

Topics