Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

AP Computer Science Exam Terminology, Exams of Computer Science

A list of important terms and definitions related to the AP Computer Science Exam. It covers topics such as Java reserved words, primitive data types, casting, operator precedence hierarchy, and more. useful for students preparing for the AP Computer Science Exam or for anyone looking to improve their understanding of computer science terminology.

Typology: Exams

2023/2024

Available from 01/13/2024

eloy-hermann
eloy-hermann 🇬🇧

1

(1)

2.7K documents

Partial preview of the text

Download AP Computer Science Exam Terminology and more Exams Computer Science in PDF only on Docsity! AP Computer Science EXAM LATEST UPDATED 2024/2025.. o 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.23 o int - Correct answer A java reserved word for a primitive dat type, stored using 32 bits in two's complement format. Ex. 5 o boolean - Correct answer A Java reserved word for a logical primitive data type that can only take the values "True" or "False". o string literal - Correct answer A primitive value used in a program. o Ex. ("Hello") o casting - Correct answer Most general form of converting in Java o Ex. dollars = (int) money o 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 o strongly typed - Correct answer Assigned values must correspond to the declared type. o // - Correct answer Comments a line of code in Java that will not be run with the program. More of a side note. o //Hello o % - Correct answer Remainder operator. o Operator Precedence Hierarchy - Correct answer The order in which operators are evaluated in an expression. o primitive data - Correct answer Characters with letters, or numbers: int, double, booleans o 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. o final - Correct answer A Java reserved word that is a modifier for classes, methods, and variables. A "final" variable is a constant o void - Correct answer A Java reserved word that indicates that no value is returned. o main - Correct answer Method that appears within a class, it invokes other methods. o System.out.println() - Correct answer Displays text for the user: o Ex. o System.out.println("Hello") o Hello o public - Correct answer A Java reserved word for a visibility modifier. A public class or interface can be used anywhere. A public method or variable is inherited by all subclasses and is accessible anywhere. o private - Correct answer A Java reserved word for a visibility modifier. Private methods and variables are NOT inherited by subclasses and can only be accessed in the class in which they have been declared. o static - Correct answer A Java reserved word that describes methods and variables. A static method is also called a class method and can be referred without an instance of the class. A static variable is also called a class variable and is common to all instances of a class; Data and methods can be used without instantiation of their own class. o Assignment Statement - Correct answer Uses the equal sign to give the object property on the left of the equal sign the value on the right of the equal sign. o Variable - Correct answer An identifier in a program that represents a memory location in which a data value is stored. o Escape Sequence - Correct answer In Java characters beginning with the backslash character (\), used to indicate a special situation when printing values. For example, the escape sequence \t means that a horizontal tab should be printed; Special way to represent characters in a String. o class - Correct answer 1) A Java reserver word used to define a class o 2) The blueprint of an object - the model that defines the variables and methods an object will contain when instantiated. o object - Correct answer 1) The basic software part in an Object-Oriented program.