Docsity

AP Computer Science Revision Test 2024, Exams of Computer Science

Toggle sidebar
bg1
AP Computer Science revision test
2024
1. Bit - Correct answer Binary Digit, the single unit of information in a computer.
2. Bit rate - Correct answer the number of bits that are processed in a unit of time
3. Protocol - Correct answer A set of rules used for transmitting data.
4. Router - Correct answer a computer designed to receive and redirect packets of
information based upon the addressing information (IP address)
5. Packets - Correct answer Small chunks of information that have been chunks of
information formed from large chunks of information
6. TCP (Transmission Control Protocol) - Correct answer Provides reliable, ordered
and error checked delivery stream of packets on the Internet.
7. DNS (Domain Name Service) - Correct answer the service that translates URLs
to IP addresses
8. HTTP (Hypertext Transfer Protocol) - Correct answer The protocol used for
sending and receiving web pages
9. -ASCII text- based protocol
10.-At the same level as DNS
11.Compression - Correct answer Represents the same data using fewer bits
12.Pixel - Correct answer the fundamental unit of a digital image
a) short for picture element
b) typically a tiny square or dot which contains a single point of color or larger
image
13.Metadata - Correct answer data that describes other data
a) Examples: size of number, number of colors, or resolution (how clear the
image is)
14.Internet Packet - Correct answer The packet contains the data that needs to be
sent, but also other data like the to and from address, and packet number.
pf3
pf4
pf5
pf8

Partial preview of the text

Download AP Computer Science Revision Test 2024 and more Exams Computer Science in PDF only on Docsity!

AP Computer Science revision test

  1. Bit - Correct answer Binary Digit, the single unit of information in a computer.
  2. Bit rate - Correct answer the number of bits that are processed in a unit of time
  3. Protocol - Correct answer A set of rules used for transmitting data.
  4. Router - Correct answer a computer designed to receive and redirect packets of information based upon the addressing information (IP address)
  5. Packets - Correct answer Small chunks of information that have been chunks of information formed from large chunks of information
  6. TCP (Transmission Control Protocol) - Correct answer Provides reliable, ordered and error checked delivery stream of packets on the Internet.
  7. DNS (Domain Name Service) - Correct answer the service that translates URLs to IP addresses
  8. HTTP (Hypertext Transfer Protocol) - Correct answer The protocol used for sending and receiving web pages
  9. -ASCII text- based protocol
  10. -At the same level as DNS
  11. Compression - Correct answer Represents the same data using fewer bits
  12. Pixel - Correct answer the fundamental unit of a digital image a) short for picture element b) typically a tiny square or dot which contains a single point of color or larger image
  13. Metadata - Correct answer data that describes other data a) Examples: size of number, number of colors, or resolution (how clear the image is)
  14. Internet Packet - Correct answer The packet contains the data that needs to be sent, but also other data like the to and from address, and packet number.
  1. Lossless Compression - Correct answer a data compression algorithm that allows the original data to be perfectly reconstructed from the compressed data.
  2. Lossy Compression - Correct answer (or irreversible compression) a data compression method that uses inexact approximations, discarding some data to represent the content. Most commonly seen in image formats like .jpg.
  3. Top Down Design Approach - Correct answer A design process that begins by specifying complex pieces and then dividing them into smaller pieces.
  4. Abstraction - Correct answer Pulling out specific differences to make one solution work for multiple problems.
  5. -a mental tool that allows us to ignore low-level details when they are unnecessary.
  6. -this ability to ignore small details is what allows us to develop complex encodings and protocols.
  7. Assumption - Correct answer The information collected that gave us a false representation of data.
  8. Digital Divide - Correct answer the gulf between those who have ready access to computers and the Internet, and those who do not.
  9. Programming Language - Correct answer Instructional "code" where each has a precise, unambiguous meaning.
  10. Sequencing - Correct answer Sequencing is the application of each step of an algorithm in the order in which the statements are given.
  11. Selection - Correct answer Selection uses a [true-false] condition to determine which of two parts of an algorithm is used.
  12. Iteration - Correct answer Iteration is the repetition of a part of an algorithm until a certain condition is met or for a specified number of times. In a computer program, a common form of iterations is a loop, which repeats code to determine values for multiple variables or sometimes just a single variable (adding up multiple values together).
  13. Algorithm - Correct answer A precise sequence of instructions for processes that can be executed only by the computer.
  14. Function - Correct answer a piece of code that you can call over and over again
  15. API - Correct answer a collection of commands made available to a programmer
  1. arithmetic operators - Correct answer +, -, *, /, %
  2. relational operators - Correct answer ==, !=, >, <, >=, <=
  3. boolean expressions - Correct answer statements that evaluate to true or false
  4. logical operators - Correct answer !, &&, ||
  5. Short-circut evalutation - Correct answer evaluation automatically stops as soon as the value of the entire expression is known
  6. Assignment operators - Correct answer =, +=, -+, *=, /=, %=
  7. Increment operator - Correct answer ++
  8. decrement operator - Correct answer --
  9. operator precedence(highest to lowest) - Correct answer (1) !, ++, -- (right to left!)
  10. (2) *, /, %
  11. (3) +, -
  12. (4) >, <, <=, >=
  13. (5) ==, !=
  14. (6) &&
  15. (7) ||
  16. (8) =, +=, -=, *=, /=, %= (right to left)
  17. escape sequence - Correct answer \n, ", \
  18. object - Correct answer defined with a class and characterized by its state and behavior
  19. enacapsulation - Correct answer combining an object's data and methods into a class
  20. overloaded methods - Correct answer two or more methods in the same class that have the same name but different parameter lists
  21. inheritance - Correct answer defines a relationship between objects that share characteristics
  22. Rules for Subclasses - Correct answer -can add new instance variables
  23. -can add new methods
  24. -can override inherited methods
  25. -cannot redefine public methods as private
  26. -cannot override static methods of a superclass
  27. -define its own constructor
  1. -cannot directly access the private members of its superclass, must use acessor and mutator methods
  2. polymorphism - Correct answer the mechanism of selecting the appropriate method for a particular object in a clas heirarchy
  3. double - Correct answer A Java reserved word that represents a primitive floating point numeric type, stored using 64 bits in IEEE 754 format. Ex. 4.
  4. int - Correct answer A java reserved word for a primitive dat type, stored using 32 bits in two's complement format. Ex. 5
  5. boolean - Correct answer A Java reserved word for a logical primitive data type that can only take the values "True" or "False".
  6. string literal - Correct answer A primitive value used in a program.
  7. Ex. ("Hello")
  8. casting - Correct answer Most general form of converting in Java
  9. Ex. dollars = (int) money
  10. narrowing conversion - Correct answer A conversion from one data type into another in which information could be lost. Converting from "double" to an "int" is a narrowing conversion
  11. strongly typed - Correct answer Assigned values must correspond to the declared type.
  12. // - Correct answer Comments a line of code in Java that will not be run with the program. More of a side note.
  13. //Hello
  14. % - Correct answer Remainder operator.
  15. Operator Precedence Hierarchy - Correct answer The order in which operators are evaluated in an expression.
  16. primitive data - Correct answer Characters with letters, or numbers: int, double, booleans
  17. constant - Correct answer A value that cannot be changed. Used to make more code more readable and to make changes easier. Defined in Java using the "final" modifier.
  18. final - Correct answer A Java reserved word that is a modifier for classes, methods, and variables. A "final" variable is a constant
  1. Has state and behavior.
  2. Method - Correct answer A named group of declarations and programming statements that can be invoked (executed) when needed. A Method is part of a class. Alters an objects State.
  3. Object Reference Variable - Correct answer A variable that holds a reference to an object, but not the object itself. Stores the address where the object is stored i memory. Variable name for the Object.
  4. Abstraction - Correct answer The idea of hiding details. If the right details are hidden at the right times, abstraction can make programming simpler and better focused.
  5. Object-Oriented Programming - Correct answer An approach to software design and implementation that is centered around Objects and Classes.
  6. Concatenation - Correct answer Puts together two or more Character strings.
  7. To link together in a series.
  8. Ex. ("Hello " + Name )
  9. Encapsulation - Correct answer The characteristic of an object that limits access to its variables and methods. All interaction with the object occurs through an interface. Each object protects and manages its own information.
  10. Inheritance - Correct answer The ability to create a new class from an existing one. Inherited variables and methods of the original (parent) class are available in the new (child) class as if they were declared locally.
  11. Polymorphism - Correct answer A technique for involving different methods at different times. all Java method invocations can be polymathic because the invoke the method of an object type, not the reference type. (Multiple children of the same parents)
  12. Attribute - Correct answer A Characteristic. Properties of an object.
  13. State - Correct answer The state of being an object, defined by the values of its dat. Fields
  14. Behavior - Correct answer What an object does, defined by its methods. Methods or Functions
  15. Constructor - Correct answer A method that is run when an object is instantiated, usually to initialize that object's instance variables.
  1. instantiate - Correct answer The process of creating a new object and assigning it a value.
  2. members - Correct answer Properties and methods of a class.
  3. invoke - Correct answer evoke or call forth, with or as if by magic
  4. Parameter - Correct answer A value passed through a method when invoke.