Module 2/ Unit 1/ Using Data Types and Units
Which data representation format can encode the widest range of characters?
Unicode can represent millions of characters (glyphs). ASCII's 7-bit data structure can only support 128 characters, some of which are non-printable control characters.
What is the decimal 75 in binary and hexadecimal?
A) 01001011 in Binary and 4B in hex. Hex notation is often indicated using 0x to precede the hex digits, so you may see this written like 0x4b. To work out the answer with a calculator, write out the place values for each notation system. For binary you 'd have columns for 64,32,16,8,4,2,and 1 and put 1 in each column you need to add up to 75 and a 0 in the others. For hex you only need 16 and 1 (75 divided by 16 is 4 remainder 11, which is represented as "B" in hex.
What data protection technology could you implement in order to restrict the type of activity that users could employ on digital products they have purchased or rented?
A) Digital Rights Management (DRM)
What notation system supports presenting the largest number using the fewest digits. Binary, decimal, or hexadecimal?
A) Hexadecimal. each Hex digit can store 16 bits of information. A single decimal digit stores 4 bits while binary obviously stores 1 bit.
What part of the process of data analytics is most closely supported by meaningful reporting?
A) Insights are "end product" of the analytic process. Humans need a suitable reporting format to make best use of insights.
What type of legal protection could be obtained for a novel software algorithm?
A) Patent provides the best protection as it can enforce ownership even if someone tries to write the algorithm in a slightly different way. Software code is often protected both by patent and copyright however.
Which data type provides for whole numbers only?
A) integer
What is the difference between char and string data types?
Char stores a single textual character in a fixed length field (typically 1 byte). A string is a variable length field for storing a sequence of characters.
