6432296318 | == | (sometimes read: "equal equal") equality operator; used to compare two values, and returns a Boolean (true/false). Avoid confusion with the assignment operator "=", | 0 | |
6432296319 | Global Variable | A variable whose scope is "global" to the program, it can be used and updated by any part of the code. Its global scope is typically derived from the variable being declared (created) outside of any function, object, or method. | 1 | |
6432296320 | If Statement | The common programming structure that implements "conditional statements". | 2 | |
6432296321 | Local Variable | A variable with local scope is one that can only be seen, used and updated by code within the same scope. Typically this means the variable was declared (created) inside a function; includes function parameter variables. | 3 | |
6432296322 | Variable Scope | dictates what portions of the code can "see" or use a variable, typically derived from where the variable was first created. (See Global v. Local) | 4 | |
6432296323 | Callback function | a function specified as part of an event listener; it is written by the programmer but called by the system as the result of an event trigger. | 5 | |
6432296324 | Event | An action that causes something to happen. | 6 | |
6432296325 | Event driven program | a program designed to run blocks of code or functions in response to specified events (e.g. a mouse click) | 7 | |
6432296326 | Event handling | an overarching term for the coding tasks involved in making a program respond to events by triggering functions. | 8 | |
6432296327 | Event listener | a command that can be setup to trigger a function when a particular type of event occurs on a particular UI element. | 9 | |
6432296328 | UI Elements | onscreen objects, like buttons, images, text boxes, pull down menus, screens and so on. | 10 | |
6432296329 | User Interface | The visual elements of an program through which a user controls or communications the application. Often abbreviated UI. | 11 | |
6432296330 | Data Type | (ex: Number, Boolean, or String) a value's property that dictates how the computer will interpret it. For example 7+5 is interpreted differently from "7"+"5" | 12 | |
6432296331 | Expression | Any valid unit of code that resolves to a value. | 13 | |
6432296332 | Variable | A placeholder for a piece of information that can change. | 14 | |
6432296333 | Debugging | Finding and fixing problems in your algorithm or program. | 15 | |
6432296334 | setPosition(id, x, y, width, height) | Positions an element at an x,y screen coordinate, and optionally sets a new width and height for the element. | 16 | |
6432296335 | setSize(id, width, height) | Sets the width and height for the UI element. | 17 | |
6432296336 | onEvent(id, type, function(event) { ... }); | event listener for App Studio | 18 | |
6432296337 | setScreen(screenId) | Sets the screen to the given screenId. | 19 | |
6432296338 | console.log(message) | Displays a string and/or variable values in the debug console in App Lab. | 20 | |
6432296339 | write(text) | Displays a string and/or variable values to the app screen. | 21 | |
6432296340 | var x = promptNum("Enter a value"); | Declares a variable and prompts the user for its initial numeric value. | 22 | |
6432296341 | x = __; | Assigns a value to a previously declared variable. | 23 | |
6432296342 | var x = "__"; | Declares a variable and initializes it with text. | 24 | |
6432296343 | setText(id, text) | Sets the text for the specified screen element. | 25 | |
6432296344 | conditionals | statements that run under only certain conditions | 26 | |
6432296345 | if-statements | the common programming structure that implements conditionals | 27 | |
6432296346 | selection | A generic term for a type of programming statement (usually an if-statement) that uses a Boolean condition to determine, or select, whether or not to run a certain block of statements. | 28 | |
6432296347 | Boolean | a single value of either TRUE or FALSE | 29 | |
6432296348 | Boolean Expression | in programming, an expression that evaluates to True or False. | 30 | |
6432296349 | && | "and" logical operator | 31 | |
6432296350 | || | "or" logical operator | 32 | |
6432296351 | ! | "not" logical operator | 33 | |
6432301495 | /n | go print this in the next line | 34 | |
6432311669 | /b | backspace | 35 | |
6432317531 | /t | tab | 36 | |
6432422935 | Concatentate | to link together or join. Typically used when joining together text Strings in programming (e.g. "Hello, "+name) | 37 |
AP CSP Unit 5 Flashcards
Primary tabs
Need Help?
We hope your visit has been a productive one. If you're having any problems, or would like to give some feedback, we'd love to hear from you.
For general help, questions, and suggestions, try our dedicated support forums.
If you need to contact the Course-Notes.Org web experience team, please use our contact form.
Need Notes?
While we strive to provide the most comprehensive notes for as many high school textbooks as possible, there are certainly going to be some that we miss. Drop us a note and let us know which textbooks you need. Be sure to include which edition of the textbook you are using! If we see enough demand, we'll do whatever we can to get those notes up on the site for you!