AP Computer Science Midterm Topics 2024-2025 PDF

Summary

This is an AP Computer Science midterm exam for 2024-2025. It covers topics such as primitive types, objects, booleans, if statements, iterations, and classes. This document is suitable for high school students studying computer science.

Full Transcript

AP Computer Science Midterm Topics 2024-2025 Test Format: 25 multiple choice questions 2 free response questions Topics: Unit 1 - Primitive Types - Primitive data types - int, double, char, boolean - Reference data types - St...

AP Computer Science Midterm Topics 2024-2025 Test Format: 25 multiple choice questions 2 free response questions Topics: Unit 1 - Primitive Types - Primitive data types - int, double, char, boolean - Reference data types - Strings and objects - final - know the differences in the way primitive and reference variables are stored and consequences of these differences - Know the mathematical operators and what they do (especially % and results when all numbers are integers vs results if all decimals or a mix of integers and decimals) - Order of operations - Understand how casting works and the results when casting is done at different points in an expression Unit 2 - Using Objects - Use of Math.random() and other Math methods - Wrapper Classes - Understand the basics of classes and instances of classes (also covered in Unit 5) - String methods - know how to use -.length() -.substring() - Difference of output with one parameter or two parameters -.indexOf() - Difference of results with one parameter or two parameters - compareTo() - Know what the results represent - < 0 - first value is less than the second value - 0 - values are equal - > 0 - the first value is greater than the second value Unit 3 - Booleans, If statements and Logic Operators - Be able to understand and evaluate boolean expressions - Be able to understand and evaluate if statements and the other variations (if - else) and nested if statements - Results of && and || - Truth tables - Equivalent statements and DeMorgan’s Law Unit 4 - Iterations - while - for - For both of the loop types, know how to create a loop, evaluate the number of times it runs and be able to determine the outcome - Nested iterations - understand how they work and evaluate outcome and number of times executed Unit 5 - Classes & Methods - constructor and use of keyword “new” - private vs public visibility modifiers - Use of methods - Accessor and mutator methods - toString() - Formal parameters and actual parameters - how to use a method with parameters - Understand the parts of a method header and how it relates to the code you are writing especially in FRQs - Using a class in a client (driver) program - Understand connections between the code in the class and the code in the client program - Understand what a static variable is and how it is used

Use Quizgecko on...
Browser
Browser