Vocabulary Flashcards
Keep track of the programming terms I am learning. (42 cards)
Integrated Development Environment (IDE)
A program used to write, right n and debug code. Converts code to machine code.
Console
Text interface that outputs text from the program.
Modulus (%)
Remainder of divisional operation. I.e
Take 10 / by 3 and give remainder (not answer). Used to determine if an integer is even or odd.
Strings
Text or Anything enclosed by quotation marks.
Concatenation
Adding strings together
Variable
Something that can store information, can be referenced and manipulated. Components of a Variable include: type, name, a piece of information
Primitive type variables
Integers, booleans, floats, doubles, strings and chars.
Integer
Variable that can store a whole number in range from -2147484648 to 2147483648. (NO decimals).
Boolean
True or False
Floats
32 bits of information.
Can store number w/ decimal places.
Doubles (Double Variables)
64 bits of information. Can store decimals.
String Variables
Strings of letters. Useful for displaying text and storing input information.
Char Variables
Stands for character. Holds just one character. Useful to read a button press or one character without a string.
Naming Variables
Variable names must be one continuous string. Folks use camelCase.
Conditional Statements
Change the path of the code based on certain conditions. Include: If statement.
Else-if statement
Follows an if statement, only be evaluated when the if statement is false.
Else statement
Follows an Else If Statement or If Statement. Carries out instructions when previous statements are false. Good idea to always have one for funky results.
Switch Statement
An easy way to collapse if statements.
Array
A list of Integers, strings, other arrays. All info in an array is related.
When created, must either fill the array with data or set the specific size of the array. Cannot be increased or decreased.
Must decide type of Array when initializing. Examples: String Array, Integer Array etc. Data type must be the same within the Array.
Index
Data’s place in an array. Start counting place at zero.
2D Array
An array made up of arrays. Has two numbers for it’s index.
Loops
A statement that is used to run certain instructions repeatedly. Useful for repeated sections of code
For Loop
Carry out certain instructions numerous times. 3 basic parts: integer value, conditional statement the integer must reach to exit the loop, operation to modify the integer value after the instructions inside loop are completed. MUST set up exit condition or infinite loop will crash prog.
For Each Loop
Used for iterating through entire arrays or lists.