Course Test · School: elementary and middle

Grades K–2: number sense and early arithmetic: RatMath answers

The same twenty exercises, answered with RatMath Core and the Shelf libraries only. The code below was run when this page was built; its output is shown as printed, and compared with the independent answer.

Agrees 20

Libraries used here: core, stats. In this code each library is in scope under its own name (linalg.det, stats.tTest), and Core's names (R, Rational, …) are in scope directly.

  1. 1.Skip countingAgrees
    Count by fives from 35 to 60.
    Independent answer
    35, 40, 45, 50, 55, 60
    RatMath code
    range(35, 60, 5)
    Output
    [35, 40, 45, 50, 55, 60]
  2. 2.Addition factsAgrees
    8+7=  ?8 + 7 = \;?
    Independent answer
    15 (make a ten: 8+2+58 + 2 + 5).
    RatMath code
    R`8 + 7`
    Output
    15
  3. 3.Subtraction within 100Agrees
    63−28=  ?63 - 28 = \;?
    Independent answer
    35 (63−30=3363 - 30 = 33, then add back 2).
    RatMath code
    R`63 - 28`
    Output
    35
  4. 4.Addition within 1000Agrees
    347+258=  ?347 + 258 = \;?
    Independent answer
    605 (300+200=500300+200 = 500, 40+50=9040+50 = 90, 7+8=157+8 = 15; 500+90+15=605500+90+15 = 605).
    RatMath code
    R`347 + 258`
    Output
    605
  5. 5.Subtraction across zerosAgrees
    502−176=  ?502 - 176 = \;?
    Independent answer
    326 (502−200=302502 - 200 = 302, add back 24).
    RatMath code
    R`502 - 176`
    Output
    326
  6. 6.Place valueAgrees
    In the number 486, what is the value of the digit 8?
    Independent answer
    80 (eight tens).
    RatMath code
    const n = new Integer(486n);
    [n.digits(), n.digitAt(1), n.placeValue(1)]
    Output
    [[4, 8, 6], 8, 80]
    digits, digitAt and placeValue read the places directly (k = 0 is ones, 1 tens).
    Fix: ratmath/core#15, digits/placeValue, US coins, toClock (its roundInteger was folded into round in Core 0.12)
  7. 7.Comparing numbersAgrees
    Which is greater, 309 or 390? Write the comparison with << or >>.
    Independent answer
    309<390309 < 390.
    RatMath code
    R`309`.lessThan(R`390`)
    Output
    true
  8. 8.RoundingAgrees
    Round 65 to the nearest ten.
    Independent answer
    70 (a 5 in the ones place rounds up).
    RatMath code
    new Rational(65n).roundTo(-1)
    Output
    70
    Since Core 0.12 rounding defaults to half up, the school rule, so 65 goes to 70. Other conventions are one argument away (roundTo(-1, "half-even") gives 60), and round() returns a Core Integer, so .multiply can follow.
    Fix: ratmath/core#16, Core 0.12: round/floor/ceil/trunc return Integers, rounding defaults to half up, rounding(mode) rounders
  9. 9.Even and oddAgrees
    Is 37 even or odd?
    Independent answer
    Odd.
    RatMath code
    R`37`.isOdd()
    Output
    true
  10. 10.Two-step word problemAgrees
    Maria has 14 stickers. She gives 6 to her brother and then gets 9 more from a friend. How many stickers does she have now?
    Independent answer
    14−6+9=1714 - 6 + 9 = 17 stickers.
    RatMath code
    R`14 - 6 + 9`
    Output
    17
  11. 11.MoneyAgrees
    How many cents are 3 quarters, 2 dimes and 4 pennies?
    Independent answer
    75+20+4=9975 + 20 + 4 = 99 cents.
    RatMath code
    units.Q("3 quarter").add(units.Q("2 dime")).add(units.Q("4 penny")).to("cent")
    Output
    99 cent
    The units catalogue has US money: USD, cent and the coins.
    Fix: ratmath/core#15, digits/placeValue, US coins, toClock (its roundInteger was folded into round in Core 0.12)
  12. 12.TimeAgrees
    What time is it 45 minutes after 2:30?
    Independent answer
    3:15.
    RatMath code
    units.Q("150 min").add(units.Q("45 min")).toClock({ wrap: 12 })   // 2:30 is 150 min after 12:00
    Output
    3:15
    toClock writes a duration as clock time, exactly; wrap: 12 reads it as a time of day.
    Fix: ratmath/core#15, digits/placeValue, US coins, toClock (its roundInteger was folded into round in Core 0.12)
  13. 13.Fractions of a wholeAgrees
    A pizza is cut into 4 equal pieces. Sam eats 3 pieces. What fraction of the pizza did Sam eat?
    Independent answer
    34\tfrac34.
    RatMath code
    R`3/4`
    Output
    3/4
  14. 14.LengthAgrees
    A pencil is 7 inches long and a crayon is 4 inches long. How much longer is the pencil?
    Independent answer
    3 inches.
    RatMath code
    units.Q("7 in").subtract(units.Q("4 in"))
    Output
    3 in
  15. 15.Equal groupsAgrees
    There are 4 rows of chairs with 5 chairs in each row. How many chairs are there?
    Independent answer
    4×5=204 \times 5 = 20.
    RatMath code
    R`4 * 5`
    Output
    20
  16. 16.Missing addendAgrees
    9+□=169 + \square = 16. What number goes in the box?
    Independent answer
    7.
    RatMath code
    R`16 - 9`
    Output
    7
  17. 17.Number lineAgrees
    What number is halfway between 30 and 50 on a number line?
    Independent answer
    40.
    RatMath code
    R`(30 + 50)/2`
    Output
    40
  18. 18.ShapesAgrees
    How many sides do 3 triangles and 2 squares have altogether?
    Independent answer
    3×3+2×4=173 \times 3 + 2 \times 4 = 17.
    RatMath code
    R`3*3 + 2*4`
    Output
    17
  19. 19.Tens and onesAgrees
    What number is 5 tens and 13 ones?
    Independent answer
    50+13=6350 + 13 = 63.
    RatMath code
    R`5*10 + 13`
    Output
    63
  20. 20.Picture graphAgrees
    A class graph shows 5 cats, 8 dogs and 3 fish as pets. How many pets are there in all, and how many more dogs than fish?
    Independent answer
    16 pets in all; 5 more dogs than fish.
    RatMath code
    const pets = { cats: 5, dogs: 8, fish: 3 };
    [stats.sum(Object.values(pets)), R`${pets.dogs} - ${pets.fish}`]
    Output
    [16, 5]