CMPUT174 Study Guide - Midterm Guide: Assembly Language, Multiplication Operator, Decimal Mark
ceruleanzebra152 and 30 others unlocked
25
CMPUT174 Full Course Notes
Verified Note
25 documents
Document Summary
1"s and 0"s: each address (variable) can store one word, 1 byte = 8 bits! 2014 lab: ta: aristotelis kollias, of ce hours 12-1 tuesdays ath 4-37, aristote@ualberta. ca! 2014: int will give you variable without decimal point answer, oat will give you it with decimal points, int, oat are referred to as atomic objects. 2014: class: like a blueprint, for houses, called objects, rules governing the behaviours of objects, object: an instance/representation of a class, i. e. a 4 belonging to an int class, 3. 142 belonging to a oat class, fred" belongs to string. Oat number to be printed: %. 2f prints a oat number up to two decimal places, >>>x = 1. 024, >>>print ( the result is %. 2f . " % x), using %d, %g and %. 0f instead, see the difference. 2014 lab: putting break inside a loop will make the loop exit and go outside the loop!