Mobile Computing midterm
Native Functionality
"Native" simply means it comes with the device itself. The camera on your phone, text messaging, gps sensors, accelerometers, etc
Object
"__________" refers to a particular instance of a class where the ___________ can be a combination of variables, functions, and data structures.
Dictionary
A collection of key, value pairs. No index
List
A collection of thing, have indexes
Float
A floating point (irrational) number. 1.73.
Semantics/Semantic Error
A language is a set of valid sentences. What makes a sentence valid? You can break validity down into two things: syntax and semantics. The term syntax refers to grammatical structure whereas the term semantics refers to the meaning of the vocabulary symbols arranged with that structure.
Use cases
A list of actions that we can expect our user to encounter and what want to do for each action.
Infinite Loop
A loop that never satisfies an exit condition. It runs forever. Bad.
Variable
A named slot in memory. Allows us to store and retrieve data without knowing the memory address. Much like how you can go to google.com without knowing the ip address.
Parameter/Argument
A parameter is a variable in a method definition. When a method is called, the arguments are the data you pass into the method's parameters.
List Indexes vs Elements
An index in the numerical position of an element in a list. An element is the given data at that position. Given a list of: "apples", "pears", "bananas", the element "pears" is at index 2.
Sprite
An object in the form of an image/drawing that a user can interact with.
Property
Attributes that are associated with something. My truck is black. The "color" _______________ of my truck is black
Persistent Data
Data that persists beyond the state of the program. Basically, it doesn't get erased when we exit the program.
Snake case
Naming convention where each word is connected by an underscore. this_is_a_variable
Camel case
Naming convention where the first letter of each word is capitalized. thisIsAVariable
Syntax/Syntax Error
Order in which code was organized. The grammar of the language.
Scope
Scope refers to the visibility of variables. In other words, which parts of your program can see or use it.
Loop (General)
Sequence of instructions that is continuously repeated until a certain condition is met (or never met)
Expression
Something which evaluates to a value. For example: 2 + 3 will always evaluate to 5. It is an expression.
Pseudocode
The logic of the code written like a spoken language
Pixel
The smallest unit of a digital image or graphic that can be displayed and represented on a digital display device. They are combined to create an image.
For Loop
Use it when you are looping over a certain range of numbers. From 1-100 for example.
For Each Loop
Use it when you are looping over a collection of items. Such as all the elements in the a list.
Boolean
True or False
While Loop
Use it when you are not sure how long something while take, such as a exiting a game when a player's health reaches zero.
Associativity
When an expression has two operators with the same precedence, the expression is evaluated according to its ______________.
Precedence Order
When two operators share an operand the operator with the higher precedence goes first. For example, 1 + 2 * 3 is treated as 1 + (2 * 3), whereas 1 * 2 + 3 is treated as (1 * 2) + 3 since multiplication has a higher precedence than addition
Class
a class is an extensible program-code-template for creating objects, providing initial values for state (member variables) and implementations of behavior (member functions or methods)
String
a collection of text characters "hello world"
State
a computer program stores data in variables, which represent storage locations in the computer's memory. The contents of these memory locations, at any given point in the program's execution, is called the program's ________.
Char
a single character "h"
Global Variables
can be in multiple scopes. Ex: Global Variable
Local Variables
can only be used in a certain scope. Ex: parameters
Operator
constructs which behave generally like functions, but which differ syntactically or semantically from usual functions. Common simple examples include arithmetic (addition with +), comparison (with >), and logical operations (such as AND or &&). More involved examples include assignment (usually = or :=), field access in a record or object (usually .), and the scope resolution operator (often ::). Languages usually define a set of built-in operators, and in some cases allow user-defined operators.
Integer
number without decimal, whole number, - infinity to +infinity
Statement
syntactic unit of an imperative programming language that expresses some action to be carried out. Basically A line of code which does something. For example: "set label1.text to 'hello word!'"
Object Oriented Programming
Focus on inheritance and abstraction.
Getter/Setter
Functions that are used to get or set the properties of an object.
Mock Ups
Graphical representation of a user interface.
Procedure
In computer programming, a subroutine is a sequence of program instructions that perform a specific task, packaged as a unit. ... In different programming languages, a subroutine may be called a procedure, a function, a routine, a method, or a subprogram.
Event/Event Handler
In computer programming, an __________ ___________ is a callback subroutine that handles inputs received in a program (called a listener in Java and JavaScript[2]). Each ________ is a piece of application-level information from the underlying framework, typically the GUI toolkit. GUI __________ include key presses, mouse movement, action selections, and timers expiring. On a lower level, events can represent availability of new data for reading a file or network stream. _________ handlers are a central concept in _________-driven programming.
Append
In general, to append is to join or add on to the end of something.
Concatenation
Joins two or more strings together.
Nested Loop
Loops with loops!
APIE
Abstraction Polymorphism Inheritance Encapsulation
Memory
Storage space