Skip to main content

Cheatsheet

Programming Cheatsheet​

To add...

Verbal Definitions​

Chapter 2​

TermDefinition
Data TypesA particular kind of data item, as defined by the values it can take, the programming language used, or the operations that can be performed on it.
Primitive Data TypeA basic type is a data type provided by a programming language as a basic building block
Non-primitive data types Data TypesNon-primitive types are created by the programmer and is not defined by Java by default
CharacterThe data type that is used to store a single letter
IntegerThe data type that is used to store whole numbers
FloatThe data type that is used to store decimal numbers
DoubleThe data type that is used to store large numbers
StringThe data type that is used to store a string of characters or words
TypecastingThe conversion of a data type into another data type

Chapter 3​

TermDefinition
User inputA feature in programming languages that allows users to provide the inputs for a program.
PromptA symbol or some text from a program indicating that it is waiting for an input from the user.
TestThe process of finding how well your code works by providing different inputs to the program.
ReusabilityQuality of the code that allows it to be reused.
Logical ErrorA logical error is a bug in a program that causes it to produce wrong or unintended result. However, the program compiles and runs without showing an error on the console.
Example: divided by ZERO, when an integer is divided by ZERO then it will compile successfully but at runtime, it will throw an error.
Syntax errorSyntax errors are mistakes that a developer/user can do while writing the code.
Example: System.out.Print(“Good morning!”) - In this line of code, alphabet p in print() has been capitalized, resulting in a syntax error.
shapeSize()shapeSize() method is used to fix the size of the turtle.
shape()shape() method is used change the shape of the turtle.
Builtin functionPre-defined blocks of code that perform a specific function. Example - input(), print(), min(), max().