Below are exam questions that have been used previously on midterm exams for CSE 142. Some questions may not exactly represent the problems you will see as professors have varying styles of question writing. Happy solving.
26 Similar Available
Problem 1: Expressions
- Sample Problem #16 -- Expressions
- Sample Problem #35 -- Expressions
- Sample Problem #38 -- Expressions
- Sample Problem #36 -- Expressions
- Sample Problem #14 -- Expressions
- Sample Problem #32 -- Expressions
- Sample Problem #34 -- Expressions
- Sample Problem #33 -- Expressions
- Sample Problem #12 -- Expressions
- Sample Problem #29 -- Expressions
- Sample Problem #31 -- Expressions
- Sample Problem #30 -- Expressions
- Sample Problem #10 -- Expressions
- Sample Problem #23 -- Expressions
- Sample Problem #26 -- Expressions
- Sample Problem #24 -- Expressions
- Sample Problem #28 -- Expressions
- Sample Problem #19 -- Expressions
- Sample Problem #20 -- Expressions
- Sample Problem #22 -- Expressions
- Sample Problem #18 -- Expressions
- Sample Problem #8 -- Expressions
- Sample Problem #6 -- Expressions
- Sample Problem #4 -- Expressions
- Sample Problem #2 -- Expressions
- Sample Problem #1 -- Expressions
26 Similar Available
Problem 2: Parameter Mystery
- Sample Problem #47 -- Parameter Mystery
- Sample Problem #63 -- Parameter Mystery
- Sample Problem #65 -- Parameter Mystery
- Sample Problem #64 -- Parameter Mystery
- Sample Problem #46 -- Parameter Mystery
- Sample Problem #60 -- Parameter Mystery
- Sample Problem #62 -- Parameter Mystery
- Sample Problem #61 -- Parameter Mystery
- Sample Problem #45 -- Parameter Mystery
- Sample Problem #57 -- Parameter Mystery
- Sample Problem #59 -- Parameter Mystery
- Sample Problem #58 -- Parameter Mystery
- Sample Problem #44 -- Parameter Mystery
- Sample Problem #52 -- Parameter Mystery
- Sample Problem #55 -- Parameter Mystery
- Sample Problem #53 -- Parameter Mystery
- Sample Problem #56 -- Parameter Mystery
- Sample Problem #49 -- Parameter Mystery
- Sample Problem #50 -- Parameter Mystery
- Sample Problem #51 -- Parameter Mystery
- Sample Problem #48 -- Parameter Mystery
- Sample Problem #43 -- Parameter Mystery
- Sample Problem #42 -- Parameter Mystery
- Sample Problem #41 -- Parameter Mystery
- Sample Problem #40 -- Parameter Mystery
- Sample Problem #39 -- Parameter Mystery
13 Similar Available
Problem 3: If/Else Simulation
- Sample Problem #77 -- If/Else Simulation
- Sample Problem #99 -- If/Else Simulation
- Sample Problem #103 -- If/Else Simulation
- Sample Problem #75 -- If/Else Simulation
- Sample Problem #94 -- If/Else Simulation
- Sample Problem #97 -- If/Else Simulation
- Sample Problem #96 -- If/Else Simulation
- Sample Problem #73 -- If/Else Simulation
- Sample Problem #88 -- If/Else Simulation
- Sample Problem #92 -- If/Else Simulation
- Sample Problem #90 -- If/Else Simulation
- Sample Problem #71 -- If/Else Simulation
- Sample Problem #83 -- If/Else Simulation
20 Similar Available
Problem 4: While Loop Simulation
- Sample Problem #78 -- While Loop Simulation
- Sample Problem #100 -- While Loop Simulation
- Sample Problem #102 -- While Loop Simulation
- Sample Problem #101 -- While Loop Simulation
- Sample Problem #76 -- While Loop Simulation
- Sample Problem #95 -- While Loop Simulation
- Sample Problem #98 -- While Loop Simulation
- Sample Problem #74 -- While Loop Simulation
- Sample Problem #89 -- While Loop Simulation
- Sample Problem #93 -- While Loop Simulation
- Sample Problem #91 -- While Loop Simulation
- Sample Problem #72 -- While Loop Simulation
- Sample Problem #84 -- While Loop Simulation
- Sample Problem #86 -- While Loop Simulation
- Sample Problem #85 -- While Loop Simulation
- Sample Problem #87 -- While Loop Simulation
- Sample Problem #80 -- While Loop Simulation
- Sample Problem #81 -- While Loop Simulation
- Sample Problem #82 -- While Loop Simulation
- Sample Problem #79 -- While Loop Simulation
26 Similar Available
Problem 5: Assertions
- Sample Problem #112 -- Assertions
- Sample Problem #127 -- Assertions
- Sample Problem #129 -- Assertions
- Sample Problem #128 -- Assertions
- Sample Problem #111 -- Assertions
- Sample Problem #124 -- Assertions
- Sample Problem #126 -- Assertions
- Sample Problem #125 -- Assertions
- Sample Problem #110 -- Assertions
- Sample Problem #121 -- Assertions
- Sample Problem #123 -- Assertions
- Sample Problem #122 -- Assertions
- Sample Problem #109 -- Assertions
- Sample Problem #117 -- Assertions
- Sample Problem #119 -- Assertions
- Sample Problem #118 -- Assertions
- Sample Problem #120 -- Assertions
- Sample Problem #114 -- Assertions
- Sample Problem #115 -- Assertions
- Sample Problem #116 -- Assertions
- Sample Problem #113 -- Assertions
- Sample Problem #108 -- Assertions
- Sample Problem #107 -- Assertions
- Sample Problem #106 -- Assertions
- Sample Problem #105 -- Assertions
- Sample Problem #104 -- Assertions
53 Similar Available
Problem 6: Programming
- Sample Problem #1144 -- hasMidpoint
- Sample Problem #1145 -- flip
- Sample Problem #1313 -- stitching
- Sample Problem #1312 -- twoConsecutive
- Sample Problem #1346 -- callPitch
- Sample Problem #1345 -- countLetter
- Sample Problem #1329 -- guess
- Sample Problem #1330 -- nextWord
- Sample Problem #1126 -- numUnique
- Sample Problem #1127 -- printNumbers
- Sample Problem #1281 -- xo
- Sample Problem #1282 -- anglePairs
- Sample Problem #1304 -- speedingTicket
- Sample Problem #1305 -- dogHears
- Sample Problem #1297 -- invest
- Sample Problem #1296 -- dominant
- Sample Problem #1108 -- hasOddEven
- Sample Problem #1109 -- findRange
- Sample Problem #1243 -- largerDigits
- Sample Problem #1242 -- longestName
- Sample Problem #1267 -- smallest2
- Sample Problem #1266 -- closerDistance
- Sample Problem #1258 -- Ant
- Sample Problem #1259 -- isPowerOfTwo
- Sample Problem #1091 -- printTwoDigit
- Sample Problem #1090 -- quadrant
- Sample Problem #1201 -- containsBothDigits
- Sample Problem #1200 -- hopscotch
- Sample Problem #1222 -- cheerleader
- Sample Problem #1221 -- graduation
- Sample Problem #1206 -- isBalanced
- Sample Problem #1207 -- adder
- Sample Problem #1235 -- canMakeChange
- Sample Problem #1236 -- meetings
- Sample Problem #1168 -- monthApart
- Sample Problem #1169 -- sequenceSum
- Sample Problem #1177 -- printGuesses
- Sample Problem #1176 -- areReversals
- Sample Problem #1192 -- enoughTimeForLunch
- Sample Problem #1193 -- printGrid
- Sample Problem #1163 -- getOddInteger
- Sample Problem #1161 -- rockPaperScissors
- Sample Problem #1162 -- longestWord
- Sample Problem #1072 -- flip
- Sample Problem #1073 -- minHailstoneValue
- Sample Problem #1055 -- hasMidpoint
- Sample Problem #1056 -- printMultiples
- Sample Problem #1038 -- rollDoubles
- Sample Problem #1039 -- before
- Sample Problem #1021 -- numUnique
- Sample Problem #1022 -- printRange
- Sample Problem #1005 -- betOnce
- Sample Problem #1006 -- sumTo
17 Similar Available
Problem 7: Programming - Hard
- Sample Problem #1146 -- increasingDigits
- Sample Problem #1314 -- sameFlip
- Sample Problem #1128 -- numWords
- Sample Problem #1283 -- baseball
- Sample Problem #1306 -- highLow
- Sample Problem #1298 -- lucky
- Sample Problem #1110 -- undouble
- Sample Problem #1268 -- printSquare
- Sample Problem #1260 -- findAllPerfectUpto
- Sample Problem #1092 -- digitsInARow
- Sample Problem #1223 -- randomRects
- Sample Problem #1194 -- favoriteLetter
- Sample Problem #1074 -- sameDashes
- Sample Problem #1057 -- printStripped
- Sample Problem #1040 -- weave
- Sample Problem #1023 -- numWords
- Sample Problem #1007 -- digitSum