Objective-C Flashcards
What MAC program is used to create iPhone & iPad apps?
XCode
How is Objective C different from C?
Objective-C adds support for Object Oriented programming to C.
What is a function?
A list of instructions for the processor to execute.
What is a function?
A list of instructions
What is a program?
A collection of functions
What does the Compiler do?
The Compiler translates functions into machine code.
What is a Variable?
A place where one piece of data can be stored for later use.
What is contained in a Variable?
A name, a type (such as a number), and sometimes a value.
Why declare a type for a variable?
- To let the compiler check your work for you and alert you to problems; and
- To tell the compiler how much memory to set aside.
short, int, long
These 3 Types are whole numbers with no decimal point.
float, double
These are Types for floating point numbers (numbers with decimal places).
char
A one byte Type usually a character such as the letter “a”.
What are pointers?
A pointer holds a memory address. It is declared using an *. It does not hold the value. It holds the address to where the value is stored.
struct
A struct is short for structure. It is a Type made of other Types. Example if you wanted to use a GeoLocation Type you would use 2 Float Types that contained a Latitude and a Longitude.
What is a Boolean variable?
A variable that can be true or false. It is expressed as BOOL in Obj-C.