Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.

Science jeopardy

  • Identifiez-vous pour voir les commentaires

  • Soyez le premier à aimer ceci

Science jeopardy

  1. 1. Computer Science Jeopardy 100 200 300 400 500 100 200 300 400 500 100 200 300 400 500 100 200 300 400 500 Vocabulary Method categories Writing Methods Hodgepodge Final Jeopardy
  2. 2. Help (1) Save a duplicate of this template. (2) Enter all answers and questions in the normal view. (view/normal) (3) Change the category headings in the normal view (view/normal) (4) View as a slideshow. (5) Use the home red button after each question. ©Norman Herr, 2003
  3. 3. Vocabulary-100 <ul><li>ANSWER: The values within the parentheses </li></ul><ul><li>QUESTION: What are parameters? </li></ul>
  4. 4. Vocabulary-200 <ul><li>ANSWER: This indicates what type of data will be sent back from a method </li></ul><ul><li>QUESTION: What is the return type? </li></ul>
  5. 5. Vocabulary-300 <ul><li>ANSWER: To execute a method, you must do this </li></ul><ul><li>QUESTION: What is call the method (invoke the method)? </li></ul>
  6. 6. Vocabulary-400 <ul><li>ANSWER: This segment of code is written in the class to define how the method will do its job </li></ul><ul><li>QUESTION: What is the method definition? </li></ul>
  7. 7. Vocabulary-500 <ul><li>ANSWER: This keyword must be included in class methods. It prevents us from making a copy (an object) of the class. </li></ul><ul><li>QUESTION: What is static ? </li></ul>
  8. 8. <ul><li>ANSWER: This type of method is called using the object name </li></ul><ul><li>QUESTION: What is an object method? </li></ul>Method Categories-100
  9. 9. Method Categories-200 <ul><li>ANSWER: This type of method is called using the class name </li></ul><ul><li>QUESTION: What is a class method? </li></ul>
  10. 10. Method Categories-300 <ul><li>ANSWER: This type of method does not send data back to the main method </li></ul><ul><li>QUESTION: What is a void method? </li></ul>
  11. 11. Method Categories-400 <ul><li>ANSWER: This type of method sends back data to the main method </li></ul><ul><li>QUESTION: What is a return method? </li></ul>
  12. 12. Method Categories-500 <ul><li>ANSWER: This type of method has no information between its parentheses </li></ul><ul><li>QUESTION: What is a no-parameter method? </li></ul>
  13. 13. Writing Methods-100 <ul><li>ANSWER: A method must contain this keyword to indicate that it is not sending back data. </li></ul><ul><li>QUESTION: What is void ? </li></ul>
  14. 14. Writing Methods-200 <ul><li>ANSWER: A method must contain these two keywords to indicate that it is sending back data. </li></ul><ul><li>QUESTION: What is a data type and return ? </li></ul>
  15. 15. Writing Methods-300 <ul><li>ANSWER: A void method has this many parameters. </li></ul><ul><li>QUESTION: What is unlimited? </li></ul>
  16. 16. Writing Methods-400 <ul><li>ANSWER: Find the error in this method definition. public static double calcTax (int amount) { System.out.println(.0825 * amount); } </li></ul><ul><li>QUESTION: What is either the wrong return type (should be void), or missing a return statement? </li></ul>
  17. 17. Writing Methods-500 <ul><li>ANSWER: Find the error in this method heading. public static void add (int num1, num2) </li></ul><ul><li>QUESTION: What is a missing data type before num2 ? </li></ul>
  18. 18. Hodgepodge-100 <ul><li>ANSWER: A method is defined here </li></ul><ul><li>QUESTION: What is inside a class? </li></ul>
  19. 19. Hodgepodge-200 <ul><li>ANSWER: You may have this many public classes in each Java file. </li></ul><ul><li>QUESTION: What is one? </li></ul>
  20. 20. Hodgepodge-300 <ul><li>ANSWER: If only one class is in a file, this keyword should be added before the class. </li></ul><ul><li>QUESTION: What is public ? </li></ul>
  21. 21. Hodgepodge-400 <ul><li>ANSWER: You call a method from main. After the method definition is finished, this happens to any variables declared in the method definition. </li></ul><ul><li>QUESTION: What is they are deallocated/destroyed? </li></ul>
  22. 22. Hodgepodge-500 <ul><li>ANSWER: Name the 3 important rules for using parameters. </li></ul><ul><li>QUESTION: What are same quantity, same type, same sequence? </li></ul>
  23. 23. FINAL JEOPARDY <ul><li>ANSWER: Write the method definition that would appear in a class for a method named total that receives two integers, adds them together, and returns their sum. </li></ul><ul><li>QUESTION: What is public static int total (int n1, int n2) { return n1 + n2; } </li></ul>