SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
iOS 5 App Development Objective C
Start Test
Study First
Subjects
:
it-skills
,
apple
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. initWithFrame: the designated initializer for UIView gives the view
size and position
new instances of the class or retrieve some global property of the class.
implementation
Generic object wrapper for other non-object data types
2. Reducing details to focus on the core concepts
you always return the newly initialized object(return self)
You take ownership for an object you want to keep a pointer to
variable scope - if defined within a block
Abstraction
3. Defining variables - three parts...
retain
NSBundle
Encapsulation of functionality
type - name and value
4. A view represents a _ area
instance variables
view controller's initialization method
super - self
rectangular
5. At the top of any implementation file...
you must import the header file of that class
lowercase - uppercase
is an instance of that class
Controller Objects[Managers]
6. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
only the innermost loop in which the break is executed is terminated
upper
references to objects
7. In Objective C - the name of a setter method is set plus the name of the instance variable it is changing - for example PossessionName would be...
setPossessionName
protocol
selector[message]
class
8. Number one use of protocols in iOS...
delegates and dataSources
data
Hash table - Look up objects using a key to get a value.
self
9. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
data
initializers
dealloc - is called on the object & the object's memory is returned to the heap
Continue
10. In Cocoa Touch - the table view asks another object _ what it should display...
receiver[message]
declaration and initialization of a variable
wait until the loop finishes processing the event - at the end release it
its dataSource
11. NSNumber - class...
Continue
Object wrapper around primitive types like int - float - double - BOOl
rectangular
create a XIB file
12. In Objective C arrays can hold only...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
references to objects
Functions
message
13. NSDate - class...
Used to find the time right now or to store past or future time/dates
data source - view controller and delegate
accessors - individually we call them 'getters' and 'setters'
wait until the loop finishes processing the event - at the end release it
14. if you implemented both the setter and getter - the @synthesize method...
Model Objects[Factory Worker]
CGFloat
its dataSource
will be ignored
15. When the message endEditing: is sent to a view - if it or any of its subviews or currently the _ - it will resign its first responder statues - and the keyboard will be dismissed.
first responder
Model Objects[Factory Worker]
Abstraction
calling code that does the instantiation for you
16. Proceed through the loop - jump back to the top and check again
Continue
the instance variables
create a XIB file
NSCoder
17. [Instance Variables] The code it gets from its class and in a sense is shared with all other instances of that class - but the _ belong to it alone.
only the class and subclasses can access
group of global functions already assigned to this class
data
CGRect bounds
18. To load a Xib file manually - you use _
NSBundle
create a XIB file
message
array[class - NSMutableArray]
19. All objects are accessed using...
Controller Objects[Managers]
methods for generating an instance
pointers
data
20. Center and frame are used to _ your view
has one root view controller
position
delegates and dataSources
super - self
21. A block of statements identified by a name that can accept one or more arguments passed to it by value and can optionally return a value
retain
You take ownership for an object you want to keep a pointer to
Functions
they need to be defined in the implementation file
22. A callback is a function that is supplied in advance of an event - and...
references to objects
is called every time the event occurs
creates an instance of NSString that holds the character string
position
23. The integer prefix is...
object
@synthesize
receiving and handling events that are associated with it
%d
24. Instance Variables by default are called @protected meaning...
references to objects
Ready-Made Instance
Functions
only the class and subclasses can access
25. NSString objects are usually sent _ rather than _...
safety - subclassability and makes code look more consistent with C structs
copy - retain
Controller Objects[Managers]
define it in the implemenation file
26. In a class method you cannot access...
the instance variables
for inheritance - adopting the superclasses implementation
protocol
Abstraction
27. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
view
nil
CGRect
lowercase - uppercase
28. Whenever a UINavigationController is about to swap views - it sends out two messages
pointer to an object
Used to find the time right now or to store past or future time/dates
CGFloat
viewWillDissapear: and viewWillAppear:
29. How do I implement my drawRect?
methods
Core Graphics Framework
to give it someone else - or another object
Instantiation from scratch
30. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
CGRect bounds
nil
Ready-Made Instance
@interface ClassName:SuperClassName
31. UITableViewController is a subclass of...
UIViewController
instance variables
CGRect bounds - GCPoint center - CGRect frame
size and position
32. Each _ has a 'designated' initializer method....
class
class's
ordered collection of objects - immutable
copy - retain
33. Ready-made instances...
only the innermost loop in which the break is executed is terminated
rectangular
calling code that does the instantiation for you
'getters' and 'setters'
34. When an NSMutableArray is deallocated - it sends...
instance variables
Controller Objects[Managers]
the message release to all its entries
do so in viewDidLoad
35. When an object is added to a NSMutableArray - that object is sent the message to retain;...
only the innermost loop in which the break is executed is terminated
the array becomes an owner of that object and has a pointer to it.
callbacks
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
36. A responder is responsible for...
receiving and handling events that are associated with it
Ready-Made Instance
self
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
37. UIImageView is used to...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
draw images
viewWillDissapear: and viewWillAppear:
calling code that does the instantiation for you
38. A UITableViewController can fill all three roles of...
UIViewController
data source - view controller and delegate
Hash table - Look up objects using a key to get a value.
NSBundle
39. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
first responder
creates an instance of NSString that holds the character string
Instantiation from scratch
Controller Objects[Managers]
40. When overriding a method - all you need to is _ - you do not need to declare it in the header file because it has already been declared by the superclass....
define it in the implemenation file
CF - Ref
reuse your cells
methods
41. It's class is sent the message alloc - which creates an instance of that class and returns a pointer to it - and then that instance is sent the message init - which gives its instance variables initial values.
view
initializer
creating an initializer
Used to find the time right now or to store past or future time/dates
42. Asking a class or object to execute a method
pointers
draw images
NSCoder
message
43. An instance is a device for maintaining state. It's a box for _ of data.
Controller Objects[Managers]
accessors - individually we call them 'getters' and 'setters'
ready-made instances - instantiation from scratch - and nib based instantiation
storage
44. The notion that the data for an object is stored in it's instance variables and is accessed only by the objects methods. This maintains the integrity of the data.
accessors - individually we call them 'getters' and 'setters'
you must import the header file of that class
Data Encapsulation
method
45. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
dealloc - is called on the object & the object's memory is returned to the heap
nil
designated initializer
methods
46. @property - is using methods...
to get and set variables
an object's property
you must import the header file of that class
size and position
47. Typically the designated initializer has parameters for the most important and frequently used _ of an object
will be ignored
instance variables
parentViewController
creates an instance of NSString that holds the character string
48. NSSet...
do so in viewDidLoad
unordered collection of objects - objects must be unique
retain
implementation
49. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
only the class and subclasses can access
Instantiation from scratch
values
create a XIB file
50. Just a floating point number - but we always use it for graphics.
instance variable of an object is valid
initializer
pointer - class
CGFloat