PreAP Computer Science Review Quiz 08 Key

Slides:



Advertisements
Similar presentations
Introduction to Computer Science Robert Sedgewick and Kevin Wayne Recursive Factorial Demo pubic class Factorial {
Advertisements

Write a program step by step. Step 1: Problem definition. Given the coordinate of two points in 2-D space, compute and print their straight distance.
PreAP Computer Science Quiz
Comma in Quotations 2 minute edits. Which sentence is written correctly? a.“I’m sorry,” he said “but you can’t park there.” b.“I’m sorry,” he said, “but.
AP Computer Science DYRT Quiz Key
CS 117 Section 2 + KNET Computer accounts – ed to KNET students –Change password Homework 1 Lab Tutors –In lab for next 2 weeks –Will help you with.
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.
PreAP Computer Science Quiz
PreAP Computer Science Quiz
PreAP Computer Science Quiz
Computer Science Reading Quiz 6.2 (Sections )
PreAP Computer Science Quiz Key
Objects, Classes and Syntax Dr. Andrew Wallace PhD BEng(hons) EurIng
Can we talk?. In Hello World we already saw how to do Standard Output. You simply use the command line System.out.println(“text”); There are different.
Team C Social Studies.  CHECK for prior knowledge -what do I KNOW NOW?  CHECK for understanding -what have I LEARNED?  PRACTICE important skills 
Asia Map Quiz Name: ______________________
Recursion H-Tree and Sierpinski Triangle. order 1order 2order 3.
PreAP Computer Science Quiz
Quiz 6 Put everything away except paper and pens. Write your name, Art 1B, and date on the top.
AP Computer Science DYRT Quiz Key
Teach.NET Workshop Series Track 4: AP Computer Science with.NET and J#
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.
PreAP Computer Science Quiz
1 Advanced Programming Examples Output. Show the exact output produced by the following code segment. char[,] pic = new char[6,6]; for (int i = 0; i
Computer Programming A simple example /* HelloWorld: A simple C program */ #include int main (void) { printf (“Hello world!\n”); return.
Take out a piece of paper and PEN.
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.
Print Row Function void PrintRow(float x[ ][4],int i) { int j; for(j=0;j
AP Computer Science A – Healdsburg High School 1 Unit 9 - Parameter Passing in Java.
Computer Science A 1. Course plan Introduction to programming Basic concepts of typical programming languages. Tools: compiler, editor, integrated editor,
Int fact (int n) { If (n == 0) return 1; else return n * fact (n – 1); } 5 void main () { Int Sum; : Sum = fact (5); : } Factorial Program Using Recursion.
AP Computer Science DYRT Quiz
Question 01 Which of the following can be stored by a simple or primitive data type? (a)Only 1 single value (b)Only Attributes (c)Only Methods (d)Both.
Classroom Procedures Ms. Haut AP Biology Pre-AP Biology Biology.
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.
Hello Educational presentation.
Computing Adjusted Quiz Total Score
TO COMPLETE THE FOLLOWING:
Pre-AP® Computer Science Quiz Key
Pre-AP® Computer Science Quiz
CSE 1020:Programming by Delegation
External Text Features
Govt. Polytechnic,Dhangar
Take out a piece of paper and PEN.
class PrintOnetoTen { public static void main(String args[]) {
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.
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.
Take out a piece of paper and PEN.
AP Computer Science DYRT Quiz
Take out a piece of paper and PEN.
Type your presentation title here
Click on the icon above to hear the narration.
Click on the icon above to hear the narration.
Compile and run c files.
Quiz 11 February 13, 2019.
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:

PreAP Computer Science Review Quiz 08 Key Take out a piece of paper and PEN. The quiz starts one minute after the tardy bell rings. You will have 45 seconds per question.

Title the quiz as shown below The quiz starts in ONE minute. Name Period Date Review Quiz 08 1. 9. 2. 10. 3. 11. 4. 12. 5. 13. 6. 14. 7. 15. 8. EC.

Question 1 Which of these is the heading of a void class method? (a) public static void hello() (b) public void hello() (c) public static int hello() (d) public double hello() (e) public Hello()

Question 2 Which of these is the heading of a return class method? (a) public static void hello() (b) public void hello() (c) public static int hello() (d) public double hello() (e) public Hello()

Question 3 Which of these is the heading of a void object method? (a) public static void hello() (b) public void hello() (c) public static int hello() (d) public double hello() (e) public Hello()

Question 4 Which of these is the heading of a return object method? (a) public static void hello() (b) public void hello() (c) public static int hello() (d) public double hello() (e) public Hello()

Question 5 Which of these is the heading of a constructor for the Hello class? (a) public static void hello() (b) public void hello() (c) public static int hello() (d) public double hello() (e) public Hello()

(a) Hello (b) Hello Savings: 0.0 (c) Hello Savings: 1000.0 (d) Hello Question 6 What is the output of this program? (a) Hello (b) Hello Savings: 0.0 (c) Hello Savings: 1000.0 (d) Hello (e) Error

(a) Hello (b) Hello Savings: 0.0 (c) Hello Savings: 1000.0 (d) Hello Question 7 What is the output of this program? (a) Hello (b) Hello Savings: 0.0 (c) Hello Savings: 1000.0 (d) Hello (e) Error

(a) Hello (b) Hello Savings: 0.0 (c) Hello Savings: 1000.0 (d) Hello Question 8 What is the output of this program? (a) Hello (b) Hello Savings: 0.0 (c) Hello Savings: 1000.0 (d) Hello (e) Error

(a) Hello (b) Hello Savings: 0.0 (c) Hello Savings: 1000.0 (d) Hello Question 9 What is the output of this program? (a) Hello (b) Hello Savings: 0.0 (c) Hello Savings: 1000.0 (d) Hello (e) Error

(a) Hello (b) Hello Savings: 0.0 (c) Hello Savings: 1000.0 (d) Hello Question 10 What is the output of this program? (a) Hello (b) Hello Savings: 0.0 (c) Hello Savings: 1000.0 (d) Hello (e) Error

(a) Hello (b) Hello Savings: 0.0 (c) Hello Savings: 1000.0 (d) Hello Question 11 What is the output of this program? (a) Hello (b) Hello Savings: 0.0 (c) Hello Savings: 1000.0 (d) Hello (e) Error

Question 12 What is the output of this program? (a) Name: Tom Savings: 1000.0 Name: Savings: 0.0 (b) Name: Tom Name: George Savings: 2500000.0 (c) Name: Name: Sue Savings: 1800.0 (d) Name: Tom Error

Question 13 What is the output of this program? (a) Name: Tom Savings: 1000.0 Name: Savings: 0.0 (b) Name: Tom Name: George Savings: 2500000.0 (c) Name: Name: Sue Savings: 1800.0 (d) Name: Tom Error

Question 14 What is the output of this program? (a) Name: Tom Savings: 1000.0 Name: Savings: 0.0 (b) Name: Tom Name: George Savings: 2500000.0 (c) Name: Name: Sue Savings: 1800.0 (d) Name: Tom Error

Question 15 What is the output of this program? (a) Name: Tom Savings: 1000.0 Name: Savings: 0.0 (b) Name: Tom Name: George Savings: 2500000.0 (c) Name: Name: Sue Savings: 1800.0 (d) Name: Tom Error

Extra Credit You need to edit a specific method in your class. This method is a helper, class method which does not return a value. You are going to use your text editor’s find feature to look for the method. What exact words would you search for? public static void public static return private static void private static return public non-static void public non-static return private non-static void private non-static return