| Tue, Nov 4 |
|
| Types of questions (same as Test 1) |
|
| Study advice (same as Test 1) |
|
| Course Material | TEST 1 MATERIAL Scientific & Computational Thinking history of science Greek pre-science, Islamic empire, Dark Ages, Renaissance, Scientific Revolution scientific method: observe, hypothesize, design, experiment, analyze experimentation, reproducability, consistency vs. accuracy computational thinking decomposition, pattern matching, abstraction, algorithms examples: algorithms for finding tallest person (simple vs. efficient) Algorithms & Programming real-world algorithms algorithm analysis, rate of growth, Big Oh notation examples: sequential search vs. binary search, Newton's algorithm machine language vs. high-level language program translation: interpreter vs. compiler Computer Science as a Discipline study of computation, artificial vs. natural science CS themes: hardware, software, theory subfields of CS Algorithms: public-key encryption Architecture: parallel processing, multicores Software Engineering: software development process, agile, open source Artificial Intelligence: Turing Test, machine learning, neural networks ethics of computing Experimental Methods Monte Carlo methods, consistency vs. accuracy, Law of Large Numbers Applications in Biology major impacts: computerized tools, modeling, information storage/retrieval Making Pages Dynamic dynamic HTML elements ID attribute, JavaScript assignment (ID.ATTR = VALUE;) event-handler attributes: onmouseover, onmouseout, onclick JavaScript strings (' ') vs. HTML strings (" ") dynamic style, e.g., colorSpan.style.color = 'red'; examples: dog & cat images JavaScript errors JavaScript Console, error messages HTML buttons button tag, onclick attribute, label between example: show/hide image dynamic text innerHTML attribute of div/p/span elements examples: show/hide message, help icon, quotations project Processing User Input text boxes input tag; id and style="text" attributes, optional size & value attributes accompanying label element examples: greetings, invitation generator simplifying pages with functions move JavaScript to function within script tags in head function definition: function func_name() { ... } function call: func_name(); examples: invitation generator, mouseover/mouseout page simplifying functions with variables variable is a name assigned to a changeable value exzamples: invitation generator, photo gallery, story project Pages that Calculate JavaScript data types: strings, numbers, Booleans numbers & expressions mathematical operators (+, -, *, /, **) number box, valueAsNumber attribute simplifying computations with variables variables can store number values and temporary calculations can be displayed with precision used .toFixed(#) examples: tip calculator, compound interest, reading level, weather project pattern matching: get numbers, do calculation, display result predefined functions Math.sqrt, Math.abs, Math.floor, Math.ceil, Math.round Math.min, Math.max, Math.pow example: point distance random numbers Math.random, complex expressions to adjust range of values example: pick-4 lottery |