[PDF] AP Comp Sci Unit 2 Quiz practice • The quiz will be 100% code, no




Loading...







[PDF] Some Sample AP Computer Science A Questions - Solutions Note

Some Sample AP Computer Science A Questions - Solutions I've created these questions based on looking at actual AP tests Multiple Choice Questions

[PDF] AP Computer Science Principles: Practice Exam 1 < 137 - cspnyc

AP Computer Science Principles: Practice Exam 1 Multiple-Choice Questions Time: 2 hours Number of questions: 74 The multiple-choice questions represent 

[PDF] AP Computer Science A 2020 Exam Sample Questions

2020 Exam Sample Question 1 (Adapted from: AP® Computer Science A Course and Exam Description) Directions: SHOW ALL YOUR WORK

[PDF] Sample Exam Questions - apcspths

The sample questions that follow illustrate the relationship between the curriculum framework and the AP Computer Science Principles Exam and serve

[PDF] What's on the AP Computer Science Exam? Preparing - Peterson's

Completing practice tests will help you maintain pacing, and in understanding and answering multiple-choice question, and practice in writing timed questions

[PDF] AP Computer Science A, 7th Edition - Moore Public Schools

Roselyn Teukolsky, M S ? 4 full-length practice tests with explained answers, including one online ? Expert advice on 

[PDF] AP Comp Sci Unit 2 Quiz practice • The quiz will be 100% code, no

AP Comp Sci Unit 2 Quiz practice • The quiz will be 100 code, no multiple choice or fill-ins It will consist of a class, with a bunch of methods,

[PDF] AP Comp Sci Unit 2 Quiz practice • The quiz will be 100% code, no 15339_3Unit2QuizPractice.pdf

AP Comp Sci

Unit 2 Quiz practice

The quiz will be 100% code, no multiple choice or fill-ins. It will consist of a class, with a bunch of methods,

and the client that uses the class.

Any coding skills taught in Units 1 and 2 can be tested - including String methods (charAt, indexOf, substring,

etc), loops, if statements, etc. Using ascii values might be tested, but you are NOT expected to memorize the ascii table. Every year, the most common mistakes on this quiz are: o Not knowing where parameters are ͞accepted" by a method o Writing parameters even when a method does not accept any o Not knowing what word comes after ͞public" in the name of a method o Not returning anything when a method should return something (or, returning something when a method should NOT return anything)

Write a class that contains each of the following methods. Then, write a client that calls each of the methods.

1) DisplayName( ) - accepts no parameters, displays your name, returns nothing

2) Mult3Nums( ) - accepts 3 int parameters, multiplies them together, displays the result, returns nothing

3) Add4Nums( ) - accepts 4 double parameters, adds them together, returns (DOES NOT DISPLAY) the result

4) ContainsB( ) - accepts a String parameter, returns true if it contains the letter B, false otherwise

5) SumOdd( ) - accepts 2 int parameters, returns the sum of all the odd numbers between (and including) the two

numbers. Assume that the first is larger than the second.

6) PrintDouble( ) - accepts one int parameter, displays twice that number, returns nothing

7) CurvyLetter( ) - accepts a char parameter (assume it͛s uppercase), displays the letter, then returns true if it͛s a

curvy letter, false otherwise

8) Palindrome( ) - accepts a String parameter, returns true if it is a palindrome, false otherwise

Now, write a client program to test these methods.
Politique de confidentialité -Privacy policy