----------------------------------------------- Practice questions and scope for the Final Exam ----------------------------------------------- -Ian! D. Allen - idallen@idallen.ca - www.idallen.com Your Final Exam covers the entire course, with emphasis on the material introduced since the last midterm test. Most questions are derived from the assignments. Answers will be multiple choice and/or short answer. This sample list below is in addition to questions from the midterm tests and all assignments. The exam covers all the material. The symbol 'X' stands for a variable quantity that will be given in the exam. - Approximately how many more ordinary memory accesses (in decimal orders of magnitude) could a CPU perform in the time it takes to handle a single page fault? - Choose a CSS property that most closely replaces the old X attribute: - Choose a CSS selector that best matches a paragraph immediately following a paragraph (sibling): - Choose a CSS selector that best matches a paragraph inside a table: - Choose a syntactically correct HTML comment: - Choose an ASCII digit X stored in X bits with X parity: - Choose an HTML tag that is a direct child of X: - Choose an HTML tag that is not a descendant of X: - Choose an absolute URL syntax: - Choose the best coding practice for testing floating-point equality: - Choose the valid syntax for an HTML X address anchor: - Choose the valid syntax for an HTML X tag: - Choose the variable-length character set where not all characters are represented using the same number of bytes: - Convert the two's complement representation X-bit hexadecimal number X to decimal. - Convert unsigned base X number X to decimal: - Define: Cache Hit, Page Fault, Thrashing, Internet Robustness, HTML element, CSS property, HTML attribute, HTML entity, non-breaking space - Express decimal X in hexadecimal using X-bit sign-magnitude notation: - Express the IPv4 address X in hexadecimal in Internet byte order: - Here is one line (16 bytes) of a hexadecimal memory dump: X Under what operating system was the above text file created? - Here is one line (16 bytes) of a hexadecimal memory dump: X You are told this is character data. What kind of character data is it? - If a CPU has a clock frequency of X GHz, how long does one access cycle take? - If a machine stores a 32-bit integer X in memory with X at the lowest/smallest memory location, then you know: - If a machine stores the UTF-8 character string X in memory with X at the lowest/smallest memory location, then you know: - If a memory has an access time of X, how many accesses can you make in one second? - If you store the ASCII character string X in memory, with X at the lowest/smallest memory location, then you know: - In X-bit two's complement representation, what decimal number do you get when you add one to decimal X: - Perform a one's complement ("~") on hexadecimal X: - Suppose the name foo is a valid HTML attribute. Choose a correct syntactic use of the attribute foo, i.e. in which line is foo used correctly as an attribute? - The CSS selector X matches: - The HTML entity for a non-breaking space character is: - The element used to group and apply block style to several paragraphs is: - The element used to group and apply in-line style to individual words or parts of sentences is: - Use a bit-flip table to convert 64-bit hexadecimal X to its one's complement form: - What are the smallest and largest decimal integers a X-bit word can hold using an excess-X (bias-X) representation? - What is the (approximate) largest value you can store safely in 32-bit IEEE-754 single-precision format? - What is the basic feature that Virtual Memory enables? - What is the decimal value of the X-bit excess-X exponent in the IEEE 754 single-precision floating-point number X? - What is the likely final value of variable X in this IEEE 754 single- precision pseudo-code fragment: - What is the standards group responsible for the Internet standards? - Which of these values would cause floating-point underflow if stored in IEEE-754 single-precision format? - Which sum fits in IEEE 754 single-precision floating point with no loss of range or precision? - Which tag must also appear inside the X element in a valid HTML 4.01 Strict web page? - Write a simplified expression for the Boolean complement of the logic function F(x,y,z) = - Write the simplest IF statement (simplify the Boolean logic) for the following programming problem specification: - Give the HTML for the smallest valid web page that displays the words "Hello World!" - Given the following partial hexadecimal memory dump of an Intel‐based PC: X *) Using the addresses below, read the above Intel PC dump and give the decimal values of these X integer items of different widths. The number following the address is the size in bytes of the X integer: *) Decode the memory starting at address X as a dotted‐quad (dotted‐decimal) IPv4 address stored in X byte order: *) Give the decimal value of the X byte at address X - Decode from hexadecimal the following single line of seven ASCII characters: X (For unprintable or blank characters, give the ASCII character names): Under what Operating System was the above single text line created? - Generate the HTML (no CSS) for this table with a visible border (only the table HTML is needed): X - Write a full CSS line that changes all anchors (hyperlinks) into X - Write a single CSS line that changes all types of X to have a X border: - Write a full CSS line that changes the X for all X elements inside X - Write a full CSS line that sets a X margin of X for a X with identifier X - Write a full CSS line that would restrict the X of the whole visible web page to a maximum of X and a minimum of X - Write a full CSS line that changes the X to X for only X - Write a full CSS line that changes only the one X to X - Write a full CSS line that changes everything with X to have X - Write a full CSS line that changes only the one X to have a X of X