Are You SmarterThan a 5 Grader?        th
1,000,000            Are You Smarter Than a500,000                    5th Grader?300,000                5th Grade Input   ...
5th Grade Input Question  What would happen if the following  occurred:  Code:String name = kboard.nextLine();  Input:5.0
5th Grade Input AnswerThe program will have an exception ora run-time error. The programexpects the user to input a string...
5th Grade Variables QuestionName the three key componentsinvolved in naming variables.
5th Grade Variables AnswerThe type of variable (string, double, int)The name must be meaningful anddescriptiveNo spaces/sy...
4th Grade Java File Structure               QuestionFill in the missing blanks:1. Source File2. _____________3. Object Cod...
4th Grade Java File Structure           Answer1. Source File2. COMPILER3. Object Code4. INTERPRETER/JVM5. Program         ...
4th Grade Input QuestionWhat two lines of code are requiredfor writing a java program with input?
4th Grade Input Answerimport java.util.Scanner;public class program{       public static void main(String[] args)       { ...
3rd Grade Output QuestionWhat would be outputted by thefollowing:int a = 1;int b = 4;System.out.println(“ans= “ + a + b);
3rd Grade Output Answer It would output:ans = 14                            Return
3rd Grade Errors Question   Classify the following with the type   of error:1) Forgetting a semi-colon in a command2) Outp...
3rd Grade Errors Answer1) Syntax2) Logic3) Syntax
2nd Grade Variables QuestionWrite statement(s) that declares andassigns the following values:  mark with a value of 85  wo...
2nd Grade VariablesAnswerint mark = 85;String words = “Computers”;double temperature = 15.5;                              ...
2nd Grade Binary Numbers         QuestionWhat are binary numbers, and whyare they used?
2nd Grade Binary Numbers          AnswerComputers are made up of wires andelectronic circuits and control them,1-on, and 0...
1st Grade Hardware QuestionWhat is the difference between RAMand ROM?
1st Grade Hardware AnswerRAM – random access memory (canread-write to this memory, computermemory)ROM – read only memory (...
1st Grade Intro to Java QuestionWhat is Eclipse known as?
1st Grade Intro to Java Answer Eclipse is an IDE (integrated development environment)                                 Return
Million Dollar Question Grade Level Topic 11    Input and Output
1,000,000 Question Write a short program using Java that will ask the user to input a name. The program should also ask th...
1,000,000 AnswerWe will discuss answers in class!                                    Return
Thanks for Playing!
Upcoming SlideShare
Loading in …5
×

Grade 11 CS Review (unit 1)

109
-1

Published on

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
109
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Grade 11 CS Review (unit 1)

  1. 1. Are You SmarterThan a 5 Grader? th
  2. 2. 1,000,000 Are You Smarter Than a500,000 5th Grader?300,000 5th Grade Input 5th Grade Variables175,000100,000 4th Grade Java Structure 4th Grade Input 50,000 25,000 3rd Grade Output 3rd Grade Errors 10,000 2nd Grade Variables 2nd Grade Binary Numbers 5,000 2,000 1st Grade Hardware 1st Grade Intro to Java 1,000
  3. 3. 5th Grade Input Question What would happen if the following occurred: Code:String name = kboard.nextLine(); Input:5.0
  4. 4. 5th Grade Input AnswerThe program will have an exception ora run-time error. The programexpects the user to input a string butthe user inputs a decimal value. Return
  5. 5. 5th Grade Variables QuestionName the three key componentsinvolved in naming variables.
  6. 6. 5th Grade Variables AnswerThe type of variable (string, double, int)The name must be meaningful anddescriptiveNo spaces/symbols in the names ofvariables Return
  7. 7. 4th Grade Java File Structure QuestionFill in the missing blanks:1. Source File2. _____________3. Object Code4. _____________5. Program
  8. 8. 4th Grade Java File Structure Answer1. Source File2. COMPILER3. Object Code4. INTERPRETER/JVM5. Program Return
  9. 9. 4th Grade Input QuestionWhat two lines of code are requiredfor writing a java program with input?
  10. 10. 4th Grade Input Answerimport java.util.Scanner;public class program{ public static void main(String[] args) { Scanner kboard = new Scanner(System.in); }} Return
  11. 11. 3rd Grade Output QuestionWhat would be outputted by thefollowing:int a = 1;int b = 4;System.out.println(“ans= “ + a + b);
  12. 12. 3rd Grade Output Answer It would output:ans = 14 Return
  13. 13. 3rd Grade Errors Question Classify the following with the type of error:1) Forgetting a semi-colon in a command2) Outputting the addition of 1+3 as 3.3) Forgetting a brace bracket at the end of the program
  14. 14. 3rd Grade Errors Answer1) Syntax2) Logic3) Syntax
  15. 15. 2nd Grade Variables QuestionWrite statement(s) that declares andassigns the following values: mark with a value of 85 words with a value of Computers temperature with a value of 15.3
  16. 16. 2nd Grade VariablesAnswerint mark = 85;String words = “Computers”;double temperature = 15.5; Return
  17. 17. 2nd Grade Binary Numbers QuestionWhat are binary numbers, and whyare they used?
  18. 18. 2nd Grade Binary Numbers AnswerComputers are made up of wires andelectronic circuits and control them,1-on, and 0-offUsed to represent this on/off natureof the wire. Return
  19. 19. 1st Grade Hardware QuestionWhat is the difference between RAMand ROM?
  20. 20. 1st Grade Hardware AnswerRAM – random access memory (canread-write to this memory, computermemory)ROM – read only memory (startup,only read to this memory) Return
  21. 21. 1st Grade Intro to Java QuestionWhat is Eclipse known as?
  22. 22. 1st Grade Intro to Java Answer Eclipse is an IDE (integrated development environment) Return
  23. 23. Million Dollar Question Grade Level Topic 11 Input and Output
  24. 24. 1,000,000 Question Write a short program using Java that will ask the user to input a name. The program should also ask the user to enter an adjective. The program should output a statement that resembles:________ (name) is very ____ (adjective).
  25. 25. 1,000,000 AnswerWe will discuss answers in class! Return
  26. 26. Thanks for Playing!

×