AP Computer Science A Review Worksheet! String methods: reverse a string in Java. You can use this for homework, test prep, extra practice, extra credit, for an in class activity, or more. Students will write a static Java method to reverse a string in Java. You can download and print the activity as a PDF or students can access it virtually via TPT Easel.
A worksheet that allows students to practice a common AP Computer Science exam question: finding the maximum and minimum values in an array using a linear search. Includes fully coded answer! Example: Write methods to find the maximum and minimum values in an array and return the indices at which they occur. If the array length is zero, return -1.int[] arr = {10, 3, 85, 2, 9, 14, 11}; int index = arrayMax(arr); System. out.println(“Max value “ + arr[index] + “ found at index “ + index); > >
AP Computer Science A Problem 4: Array Practice! Merge Arrays in Java A common array programming exercise for students reviewing arrays in Java - or practicing for the AP Computer Science exam! Students must write a method to merge two arrays and return the final array. Includes fully coded and tested solution! Write a method that takes in two integer arrays, and outputs a single integer array that contains all the elements from both input arrays, in order.int[] arr1 = {1, 2, 3}; int[] arr2 = {6
AP Computer Science A Test Review and Practice: Free Response Question A full, unique free response question using Java in the style of the AP Computer Science exam. Students complete three methods from a library management system. The problem presents two existing classes: Library and Book. Students complete three new methods as a part of the Library class: public void addBook(Book newBook)public ArrayList<String> findBooksByAuthor(String author)public Book recommendBook(int targetYear)
A common array programming exercise for students reviewing arrays in Java - or practicing for the AP Computer Science exam! Includes fully coded and tested solution! Write a method that takes in an array of integers and returns true if each element in the array is greater than the last, and false otherwise. Return false if the array has zero elements.int[] arrInc = {1, 2, 3, 4, 5, 6, 7}; int[] arrNotInc = {2, 4, 1, 9, 3, 5}; System. out.println(arrayIncreasing(arrInc)); > > true System. o
SAT Math Practice: Algebra PrepGet ready for the SAT math section with algebra practice problems!Preparing for the SAT? Strengthen your algebra skills with this practice packet. This resource is crafted to help you tackle the algebra section with confidence, featuring 9 SAT-style questions with full answers and explanations that reflect what you’ll actually see on the exam. What’s Inside:Focused Practice: Dive into 9 algebra questions that are typical of the SAT, perfect for honing your problem
AP Computer Science A Problem 1: Array Practice! Array Linear Search in Java A review worksheet for free response linear array search questions on the AP Computer Science exam. Allows students write a search method using a for loop. Includes fully coded answer key! Example: Search an integer array of arbitrary length for a specific value n, and return the index at which this value n appears. If n is not in the array, return the value -1.int[] arr = {3, 9, 30, 6, 8, 2, 4, 10}; int index = simpleS
A worksheet that allows students to practice a common AP Computer Science exam question: copying an array of Strings while excluding a specific target String. Includes fully coded answer! Example: Write a method that takes in an array of Strings and a “target” string, and returns a new array of Strings that does not include the target String.String[] arrStr = {“a”, “c”, “u”, “ll”, “h”}; String target = “c”; System. out.println(stringSelect(arrStr, target)); > > [“s”, “u”, “ll”, “h”]
9th - 12th
Computer Science - Technology
FREE
Rated 3.95 out of 5, based on 2 reviews
4.0 (2)
Showing 1-9 of 9 results
TPT is the largest marketplace for PreK-12 resources, powered by a community of educators.