Objective-C jeopardy Flashcards

0
Q

This attribute restricts access to a property’s setter by creating a getter only.

A

What is readonly?

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

This is a concise alternative to accessor methods.

A

What is dot syntax?

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

These are the connections that Interface Builder can make.

A

What is an outlet and an action?

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

Using this typedef lets IB know about a UI property.

A

What is IBOutlet?

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

This NSMutableArray method adds an object at a specific index in an array.

A

What is insertObject:atIndex:

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

This is the base class for control objects such as buttons and sliders that convey user intent to the application.

A

What is UIControl?

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

Use this method to check if an array has elements.

A

What is the count method?

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

This object interprets the intent of a user and instructs some other object to carry out the request.

A

What is a control?

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

Use this method to avoid modulo bias when generating random numbers.

A

What is arc4random_uniform()?

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

This is the best main method to get a random number.

A

What is arc4random()?

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

These are the layers of iOS, from most fundamental to highest abstraction.

A

What are the Core OS, Core Services, Media, and Cocoa Touch layers?

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

This class is the receiver of an action message.

A

What is a target?

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

This mechanism is called upon by a control to provide the translation between a raw event (user intent) and its corresponding instruction.

A

What is target-action?

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

This mechanism provides a way for a custom object to communicate application-specific behavior to some off-the-shelf object.

A

What is delegation?

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

This mechanism makes it possible for one object to alter the behavior of another object without needing to inherit from it.

A

What is delegation?

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

In delegation, these objects are either generic or custom.

A

What is a delegating (generic) & delegate (custom) object?

17
Q

These methods mark significant events handled or anticipated by the delegating object.

A

What are protocol methods?