Take out a piece of paper and PEN.

Slides:



Advertisements
Similar presentations
Parameter passing mechanism: pass-by-reference. The Pass-by-reference mechanism - the agreement Recall: Parameter passing mechanism = agreement between.
Advertisements

PreAP Computer Science Quiz
AP Computer Science DYRT Quiz Key
Copyright 2006 by Pearson Education 1 Building Java Programs Chapter 3: Parameters, Return, and Interactive Programs with Scanner.
1 Chapter 5 Methods. 2 Introducing Methods A method is a collection of statements that are grouped together to perform an operation.
PreAP Computer Science Quiz
Today’s Mental Math Write the date and number 1-10 Today’s title: MM #13 Practice Quiz It will start in 2 minutes and 0 seconds It will start in 1 minute.
More Functions CS303E: Elements of Computers and Programming.
PreAP Computer Science Quiz
Beginning of School Procedures Quiz Mr. Beals. Open your Notebook Label paper with your name and class at top. Please write neatly This will be a graded.
PreAP Computer Science Quiz
PreAP Computer Science Quiz
Exposure Java-A 2006 Chapter 4 Slides Using Methods and Parameters
GCOC – A.P. Computer Science A. College Board Topics – A.P. Computer Science A Program Design - Read and understand a problem's description, purpose,
Java Program Components Java Keywords - Java has special keywords that have meaning in Java. - You have already seen a fair amount of keywords. Examples.
Computer Science Reading Quiz 6.2 (Sections )
PreAP Computer Science Review Quiz 08 Key
PreAP Computer Science Quiz Key
Math With Java The Math Class. First, A Quick Review of Math Operators in Java Primitive Data type in Java that represent numbers: Primitive Data type.
Your paper must include the following: 1. A thesis statement 2.background information about your topic 3. At least two pieces of supporting evidence which.
PreAP Computer Science Quiz
AP Computer Science DYRT Quiz Key
Take out a piece of paper and PEN. The quiz starts ONE minute after the tardy bell rings. You will have 45 – 90 seconds per question. Determine the output.
PreAP Computer Science Quiz
PreAP Computer Science Quiz Key
AP Computer Science DYRT Quiz
Take out a piece of paper and PEN.
Math Class Mrs. C. Furman September 2, Math frequently used methods NameUse floor()rounds down ceil()rounds up pow(x,y)returns x to the power of.
PreAP Computer Science Quiz
Java Keywords Java has special keywords that have meaning in Java. You have already seen a fair amount of keywords. Examples are: public, main, System,
PreAP Computer Science Quiz Take out a piece of paper and PEN. The quiz starts ONE minute after the tardy bell rings. You will have 30 – 60 seconds.
AP Computer Science DYRT Quiz
Java Keywords Java has special keywords that have meaning in Java. You have already seen a fair amount of keywords. Examples are: public, main, System,
Copyright 2011 by Pearson Education Building Java Programs Chapter 3 Lecture 3-2: Return values, Math, and double reading: 3.2,
Object Oriented Programming one of the main reasons we now teach Java instead of C++. C++ was designed to be backwardly compatible with the original.
Acronyms Vocabulary Quiz Nicole Stark, Adrianna Casas, Eddie Ramirez Period 3.
The 4 Stages of Program Design  Cryptic Programming Stage  Unstructured, Spaghetti-Programming Stage  Structured Programming Stage  Object Oriented.
The 4 Stages of Program Design  Cryptic Programming Stage  Unstructured, Spaghetti-Programming Stage  Structured Programming Stage  Object Oriented.
Take out a piece of paper and PEN. The quiz starts TWO minutes after the tardy bell rings. You will have 30 seconds per question. Exposure Java 2014 for.
Lecture 6: While Loops and the Math Class
Math Methods that return values
PowerPoint Presentation Authors of Exposure Java
Chapter 3 Methods.
Pre-AP® Computer Science Quiz Key
Pre-AP® Computer Science Quiz
Chapter 5 Methods.
Take out a piece of paper and PEN.
METHODS, CLASSES, AND OBJECTS A FIRST LOOK
Building Java Programs
PreAP Computer Science Review Quiz 08
PreAP Computer Science Quiz Key
See requirements for practice program on next slide.
Take out a piece of paper and PEN.
Click on the icon above to hear the narration.
PreAP Computer Science Quiz
Click on the icon above to hear the narration.
Take out a piece of paper and PEN.
Take out a piece of paper and PEN.
Click on the icon above to hear the narration.
Click on the icon above to hear the narration.
Take out a piece of paper and PEN.
AP Computer Science DYRT Quiz
Using java libraries CGS3416 spring 2019.
Take out a piece of paper and PEN.
Click on the icon above to hear the narration.
Click on the icon above to hear the narration.
Click on the icon above to hear the narration.
Click on the icon above to hear the narration.
Pre-AP® Computer Science Quiz
Click on the icon above to hear the narration.
Presentation transcript:

Take out a piece of paper and PEN. Exposure Java 2015 for Teaching AP® Computer Science DYRT Quiz 04.01-04 Take out a piece of paper and PEN. The quiz starts TWO minutes after the tardy bell rings. You will have 30 seconds per question.

Title the quiz as shown below The quiz starts in ONE minute. Name Period Date Quiz 04.01-04 1. 14. 2. 15. 3. 16. 4. 17. 5. 18. 6. 19. 7. 20. 8. 21. 9. 22. 10. 23. 11. 24. 12. 25. 13. EC.

Question 01 OOP is an acronym for Object Organized Protocol. Organized Oriented Protocol. Object Oriented Programming. Oriental Object Programming.

Question 02 The most important goal of program development in the past and today is (a) speed. (b) user-friendliness. (c) reliability. (d) low production cost.

Question 03 Object Oriented Programming (OOP) is a style of programming that uses encapsulation. class interaction. polymorphism. all of the above.

Question 04 Which of these programming stages had a major problem caused by the GOTO statement? Cryptic Programming Stage Unstructured, Spaghetti-Programming Stage Structured Programming Stage Object Oriented Programming Stage

Question 05 In the statement: double x = Math.floor(3.976); Math is the (a) parameter. (b) method identifier. (c) class identifier. (d) separator between the class identifier and the method identifier.

Question 06 In the statement: double x = Math.floor(3.976); floor is the (a) parameter. (b) method identifier. (c) class identifier. (d) separator between the class identifier and the method identifier.

Question 07 In the statement: double x = Math.floor(3.976); 3.976 is the (a) parameter. (b) method identifier. (c) class identifier. (d) separator between the class identifier and the method identifier.

double result = Math.floor(5.789); Question 08 What is the value of result after the following statement? double result = Math.floor(5.789); (a) 6 (b) 5.8 (c) 5.5 (d) 5.1 (e) 5

double result = Math.ceil(5.123); Question 09 What is the value of result after the following statement? double result = Math.ceil(5.123); (a) 6 (b) 5.8 (c) 5.5 (d) 5.1 (e) 5

double result = Math.round(5.499); Question 10 What is the value of result after the following statement? double result = Math.round(5.499); (a) 6 (b) 5.8 (c) 5.5 (d) 5.1 (e) 5

double result = Math.round(5.5); Question 11 What is the value of result after the following statement? double result = Math.round(5.5); (a) 6 (b) 5.8 (c) 5.5 (d) 5.1 (e) 5

double result = Math.pow(3,2); Question 12 What is the value of result after the following statement? double result = Math.pow(3,2); (a) 5 (b) 6 (c) 8 (d) 9

double result = Math.pow(2,3); Question 13 What is the value of result after the following statement? double result = Math.pow(2,3); (a) 5 (b) 6 (c) 8 (d) 9

double result = Math.sqrt(64); Question 14 What is the value of result in the following statement? double result = Math.sqrt(64); (a) 64 (b) 8 (c) -8 (d) 1 (e) 0 (f) NaN

double result = Math.sqrt(-64); Question 15 What is the value of result in the following statement? double result = Math.sqrt(-64); (a) 64 (b) 8 (c) -8 (d) 1 (e) 0 (f) NaN

double result = Math.sqrt(1); Question 16 What is the value of result in the following statement? double result = Math.sqrt(1); (a) 64 (b) 8 (c) -8 (d) 1 (e) 0 (f) NaN

System.out.println(Math.abs(-1)); Question 17 What is the output of the following statement? System.out.println(Math.abs(-1)); -1 (b) 0 (c) 1 (d) 2

System.out.println(Math.abs(1)); Question 18 What is the output of the following statement? System.out.println(Math.abs(1)); -1 (b) 0 (c) 1 (d) 2

System.out.println(Math.min(20,30)); Question 19 What is the output of the following statement? System.out.println(Math.min(20,30)); -30 (b) -20 (c) 20 (d) 30

System.out.println(Math.max(20,30)); Question 20 What is the output of the following statement? System.out.println(Math.max(20,30)); -30 (b) -20 (c) 20 (d) 30

System.out.println(Math.min(-20,-30)); Question 21 What is the output of the following statement? System.out.println(Math.min(-20,-30)); -30 (b) -20 (c) 20 (d) 30

System.out.println(Math.max(-20,-30)); Question 22 What is the output of the following statement? System.out.println(Math.max(-20,-30)); -30 (b) -20 (c) 20 (d) 30

Question 23 The information passed to a method is called a parameter. an argument. both a and b. none of the above.

Question 24 double n1 = 9; double n2 = 16; What is the value of result at the conclusion of this program segment? double n1 = 9; double n2 = 16; double result = Math.sqrt(n1 + n2); 5 (b) 7 25 (d) 625

Question 25 double n1 = 9; double n2 = 16; What is the value of result at the conclusion of this program segment? double n1 = 9; double n2 = 16; double result = Math.sqrt(n1) + Math.sqrt(n2); 5 (b) 7 25 (d) 337

Extra Credit What is the output of the following statement? 5 6 8 9 72 double x = (Math.max(Math.pow(2,3),Math.pow(3,2))); System.out.println(x); 5 6 8 9 72