C155-121411_FinalReviewTopicsFall2011

C155-121411_FinalReviewTopicsFall2011 - CNIT 15500 List of...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CNIT 15500 List of topics covered on the final exam Fall 2011 (All topics covered in lecture & lab may appear on the final, whether listed below or not) Scratch topics covered 1. 2. 3. Who uses computing? Computational thinking a. What is CT? Apply CT to some problems a. Guessing game b. Writing a short English paper c. Morning routine d. Making a PBJ/banana What do programming languages do? a. What does the programmer do? What are the basic steps in getting started with programming? a. Source code b. Compiler c. Syntax errors d. Machine code Where does Scratch fit? What is Scratch? Why Scratch? a. 21st century skills Apply Scratch to the real world The Scratch stage a. 2-dimension grid b. Horizontal range c. Vertical range d. Direction Sprite communication a. How to do it b. Purposes Planning a Scratch animation a. What sprites are needed? b. What sequence of actions should be shown? c. Which sprites dictate the actions of other sprites? To Do a. Identify the sprites and sequence of actions that depict my day, including five classes between 8 am and 5 pm, fitness, homework, and nutritional needs. Program modularity a. What does it mean? b. Why is it important? Review to do from Wednesday & apply modularity to it Practice applying modularity to other problems Program modularity a. What does it mean? b. Why is it important? Scratch and modularity Variables a. What are they? b. Why do you use them? c. What is variable scope? Review to do from Wednesday & apply modularity to it Grocery purchase calculator Counting and accumulating User input in Scratch a. Asking a questions b. Referring to the user's response/answer String operations in Scratch a. Concatenation b. Grab a character from a string c. Determine how many characters are in a string 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. Page 1 CNIT 15500 List of topics covered on the final exam Fall 2011 (All topics covered in lecture & lab may appear on the final, whether listed below or not) 25. Arithmetic operations in Scratch a. Standard math i. Addition ii. Subtraction iii. Multiplication iv. Division b. Special math i. Modulus finding the remainder ii. Rounding iii. Square root 26. Applying topics to Magic 8 ball game 27. Review quiz from Monday's class understand various script blocks such as: 28. Review BMI calculator program 29. Answer questions about lab 4 (fuel advisor) 30. Temperature converter: Allow the user to either enter a temperature in Celsius degrees and have the program display the equivalent temperature in Fahrenheit OR let the user take a quiz to score points on converting the temperatures. a. Temp converter b. Game/quiz OOP Intro & C# topics covered 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. Introduction to OOP What are objects? What are classes? What are object properties? What are object methods? What is object state? Why learn C#? What is instantiation? How do I use the dot operator? What do getter operations do? Page 2 CNIT 15500 List of topics covered on the final exam Fall 2011 (All topics covered in lecture & lab may appear on the final, whether listed below or not) 11. What do setter operations do? 12. What is an IDE? 13. How are Scratch and C# similar/different? o Creating variables o Variable scope o Math operations o Relational operators o Logical operators o Simple decisions o Nested decisions o Counting loops o Pre-condition loops o Infinite loops 14. Numeric data types When to use or not to use How do integers, decimals, and floating-point numbers differ? 15. Binary representation of numeric data 16. Integer data types 17. Decimal and floating-point data types 18. Boolean data types 19. DateTime type 20. Refernce vs value data types 21. Heuristics to determine what data type to use 22. Naming rules 23. How to define a variable 24. How to initialize a variable 25. Literal constant vs named constant 26. Using ToString() to control format display of data 27. Expressions 28. Operand 29. Binary operator 30. Unary operator 31. Basic Arithmetic Operators (Table 4-1, page 4-3 to 4-4) 32. Implicit Type Conversion o silent cast 33. Data widening 34. Data narrowing 35. Explicit Type Conversion o Convert textual data to a number o Convert numeric data to a string o Explicit Type Casting 36. Operator Precedence (Table 4-2, page 4-8) 37. Assignment Operators (Table 4-3, pages 4-10 to 4-11) 38. Manipulating Strings o Concatenation o IndexOf Method o Length Property o Substring Method o ToUpper Method o ToLower Method o LastIndexOf Method o Replace Method 39. Manipulating DateTime Data 40. Using the Math Class Methods (Table 4-9, page 4-32) 41. Integer division vs Floating point division 42. Rounding 43. Manipulating Strings o Concatenation o IndexOf Method o Length Property o Substring Method Page 3 CNIT 15500 List of topics covered on the final exam Fall 2011 (All topics covered in lecture & lab may appear on the final, whether listed below or not) o ToUpper Method o ToLower Method o LastIndexOf Method o Replace Method Manipulating DateTime Data Using the Math Class Methods (Table 4-9, page 4-32) Relational operators Boolean expressions o Comparing numbers o Comparing Booleans o Comparing strings o Comparing dates Logical operators Updated precedence table Data validation o Guidelines o Types of checks o Order of checks Decision statements o True only conditions o True and false conditions o False only conditions o Nested decisions o Nested, cascading decisions o Nested, cascading decisions with several discrete choices Types of errors o Syntax o Semantic o Logic o Runtime Types of exceptions o FormatException o DivideByZeroException o OverflowException Why catch exceptions? What to do when you catch exceptions Two styles of exception handler syntax ListBoxes o What are they? o Why use them? o Commonly used methods Loops o 3 conditions of a well-behaved loop Counting loops while loop for loop foreach loop Purpose of a break statement Methods o What are they? o Why use them? o Two ways to return values Three types of methods o Private helper method o Instance method o Shared or static method Helper method o Why use them 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. Page 4 CNIT 15500 List of topics covered on the final exam Fall 2011 (All topics covered in lecture & lab may appear on the final, whether listed below or not) o Syntax private returnDataType methodName(paramList) { // method body } paramList paramType paramName, paramType paramName, ... 67. Syntax for calling a method o If method returns a value o If method has no return value 68. Example a validation helper method: nbrIsValid (see example on course website) 69. Arrays o What are they? o Why use them? o How to reference a value in an array? index hoursWorked To access in code: 0 10.5 hoursWorked[0] 1 21.5 hoursWorked[1] 2 45 hoursWorked[2] 3 37 hoursWorked[3] 4 40 hoursWorked[4] o 70. Static arrays o How to define? o How to initialize content? o Why define array and last location variable at class scope? o How to handle as if dynamic? o How to find the largest or smallest? o How to find the location of the largest or smallest? o How to accumulate? 71. Persisting data through external text files o What is persistence? o Why is persisting objects to files important? 72. RAM vs non-volatile memory 73. FQN - Fully qualified name (of a specific file) 74. Statement: using System.IO to access file class libraries 75. Using the StreamReader class to read data from text files 76. Using the StreamWriter class to write data to a text file 77. Detecting whether a file (through its FQN) exists or not. 78. Adding menus to a UI 79. Using a class file to work with data in text files o Serialize method o Deserialize method void if no return value int if returning int value o precede with out if returning a value. E.g., out int distance Page 5 ...
View Full Document

Page1 / 5

C155-121411_FinalReviewTopicsFall2011 - CNIT 15500 List of...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online