iOS5 App Development Basics Flashcards

1
Q

Used to test an app without needing an actual physical device

A

iOS Simulator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Allows you to easily track multiple versions of your project

A

Snapshot feature

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

IDE for iPhone Development

A

Xcode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

API

A

Application Programming Interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Dimensions of iPhone (in points)

A

320 x 480

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Dimensions of iPad (in points)

A

1024 x 768

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

RAM for iPhone

A

512MB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Extension for an iPhone/iPad app

A

xcodeproj

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Language used to write iOS apps

A

Objective-C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Defines the functional building blocks (classes) that make iOS devices perform certain actions

A

Cocoa Touch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Collection of interface elements and data storage elements etc you can access from your applications

A

Cocoa Touch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

iOS functional building blocks

A

Classes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Development approach (design pattern) to structure iOS applications

A

Model-View-Controller

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

MVC

A

Model-View-Controller

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

IDE

A

Integrated Development Environment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

OOP

A

Object-oriented programming

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Defines what an object can do

A

class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Class that builds upon another class

A

subclass

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Class that another class inherits from

A

superclass

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Process of creating an active object from a class

A

instantiation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Calling a method is the same as…

A

…sending an object a message

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Storage location for a piece of information

A

variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Storage place for a piece of information specific to a class

A

instance variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Piece of information provided to a method when it is messaged

A

parameter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

Way to refer to an object within its own methods

A

self

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

Master class in iOS

A

NSObject

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

Objective-C is an extension (super set) of…

A

…C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

Files used to create a class

A

interface and implementation files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

Extension for interface file

A

h

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

Extension for implementation file

A

m

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

Synonym for interface file

A

header

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

Used to define a list of all methods and properties a class uses

A

interface file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

This file contains the code that makes everything ‘work’

A

implementation file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

Directive to include other interface files that an application might need to access

A

import

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

Syntax to include the fictitious user-created file: ‘myFile.h’

A

import myFile.h

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

Syntax to include UIKIT in a class

A

import

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

Delimiter for a list of protocols

A

<>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

Syntax for single-line comment

A

//blah blah blah

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

Syntax for block-comment

A

/**blah blah blah **/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

A class that implements a protocol is said to ____ to that protocol

A

conform

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
41
Q

The superclass for WelcomeViewController

A

UIViewController

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
42
Q

Symbol used for inheritance

A

:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
43
Q

Companion to the @property directive

A

@synthesize

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
44
Q

getters

A

accessors

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
45
Q

setters

A

mutators

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
46
Q

Something the simulator cannot reliably test

A

performance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
47
Q

Used to set up an outgoing connection from the implementation code to the view

A

IBOutlet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
48
Q

Term used to describe each screen of an iPhone app

A

view

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
49
Q

Framework used to write iPhone apps

A

Cocoa Touch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
50
Q

Used to receive an event in code and trigger something

A

IBAction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
51
Q

Document Apple uses to evaluate apps for the App Store

A

Human Interface Guide

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
52
Q

This type of app is typically one screen, and gives you the basics with minimal interaction

A

utility

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
53
Q

These define to which messages the datasource and delegate respond

A

protocols

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
54
Q

This type of app typically involves hierarchical data

A

productivity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
55
Q

This type of app is mostly custom controllers and graphics

A

immersive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
56
Q

Other name for an *.xib file

A

nibfile

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
57
Q

To use a new class you need to _____ it

A

instantiate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
58
Q

The ‘@’ symbol is shorthand for creating one of these

A

NSString

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
59
Q

A tool in Xcode to help fix broken code

A

debugger

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
60
Q

The HIG requires some kind of _____ element in a cell if there is more information available

A

disclosure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
61
Q

strong and nonatomic are examples of …

A

attributes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
62
Q

Attribute that informs the system that the object referred to needs to be kept around and not discarded from memory

A

strong

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
63
Q

Attribute that informs Xcode not to worry about different parts of the application using a property at the same time

A

nonatomic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
64
Q

Denotes a class method

A

+

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
65
Q

Denotes an instance method

A

-

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
66
Q

Return type indicating a method returns nothing

A

void

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
67
Q

Used to indicate any type of object

A

id

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
68
Q

Closes an interface file

A

@end

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
69
Q

Syntax for declaring a variable

A

;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
70
Q

Data type for whole numbers

A

int

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
71
Q

Data type for numbers with ‘tame’ numbers of decimal points

A

float

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
72
Q

Data type for highly precise numbers with huge numbers of decimal places

A

double

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
73
Q

Syntax for declaring a string called ‘userName’

A

NSString *userName;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
74
Q

Syntax for reserving memory and initializing an object

A

[[ alloc] init];

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
75
Q

Write a statement to declare and initialize a label object called ‘myLabel’

A

UILabel *myLabel = [[UILabel alloc] init];

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
76
Q

Write a statement to declare and initialize a label object called ‘myLabel’ to GO!

A

UILabel *myLabel = [[UILabel alloc] initWithString:@GO!];

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
77
Q

Apple’s classes often provide a special initialization method called a _____ method

A

convenience

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
78
Q

The statement that creates the variable ‘quotient’ is an example of ….

A

casting

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
79
Q

Syntax for sending an object a message with no parameters

A

[ ];

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
80
Q

Syntax for sending an object a message with one parameter (p1)

A

[ : p1];

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
81
Q

If a method name includes a colon (:) this indicates a required _________

A

parameter

82
Q

Indicates a lack of any value at all

A

nil

83
Q

Tests to see whether two values are equal

A

==

84
Q

Tests to see whether two values are not equal

A

!=

85
Q

Implements a logical AND condition

A

&&

86
Q

Implements a logical OR condition

A

||

87
Q

Name of the ‘|’ symbol

A

pipe

88
Q

Negation symbol

A

!

89
Q

Two-way selection logic block

A

if(){

90
Q

Alternative selection mechanism when many conditions exist

A

switch

91
Q

Fixed iteration repetition control structure syntax

A

for(;;){

92
Q

Shortcut for writing: count = count + 1;

A

count++;

93
Q

Shortcut for writing: x = x - 1;

A

x

94
Q

Shortcut for writing: y = y * 5;

A

y *= 5;

95
Q

Precondition repetition structure syntax

A

while(){

96
Q

Postcondition repetition structure syntax

A

do{

97
Q

Prior to ARC, you used these terms alot

A

retain, release, dealloc, autorelease

98
Q

Another name for format specification

A

token

99
Q

Method used to print information in an output panel

A

NSLog

100
Q

Declare and initialize a string that says: Hello World whose identifier if ‘phrase’ . Use the shortest command possible.

A

NSString *phrase = @Hello World;

101
Q

Symbol often denoting a ‘pointer’

A

*

102
Q

NS stands for…

A

NeXSTEP

103
Q

What’s the difference between Cocoa and Cocoa Touch?

A

Cocoa is the development framework used for most native Mac OS X applications; Cocoa Touch is customized for a touch interface

104
Q

4 Top down technology layers making up iOS

A

Cocoa Touch, Media, Core Services, Core OS

105
Q

The first method called when a user taps an application icon

A

main()

106
Q

True or false: Beginning with iOS4, applications no longer terminate when the user presses the Home button

A

true

107
Q

Every iOS application implements a subclass of _________

A

UIApplication

108
Q

The ________ class provided a container for the management and display of views

A

UIWindow

109
Q

Class of strings that can be changed

A

NSMutableString

110
Q

______ enable applications to store multiple pieces of information in a single object

A

Collections

111
Q

An example of a common collection data type

A

NSArray

112
Q

Always used to end the list of objects when initializing an array

A

nil

113
Q

Class that creates an array capable of being changed after it is create

A

NSMutableArray

114
Q

Class of collection data type which stores information as object/key pairs

A

NSDictionary

115
Q

Class used to work with dates as objects

A

NSDate

116
Q

Class that allows URL management

A

NSURL

117
Q

Single line text field

A

UITextField

118
Q

Multiline text entry block

A

UITextView

119
Q

Resembles a slot machine display

A

UIPicker

120
Q

Opens the Xcode Quick Help Assistant

A

Option-click a symbol

121
Q

The object currently in control and interacting with the user

A

First Responder

122
Q

The name of the panel to the left of the Interface Builder Editor panel

A

Document Outline Area or Outline View

123
Q

The Round Rect Button is found in this library

A

Object Library

124
Q

What do the Autosizing settings of the Size Inspector do?

A

Determine how controls resize/reposition themselves when a device changes orientation

125
Q

You have two labels in Interface Builder. One is selected (You clicked on it). How can you tell the distance between it and the other label?

A

Hold down the Option key and point to the other label. The distance will be shown

126
Q

The Inspector you would use to tweak the way interface objects appear

A

Attributes Inspector

127
Q

The Inspector you would use to control your layout in Interface Builder

A

Size Inspector

128
Q

IB

A

Interface Builder

129
Q

The Inspector you would access to gain access to various accessibility attributes

A

Identity Inspector

130
Q

Word used to indicate that a user can’t interact with a given element

A

static

131
Q

Another name for a ‘button bar’

A

segmented control

132
Q

An integrated web browser component

A

web view

133
Q

A skeleton (holding place) or framework of code that will be completed in the future; provided initially so code will compile (but it may not function)

A

stub

134
Q

The Inspector you will need if you want to connect a custom class to an object in Interface Builder

A

Identity Inspector

135
Q

Apps written to assist users with special disabilities

A

accessible apps

136
Q

In the MVC design pattern for iOS apps, this aspect provides the underlying data and methods that offer information to the rest of the application

A

model

137
Q

In the MVC design pattern for iOS apps, this aspect consists of the various onscreen ‘widgets’ a user can interact with

A

view

138
Q

In the MVC design pattern for iOS apps, this aspect is responsible for receiving user input and acting accordingly, and serves as a ‘bridge’ between the other two components. It is the backbone of the app.

A

controller

139
Q

The goal of the MVC design pattern

A

Isolate the functional components of an app

140
Q

An _______ is used to enable your code to talk to objects within views

A

IBOutlet

141
Q

True or false: Although it is possible to declare an instance variable and then define a corresponding property, you may also use @property alone to implicitly declare a matching instance variable

A

true

142
Q

Creates ‘getters’ and ‘setters’

A

@synthesize directive

143
Q

An _______ is used to ‘advertise’ a method in your code that should be called when a certain event takes place

A

IBAction

144
Q

Declaring a method in an interface file, before it is actually implemented is called _______ the method

A

prototyping

145
Q

What event do you use to detect a button tap?

A

Touch Up Inside

146
Q

Which Apple project template creates a simple view/view controller application

A

Single View Application

147
Q

What is the relationship between storyboards, scenes, views, and view controllers?

A

A scene is where you edit a view and assign a controller to it. Storyboards are the files that contain all the scenes you will use in a project.

148
Q

SDK

A

Software Development Kit

149
Q

Extension for MainStoryboard

A

storyboard

150
Q

Purpose of the Auto-enable Return Key attribute for text fields

A

Disables the Return key on the keyboard unless the user has entered at least a single character of input into the field

151
Q

Purpose of Secure attribute for text fields

A

Treats the field as a password, hiding each character as it is typed

152
Q

What are data detectors?

A

Attribute settings for some onscreen controls (like text areas) that analyze content and provide helpful links based on what they find. For example, phone numbers can be touched to dial the phone; web addresses can launch Safari if tapped, etc

153
Q

A common button type that indicates additional information is available

A

detail disclosure

154
Q

Recommended image type for button graphics

A

png

155
Q

How do you show a storyboard file as source code?

A

Right-click on it in the Navigator panel and choose Open as… and select Source Code

156
Q

What computer language is the storyboard written in?

A

XML

157
Q

Key sequence to open the Project Navigator (left panel)

A

Command+1

158
Q

For a text field, what does the Clear Button look like?

A

Gray circle with a white X in it, positioned to the right of the text field box

159
Q

How do you get rid of an onscreen keyboard?

A

Send the ‘resignFirstResponder’ message to the object that currently controls the keyboard (such as a text field)

160
Q

XML

A

eXtensible Markup Language

161
Q

Used to display image file resources and show simple animations

A

image view

162
Q

Class used for creating image views

A

UIImageView

163
Q

Under what circumstances would you need an outlet for a button if it’s just needed to trigger an action?

A

To provide a convenient way of setting the button’s title in the code

164
Q

Key sequence to open the Attributes Inspector

A

Option+Command+4

165
Q

Property affecting an element’s transparency

A

alpha

166
Q

A fully opaque image has an _______ property value of ______

A

alpha … 1

167
Q

A fully transparent image has an _____ property value of _____

A

alpha … 0

168
Q

If you have an image file called ‘myImage.png’ and you make a hi-res version for the retina display, what should be the name of the new file?

A

myImage@2x.png

169
Q

Scaling factor to make an image suitable for retina display

A

2

170
Q

File name suffix indicating an image is suitable for retina display

A

@2x

171
Q

This element should ‘always’ accompany a slider to indicate its purpose

A

label

172
Q

In a stepper control, when this attribute option is checked, the stepper’s value is automatically set to the minimum value when the maximum value is exceeded (or vice versa).

A

wrap

173
Q

Boolean for ‘true’ in Objective-C

A

YES

174
Q

Boolean for ‘false’ in Objective-C

A

NO

175
Q

Expression to create a random number in [0,20];

A

rand( )%21

176
Q

Modulus (remainder) operator

A

%

177
Q

Formatting placeholder for strings

A

%@

178
Q

Formatting placeholder for integers

A

%d

179
Q

Formatting placeholder for a floating point value with one digit on the left of the decimal and two digits on the right

A

%1.2f

180
Q

What property needs to be set before a scroll view (UIScrollView) will scroll?

A

contentSize

181
Q

What type of object does a web view expect as a parameter when loading a remote URL?

A

NSURLRequest

182
Q

Define a collection of methods to perform a task

A

protocols

183
Q

A class that manages the user’s interaction with the iDevice

A

view controller

184
Q

The visual layout that a user sees on the screen

A

view

185
Q

A unique combination of view controller and view

A

scene

186
Q

A transition between scenes, frequently with a visual transition effect applied

A

segue

187
Q

A view that is displayed on top of an original view when user interactions are required

A

modal views

188
Q

This file contains the scene, segue and relationship definitions for your project

A

storyboard

189
Q

!;

A

label.text=@Hello World!;

190
Q

Character used to show an element as a literal string

A

@

191
Q

Crash statement likely when an NSString is assigned a value with an incorrect format

A

Program received signal: EXC_BAD_ACCESS

192
Q

Key sequence to save an Xcode file

A

Command+S

193
Q

Key sequence to run an app in Xcode

A

Command+R

194
Q

Name of the drop-down menu in Xcode that lets you select the device used with the iOS Simulator

A

Scheme

195
Q

A file folder in the navigator panel is called a ________

A

Group

196
Q

Key sequence to hide/show Navigator View

A

Command+0

197
Q

Key sequence to hide/show Utilities View

A

Option+Command+ 0

198
Q

Key sequence to hide/show the Assistant Editor

A

Option+Command+Return

199
Q

Key sequence on a Mac to select between open application

A

Command + Tab

200
Q

Key sequence to open the Standard Editor

A

Command+Return

201
Q

Connections between Objects in the Interface Builder and the header file are formed by _____-_______ from the object to the proper place in the header file

A

control-dragging