Skip to content

AP Computer Science A: all words

159 words in 4 lists. Listen, read the examples, then train a list.

Train all words

1 Using Objects and Methods

38 words Train this list PDF
  1. algorithm /ˈælɡərɪθəm/ A finite sequence of precise steps for solving a problem or carrying out a task. An algorithm is a list of steps to solve a problem.
  2. program /ˈprəʊɡræm/ A set of instructions specifying operations for a computer to carry out. A program is a list of instructions for the computer.
  3. compiled /kəmˈpaɪld/ Translated from source code into another form, such as Java bytecode, before that form is executed. Java code is compiled before it runs.
  4. compiler /kəmˈpaɪlə/ Software that translates a program from a source language into another form, commonly machine or intermediate code. The compiler turns the whole program into machine code.
  5. syntax error /ˈsɪntæks ˈerə/ A mistake that breaks the grammatical rules of a programming language. A missing bracket is a syntax error.
  6. logic error /ˈlɒdʒɪk ˈerə/ A mistake in an algorithm or program that produces an incorrect result despite valid syntax. A logic error gives the wrong answer but does not stop the program.
  7. variable /ˈveərɪəbl/ A quantity or named value that can change or take different values. A variable stores a value that can change.
  8. type /taɪp/ A classification determining what values a variable or expression can represent and what operations apply to it. The number 8 has the type int.
  9. primitive types /ˈprɪmɪtɪv taɪps/ The language's basic non-reference types; in Java, these are the Boolean and numeric types. int and boolean are primitive types.
  10. expression /ekˈspreʃn/ A combination of values, variables and operators representing a quantity or a value to be evaluated. 2 + 3 - 1 is an expression with the value 4.
  11. modulus /ˈmɒdjʊləs/ The operation that gives the remainder from dividing one number by another, under the programming language's rules. The modulus operator % gives the remainder: 19 % 4 is 3.
  12. escape sequence /eˈskeɪp ˈsiːkwəns/ A backslash-based notation inside a string or character literal that represents a special character, such as a newline. The escape sequence \n starts a new line.
  13. assignment /əˈsaɪnmənt/ Storing a value in a variable or other named location. Total ← 0 is an assignment.
  14. Casting /ˈkæstɪŋ/ Converting a value or reference to a specified type; in Java a cast can lose numeric information or fail at run time. Casting (int) 3.7 gives 3.
  15. library /ˈlaɪbrəri/ A collection of reusable code, such as ready-made classes and methods, available for programs to use. A library gives you ready-made functions.
  16. abstraction /əbˈstrækʃn/ Representing essential features while leaving out unnecessary detail. A map uses abstraction: it leaves out small details.
  17. Comments /ˈkɒments/ Explanatory text in source code or markup that does not execute as a program instruction. Comments explain the code to people but do not run.
  18. method signature /ˈmeθəd ˈsɪɡnɪtʃə/ A Java method’s name and parameter types, which distinguish overloaded versions; return type alone does not distinguish them. The method signature is the method's name and parameter types.
  19. arguments /ˈɑːɡjuːmənts/ Values or references supplied to a function or procedure when it is called. Pass the arguments 5 and 3 to the function.
  20. class (static) method /klæs ˈmeθəd/ A Java method belonging to a class rather than an instance, callable without creating an object of that class. Math.sqrt is a class (static) method.
  21. class /klæs/ A blueprint; an object is a concrete instance built from it. A class is a plan for making objects.
  22. object /ˈɒbdʒekt/ An entity in a program with associated state and behaviour, often an instance of a class. Each car in the game is an object.
  23. instance /ˈɪnstəns/ A particular occurrence or example; in object-oriented programming, an object created from a class. Each dog object is an instance of the Dog class.
  24. object-oriented programming /ˈɒbdʒekt ˈɔːrɪəntɪd ˈprəʊɡræmɪŋ/ Organising programs around objects with data and behaviour defined by classes. Object-oriented programming builds programs from objects.
  25. superclass /ˈsuːpəklæs/ A class from which another class inherits attributes or behaviour. Vehicle is the superclass of Bus.
  26. subclasses /ˈsʌbklæsɪz/ Classes that extend a superclass, inheriting eligible members and potentially adding or overriding behaviour. Dog and Cat are subclasses of Animal.
  27. inheritance relationship /ɪnˈherɪtəns rɪˈleɪʃənʃɪp/ An is-a relationship in which a subclass specialises a superclass and can be used where that superclass type is expected. A Dog is an Animal shows an inheritance relationship.
  28. method overriding /ˈmeθəd ˌəʊvəˈraɪdɪŋ/ A subclass providing its own implementation of an inherited instance method with a matching signature; static methods are hidden instead. Method overriding lets a subclass change an inherited method.
  29. Instantiation /ˌɪnstænʃɪˈeɪʃn/ Creating an object that is an instance of a class, commonly using new and a constructor in Java. Instantiation creates an object with new.
  30. constructor /kənˈstrʌktə/ A special operation used to initialise a newly created object. The constructor sets up a new object.
  31. reference /ˈrefrəns/ A value that refers to an object; copying this value does not copy the object itself. A variable holds a reference to an object, not a copy.
  32. null /nʌl/ The Java null reference, which refers to no object; it is distinct from zero and an empty string. A reference set to null points to no object.
  33. instance method /ˈɪnstəns ˈmeθəd/ A method invoked with a particular object as its receiver, allowing it to use that object's state. length() is an instance method of String.
  34. immutable /ɪˈmjuːtəbl/ Unable to have its value or state changed after creation. Strings are immutable: you cannot change one letter in place.
  35. API /ˌeɪ piː ˈaɪ/ A published set of classes, methods and rules through which a program uses a library or service. The weather API gives our app today's temperature.
  36. precondition /ˌpriːkənˈdɪʃn/ A requirement that must hold before a method is called for its documented guarantees to apply. For findMaximum, a nonempty list is a precondition.
  37. postcondition /ˌpəʊstkənˈdɪʃn/ A result or state a method guarantees after normal completion when its preconditions hold. After sort returns, ascending order is its postcondition.
  38. overloaded /ˌəʊvəˈləʊdɪd/ Describing methods or constructors that share a name but have different parameter-type lists. Math.abs is overloaded for int and double arguments.

2 Selection and Iteration

47 words Train this list PDF
  1. Algorithms /ˈælɡərɪθəmz/ Finite sequences of precise steps for solving problems or carrying out tasks. Algorithms are step-by-step methods for solving a problem.
  2. control structures /kənˈtrəʊl ˈstrʌktʃəz/ Language constructs that determine execution order, such as selection, repetition and method calls. Sequence, selection and loops are control structures.
  3. sequence /ˈsiːkwəns/ The order in which items appear or operations are carried out. In a sequence, the steps run one after another.
  4. selection /sɪˈlekʃn/ Choosing which branch of instructions to execute according to a condition. An IF statement is a kind of selection.
  5. iteration /ˌɪtəˈreɪʃn/ Repeating a sequence of instructions or calculations. A loop is a kind of iteration.
  6. boolean expression /ˈbuːlɪən ekˈspreʃn/ An expression whose value is true or false. x > 3 is a boolean expression.
  7. relational operators /rɪˈleɪʃənl ˈɒpəreɪtəz/ Operators that compare values, such as less than or greater than, and produce a Boolean result. <, > and == are relational operators.
  8. primitive values /ˈprɪmɪtɪv ˈvæljuːz/ Values of Java’s non-reference types, such as int, double, char and boolean. == compares primitive values such as int and double.
  9. object references /ˈɒbdʒekt ˈrefrənsɪz/ Values that identify objects or are null; comparing them with == tests identity rather than object contents. For objects, == compares object references, not contents.
  10. if statement /ɪf ˈsteɪtmənt/ A statement that executes a block or chooses between branches according to a Boolean condition. An if statement runs code only when the condition is true.
  11. condition /kənˈdɪʃn/ A requirement or circumstance that affects what happens or whether something is true. The condition x > 10 decides whether the if block runs.
  12. block /blɒk/ A group of Java statements and declarations enclosed in braces, with its own local scope. A block is the code inside curly braces { }.
  13. branch /bræntʃ/ One possible path of execution selected by a condition. Each branch of an if statement does something different.
  14. Logical operators /ˈlɒdʒɪkl ˈɒpəreɪtəz/ Operators that combine or negate Boolean values, such as Java's &&, || and !. &&, || and ! are logical operators.
  15. short-circuit evaluation /ʃɔːt ˈsɜːkɪt ɪˌvæljuːˈeɪʃn/ Evaluating a logical expression without evaluating a later operand when an earlier operand already determines the result. Short-circuit evaluation stops once the answer is known.
  16. guard against /ɡɑːd əˈɡenst/ Protect against a possible problem, such as invalid division or an array access outside its bounds. Short-circuit evaluation can guard against division by zero.
  17. De Morgan's laws /də ˈmɔːɡənz lɔːz/ Rules stating that negating an AND gives the OR of the negated operands, and negating an OR gives the AND of the negated operands. De Morgan's laws change AND into OR.
  18. equivalent /ɪˈkwɪvələnt/ Having the same value, meaning or effect in the relationship being considered. !(a && b) is equivalent to !a || !b.
  19. truth table /truːθ ˈteɪbl/ A table listing the output of a logical expression or circuit for every combination of inputs. A truth table shows the output for every input.
  20. aliases /ˈeɪlɪəsɪz/ a and b are aliases: two names for one list.
  21. while loop /waɪl luːp/ A loop that tests its condition before each iteration and repeats while the condition is true. A while loop repeats while the condition is true.
  22. infinite loop /ˈɪnfɪnət luːp/ A loop that continues indefinitely because its stopping condition is never reached or no stopping condition is provided. while True: with no break makes an infinite loop.
  23. initialization /ɪˌnɪʃəlaɪˈzeɪʃn/ Giving a variable its starting value; a for-loop initializer runs before its first condition test. A for loop's initialization runs once, before the first pass.
  24. update /ˈʌpdeɪt/ Changing a stored value; a for-loop update normally runs after its body before the next condition test. count = count + 1 will update the value of count.
  25. integer /ˈɪntɪdʒə/ A whole number that may be positive, negative or zero. An integer is a whole number, which can be positive, negative or zero.
  26. digits /ˈdɪdʒɪts/ The symbols representing positions in a number, such as 0 through 9 in decimal notation. n % 10 gives the last of a number's digits.
  27. divisibility /dɪˌvɪzɪˈbɪlɪti/ Whether an integer can be divided by a nonzero integer with no remainder. For nonzero d, n % d == 0 tests divisibility.
  28. counter /ˈkaʊntə/ A device or variable that records how many events or items have occurred. The counter goes up by 1 each time.
  29. frequency /ˈfriːkwənsi/ How many times a value or event occurs in the data being counted. A frequency of 50 Hz means 50 waves every second.
  30. criterion /kraɪˈtɪərɪən/ A condition or rule used to decide which values meet a requirement. Count the values that meet the criterion.
  31. running total /ˈrʌnɪŋ ˈtəʊtl/ A stored sum updated as each new value is processed. A running total adds each value to a sum.
  32. flag /flæɡ/ A stored indicator of a condition or state, often represented by a Boolean value or a single bit. A flag variable records whether something has happened.
  33. index /ˈɪndeks/ A position marker or lookup structure used to locate data within a collection or database. Use index 3 to read the third item in the array.
  34. character /ˈkærɪktə/ A text unit such as a letter, digit, punctuation mark or other symbol. A is a single character.
  35. occurrences /əˈkɜːrənsɪz/ The times a particular value, character or pattern appears. Count the occurrences of "a" in a word.
  36. nested loop /ˈnestɪd luːp/ A loop located inside another loop, so its iterations occur as part of each relevant outer iteration. A nested loop is a loop inside another loop.
  37. inner loop /ˈɪnə luːp/ A loop placed inside another loop’s body. The inner loop runs fully each time the outer loop runs once.
  38. outer loop /ˈaʊtə luːp/ A loop whose body contains another loop. The outer loop goes through each row of the grid.
  39. grids /ɡrɪdz/ Arrangements of cells in rows and columns, often processed with nested loops. Nested loops process grids row by row.
  40. Run-time analysis /rʌn taɪm əˈnæləsɪs/ Analysing how an algorithm's work grows with its input size, for example by counting executions of a repeated statement. Run-time analysis shows how the time grows with input size.
  41. linear /ˈlɪnɪə/ Describing growth that is proportional to input size, so doubling the input approximately doubles the amount of work for large inputs. The relationship looks linear.
  42. quadratic /kwɒˈdrætɪk/ Describing work that grows in proportion to the square of input size for large inputs. Counting every pair among n items takes quadratic work.
  43. efficiency /ɪˈfɪʃənsi/ How economically an algorithm uses resources such as running time and memory. A lamp with 20% efficiency turns only a fifth of its energy into light.
  44. boundary conditions /ˈbaʊndəri kənˈdɪʃnz/ Input limits and edge cases to check, such as empty collections and first or last valid indices. Test the boundary conditions, such as an empty list.
  45. off-by-one /ɒf baɪ wʌn/ An error caused by using a count or boundary one too high or one too low. Using i <= a.length can cause an off-by-one error.
  46. bug /bʌɡ/ A defect in a program that can make its behaviour differ from what is intended. The team found a bug that made the score go below zero.
  47. loop variable /luːp ˈveərɪəbl/ A variable used to control or track loop iterations. Update the loop variable so the loop ends.

3 Class Creation

47 words Train this list PDF
  1. interface /ˈɪntəfeɪs/ Here, the public operations through which other code uses a class without knowing its implementation. The interface lists the methods other code can use.
  2. readable /ˈriːdəbl/ Easy for a person to understand, helped by clear names, structure and explanations. Clear names make code readable.
  3. reusable /riːˈjuːzəbl/ Able to be used again in another suitable part of a program or another program. A well-designed class is reusable in other programs.
  4. Encapsulation /ɪnˌkæpsjʊˈleɪʃn/ Grouping data with the operations that use it and controlling access through an interface. Encapsulation keeps an object's data private.
  5. private /ˈpraɪvət/ A Java access modifier that restricts direct access to a member from unrelated classes. Use private fields to hide the stored balance.
  6. methods /ˈmeθədz/ Functions defined as part of a Java class, providing operations on an object or the class. A car's methods include Drive() and Stop().
  7. state /steɪt/ The current values stored in an object’s fields. An object's state is the values of its fields.
  8. testing /ˈtestɪŋ/ Running a program with chosen inputs to check that it gives the expected outputs. Use testing to compare actual and expected answers.
  9. bugs /bʌɡz/ Defects in programs that can cause unintended behaviour or incorrect results. Shadowed variables are a common source of bugs.
  10. System reliability /ˈsɪstəm rɪˌlaɪəˈbɪlɪti/ The ability of a system to perform its required functions consistently under specified conditions. System reliability means the program keeps working as expected.
  11. beneficial /ˌbenɪˈfɪʃl/ Having a helpful or positive effect on people or a task. Programs can be beneficial, for example by speeding up medical tests.
  12. harmful /ˈhɑːmfl/ Having a damaging or negative effect on people or systems. Programs can also be harmful, for example by leaking personal data.
  13. legal /ˈliːɡl/ Relating to law, as in the rules governing the use and copying of software. Firms must follow the legal rules of each country.
  14. intellectual-property /ˌɪntəˈlektʃuːəl ˈprɒpəti/ Rights relating to creations such as software, written work and designs. Code is intellectual-property, protected like a book.
  15. open source /ˈəʊpən sɔːs/ Software whose licence permits access to source code and allows redistribution and modification under its stated terms. The open source licence lets us read and change the code.
  16. licence /ˈlaɪsəns/ Terms specifying permitted uses of software or other work and any conditions that apply. You need a licence to sell alcohol in a shop.
  17. give credit /ɡɪv ˈkredɪt/ Acknowledge the person or source whose work was used. Always give credit when you reuse someone else's code.
  18. instance variables /ˈɪnstəns ˈveərɪəblz/ Fields associated with individual objects, so each instance has its own field values. Instance variables store each object's own data.
  19. fields /fiːldz/ Variables declared in a class that store its objects’ state or shared class data. The fields hold an object's data.
  20. behavior /bɪˈheɪvjə/ The operations and responses an object provides through its methods. An object's behavior is what its methods do.
  21. return type /rɪˈtɜːn taɪp/ The declared type of a method’s returned value; void specifies that no value is returned. A constructor has no return type, not even void.
  22. initialize /ɪˈnɪʃəlaɪz/ Give a variable or object its initial value or state. The constructor should initialize the player's starting score.
  23. parameter lists /pəˈræmɪtə lɪsts/ The declared inputs of methods or constructors, including their types, names and order. Overloaded constructors have different parameter lists.
  24. overloading /ˌəʊvəˈləʊdɪŋ/ Declaring methods or constructors with the same name but different parameter lists, so the applicable version is selected from the call. Overloading means two methods have the same name but different parameters.
  25. no-argument /nəʊ ˈɑːɡjuːmənt/ Having no parameters, as in a constructor called with empty parentheses. A no-argument constructor takes no parameters.
  26. defaults /dɪˈfɒlts/ Initial or fallback values; Java gives instance fields type-specific initial values such as 0, false or null. Java's defaults include 0 for int instance fields.
  27. signature /ˈsɪɡnɪtʃə/ A Java method’s name and parameter types, which distinguish overloaded versions; return type alone does not distinguish them. A method's signature is its name and parameter types.
  28. body /ˈbɒdi/ The statements and declarations inside the braces of a Java method. The method body is the code between the braces.
  29. accessor (getter) /əkˈsesə/ A method that provides access to an object's data, typically returning a field value without changing that object. An accessor (getter) returns a field's value.
  30. mutator (setter) /mjuːˈteɪtə/ A method that changes an object's data, often validating a new value before storing it. A mutator (setter) changes a field's value.
  31. caller /ˈkɔːlə/ The code that invokes a method or procedure. A change to a shared object is visible to the caller.
  32. Primitives /ˈprɪmɪtɪvz/ Java’s basic non-reference types, including boolean and the numeric types. Primitives such as int and double store values directly.
  33. copied by value /ˈkɒpɪd baɪ ˈvæljuː/ Passed by copying the argument value; for an object argument, Java copies the reference rather than the object. Arguments are copied by value in Java.
  34. mutable /ˈmjuːtəbl/ Able to have its state changed after creation, as with the contents of an ArrayList. An ArrayList is mutable: a method can add to it.
  35. static (class) variable /ˈstætɪk ˈveərɪəbl/ A variable associated with a Java class rather than each individual instance, shared by that class's instances. A static (class) variable is shared by all objects of the class.
  36. static method /ˈstætɪk ˈmeθəd/ A Java method belonging to a class, callable without creating an instance and without an implicit current object. A static method is called with the class name.
  37. Scope /skəʊp/ The region of a program in which a particular name or binding can be accessed. Scope decides where a variable can be used.
  38. local variable /ˈləʊkl ˈveərɪəbl/ A variable whose name is accessible only within a particular function, block or other limited scope. A local variable is used only inside its procedure.
  39. parameter /pəˈræmɪtə/ A named input in a function or procedure definition that receives a supplied argument when it is called. In def area(r):, r is a parameter.
  40. Access modifiers /ˈækses ˈmɒdɪfaɪəz/ Java keywords such as public and private that control where a class or member can be accessed. Access modifiers such as private and public control visibility.
  41. visibility /ˌvɪzɪˈbɪlɪti/ Where a declared name or member can be accessed under Java’s scope and access rules. A public method has wider visibility than a private method.
  42. shadow /ˈʃædəʊ/ Use a name in a local scope that hides another declaration with the same name, such as a field. A parameter with the same name will shadow the field.
  43. current object /ˈkʌrənt ˈɒbdʒekt/ The instance on which an instance method or constructor is operating, referred to by this. this refers to the current object.
  44. base case /beɪs keɪs/ A case that can be solved directly and stops further recursive calls. A recursive method stops at its base case.
  45. recursive call /rɪˈkɜːsɪv kɔːl/ An invocation of the same method during its own computation, usually on a case closer to a stopping condition. Each recursive call works on a smaller problem.
  46. inheritance /ɪnˈherɪtəns/ A class relationship in which a subclass gains eligible members and behaviour from a superclass. With inheritance, a Bus class gets the methods of the Vehicle class.
  47. subclass /ˈsʌbklæs/ A class that inherits attributes or behaviour from another class and may extend or override them. Bus is a subclass of Vehicle.

4 Data Collections

27 words Train this list PDF
  1. privacy /ˈprɪvəsi/ The ability to control access to personal information and aspects of one's private life. Privacy means people control who sees their information.
  2. consent /kənˈsent/ Agreement to a specified action or use of information, given by a person with the relevant choice and understanding. Ask for consent before you collect data.
  3. bias /ˈbaɪəs/ A systematic preference or prejudice that can distort judgement, decisions or the representation of information. A program trained on unfair data can show bias.
  4. data structure /ˈdeɪtə ˈstrʌktʃə/ A way of organising and storing data to support particular operations. An array is a simple data structure.
  5. array /əˈreɪ/ An indexed collection of elements arranged in one or more dimensions. An array stores many values under one name.
  6. Traverse /trəˈvɜːs/ To visit the elements of a data structure systematically. Traverse the array from first to last.
  7. duplicate /ˈdjuːplɪkeɪt/ A value that appears more than once in the collection being considered. The method returns true if the array has a duplicate value.
  8. element /ˈelɪmənt/ One value or object stored at a position in an array or collection. Each element of the array holds one value.
  9. method header /ˈmeθəd ˈhedə/ The declaration part before a Java method body, including its name, parameter list and return type. The method header states its return type, name and parameters.
  10. token /ˈtəʊkən/ An input unit separated according to the scanner’s delimiter rules, such as a whitespace-separated number. nextInt() reads the next token as an int.
  11. primitive /ˈprɪmɪtɪv/ A basic Java non-reference type, such as int or double, or a value of such a type. int is a primitive type, not a class.
  12. autoboxing /ˌɔːtəʊˈbɒksɪŋ/ Java's automatic conversion of a primitive value to a reference to an object of its corresponding wrapper class. Autoboxing turns an int into an Integer.
  13. unboxing /ʌnˈbɒksɪŋ/ Java’s automatic conversion from a wrapper reference, such as Integer, to its primitive value; null cannot be unboxed successfully. Unboxing turns an Integer back into an int.
  14. ArrayList /əˈreɪ lɪst/ A resizable Java list backed by an array, offering indexed access and allowing elements to be added or removed. An ArrayList can grow and shrink.
  15. 2D array /ˌtuː ˈdiː əˈreɪ/ In Java, an array whose elements refer to arrays; rows can have different lengths, so it need not form a rectangular grid. A 2D array has rows and columns.
  16. row-major order /rəʊ ˈmeɪdʒə ˈɔːdə/ An ordering in which all elements of one row precede the elements of the next row. Row-major order goes through row 0 first, then row 1.
  17. Linear search /ˈlɪnɪə sɜːtʃ/ Checking items in sequence until the required item is found or the list ends. Linear search checks each item in turn.
  18. Binary search /ˈbaɪnəri sɜːtʃ/ A search of ordered data that repeatedly compares with the middle item and discards half of the remaining search range. Binary search halves a sorted list each step.
  19. sorted /ˈsɔːtɪd/ Arranged according to a specified ordering, such as increasing numerical value. Binary search only works on a sorted list.
  20. Selection sort /sɪˈlekʃn sɔːt/ A sorting algorithm that repeatedly selects the smallest remaining item and places it next in the sorted portion. Selection sort picks the smallest item each time.
  21. Insertion sort /ɪnˈsɜːʃn sɔːt/ A sorting method that inserts each new item into its correct position in the already sorted part of a list. Insertion sort puts each new item in its right place.
  22. Recursion /rɪˈkɜːʃn/ Solving a problem through calls to the same routine, with reachable stopping cases for terminating computations. Recursion means a method calls itself.
  23. recursive case /rɪˈkɜːsɪv keɪs/ The part of a recursive definition or algorithm that reduces a problem by invoking the same process on a smaller or simpler case. In the recursive case, the function calls itself again.
  24. stack overflow /stæk ˌəʊvəˈfləʊ/ A condition in which a program needs more call-stack space than is available, often because of excessive recursion. Recursion with no base case causes a stack overflow.
  25. iterative /ˈɪtərətɪv/ Using repeated steps, such as a loop, to carry out a computation. The iterative process repeats: design, test, improve.
  26. Merge sort /mɜːdʒ sɔːt/ A divide-and-conquer sort that sorts smaller sections and merges their sorted results. Merge sort splits the list, sorts each half, then joins them.
  27. personally identifiable information /ˈpɜːsənəli aɪˈdentɪfaɪəbl ˌɪnfəˈmeɪʃn/ Information that identifies a person directly or can be combined with other information to identify them. A student's phone number is personally identifiable information.

Log in or create account

IGCSE, A-Level & AP