UW Computer Science & Engineering

Intro Exam Database

142 Midterm Questions

Below are exam questions that have been used previously on midterm exams for CSE142.

1. Expressions

Name Points
Expressions 10
Expressions 10
Expressions 10
Expressions 10
Expressions 10
Expressions 10
Expressions 10
Expressions 10
Expressions 15
Expressions 10
Expressions 10
Expressions 10
Expressions 10
Expressions 10
Expressions 9

2. Parameter Mystery

Name Points
Parameter Mystery 12
Parameter Mystery 20
Parameter Mystery 20
Parameter Mystery 20
Parameter Mystery 20
Parameter Mystery 20
Parameter Mystery 12
Parameter Mystery 15
Parameter Mystery 20
Parameter Mystery 20
Parameter Mystery 20
Parameter Mystery 12
Parameter Mystery 20
Parameter Mystery 15
Parameter Mystery 20
Parameter Mystery 12
Parameter Mystery 12
Parameter Mystery 12
Parameter Mystery 15
Parameter Mystery 15
Parameter Mystery 15
Parameter Mystery 15
Parameter Mystery 15
Parameter Mystery 15

3. If/Else Simulation

Name Points
If/Else Simulation 12
If/Else Simulation 12
If/Else Simulation 12
If/Else Simulation 12
If/Else Simulation 12
If/Else Simulation 13
If/Else Simulation 12
If/Else Simulation 12
If/Else Simulation 10
If/Else Simulation 15
If/Else Simulation 10
If/Else Simulation 10
If/Else Simulation 9

4. While Loop Simulation

Name Points
While Loop Simulation 12
While Loop Simulation 12
While Loop Simulation 12
While Loop Simulation 12
While Loop Simulation 12
While Loop Simulation 15
While Loop Simulation 15
While Loop Simulation 15
While Loop Simulation 15
While Loop Simulation 15
While Loop Simulation 15
While Loop Simulation 15
While Loop Simulation 15
While Loop Simulation 15
While Loop Simulation 12
While Loop Simulation 12
While Loop Simulation 10
While Loop Simulation 10
While Loop Simulation 10
While Loop Simulation 15
While Loop Simulation 14

5. Assertions

Name Points
Assertions 15
Assertions 15
Assertions 15
Assertions 15
Assertions 15
Assertions 15
Assertions 15
Assertions 15
Assertions 15
Assertions 15
Assertions 15
Assertions 15
Assertions 15
Assertions 15
Assertions 15
Assertions 15
Assertions 15
Assertions 15
Assertions 15
Assertions 15
Assertions 15
Assertions 15
Assertions 15
Assertions 15
Assertions 15

6. Programming - Medium

Name Points
spinWheel 15
balanceCheckbook 15
betOnce 15
sumTo 15
numUnique 15
printRange 15
rollDoubles 15
before 15
printMultiples 15
minHailstoneValue 15
quadrant 15
printTwoDigit 15
hasOddEven 15
findRange 15
printNumbers 15
hasMidpoint 15
flip 15
rockPaperScissors 15
longestWord 15
getOddInteger 15
monthApart 20
sequenceSum 15
areReversals 15
printGuesses 15
enoughTimeForLunch 15
containsBothDigits 14
hopscotch 20
isBalanced 20
adder 20
graduation 15
cheerleader 15
canMakeChange 20
meetings 15
longestName 20
largerDigits 15
Ant 15
isPowerOfTwo 15
closerDistance 15
smallest2 15
anglePairs 15
xo 15
dominant 15
invest 15
dogHears 15
speedingTicket 15
twoConsecutive 15
stitching 15
guess 18
nextWord 18
countLetter 21
callPitch 15

7. Programming - Harder

Name Points
sameDashes 9
digitSum 10
weave 10
printStripped 10
digitsInARow 9
undouble 9
numWords 9
increasingDigits 9
favoriteLetter 10
randomRects 10
findAllPerfectUpto 9
printSquare 9
baseball 10
lucky 10
highLow 10
sameFlip 10