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. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
message
will be ignored
calling code that does the instantiation for you
2. Center and frame are used to _ your view
you must import the header file of that class
copy - retain
instance of UIView or one of its subclasses
position
3. Delegation is an object oriented approach to
callbacks
lowercase - uppercase
class's
instance
4. A UITableViewController can fill all three roles of...
the array becomes an owner of that object and has a pointer to it.
values
data source - view controller and delegate
subview(s)
5. if you implemented both the setter and getter - the @synthesize method...
will be ignored
size and position
Continue
Instantiation from scratch
6. In any application with UINavigationController - the navigation controller...
Object wrapper around primitive types like int - float - double - BOOl
object
Used to find the time right now or to store past or future time/dates
has one root view controller
7. An instance is a device for maintaining state. It's a box for _ of data.
type - name and value
rectangular
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
storage
8. Never access a view controller's view in that...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
9. 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....
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
define it in the implemenation file
data
instance variables
10. A command directed to an object is called an...
dealloc - is called on the object & the object's memory is returned to the heap
message
header files declare
wait until the loop finishes processing the event - at the end release it
11. Designated initializer makes sure that every...
message
CF - Ref
instance variable of an object is valid
CGFloat
12. In a class method you cannot access...
CF - Ref
pointer to an object
CGRect
the instance variables
13. Reducing details to focus on the core concepts
Is a placeholder object
superclass's
Abstraction
Maintenance of state
14. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
initializers
CGRect
cannot be added to an array
lowercase - uppercase
15. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
new instances of the class or retrieve some global property of the class.
group of global functions already assigned to this class
CGRect
they need to be defined in the implementation file
16. Proceed through the loop - jump back to the top and check again
references to objects
Continue
instance variables
do so in viewDidLoad
17. You use _ to implement the view
they need to be defined in the implementation file
instance variables
Ready-Made Instance
CGRect bounds
18. A method in a _ is required unless its preceded by an @optional.
nil
view
protocol
callbacks
19. A _ handles touch events.
instance of UIView or one of its subclasses
receiver - selector - arguments
Generic object wrapper for other non-object data types
view
20. 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.
super - self
creating an initializer
to get and set variables
%d
21. UIViewController has several methods that get called at certain times...
instance of UIView or one of its subclasses
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
selector[message]
delegates and dataSources
22. id is a...
Model Objects[Factory Worker]
data source - view controller and delegate
pointer to an object
a mechanism to enable specific callbacks
23. Primitives and C Structures...
UIViewController
the instance variables
cannot be added to an array
view
24. Why properties?
values
initializer
class
safety - subclassability and makes code look more consistent with C structs
25. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
instance variables
Controller Objects[Managers]
designated initializer
only the innermost loop in which the break is executed is terminated
26. A function in the objective c library that simply displays or logs it's argument
array[class - NSMutableArray]
data source - delegate and view controller
NSLog routine
reuse your cells
27. Each class picks one _ as it's designated initializer....
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
wait until the loop finishes processing the event - at the end release it
initializer
the message release to all its entries
28. UIView - designated initializer...
for inheritance - adopting the superclasses implementation
instance variable of an object is valid
implementation
(id)initWithFrame:(CGRect)aRect;
29. For view controllers that are closely related - like a table view controller and its detail view controller - you can simply give them _ that point to each other.
UIViewController
receiver
instance variables
ordered collection of objects - immutable
30. initWithFrame: the designated initializer for UIView gives the view
the instance variables
size and position
values
you must import the header file of that class
31. Name of the method to be executed
upper
arguments[message]
instance variables
selector[message]
32. When an object is removed from an NSMutableArray - that object is sent the message release;...
position
parentViewController
the array relinquishes ownership of that object and no longer has a pointer to it
retain
33. Whenever a UINavigationController is about to swap views - it sends out two messages
do so in viewDidLoad
viewWillDissapear: and viewWillAppear:
UIViewController
CGRect bounds
34. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
type - name and value
CF - Ref
receiver - selector - arguments
35. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
selector[message]
viewWillDissapear: and viewWillAppear:
object
message
36. A delegate is a pointer to an object with a set of methods the delegate-holder knows how to call. In other words - it's _ from a later created object
draw images
a mechanism to enable specific callbacks
ready-made instances - instantiation from scratch - and nib based instantiation
pointer to an object
37. super - is used...
Abstraction
a mechanism to enable specific callbacks
do so in viewDidLoad
for inheritance - adopting the superclasses implementation
38. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
data source - view controller and delegate
CGRect bounds
Is a placeholder object
self
39. class methods...
the array becomes an owner of that object and has a pointer to it.
group of global functions already assigned to this class
Instantiation from scratch
has one root view controller
40. A view represents a _ area
dealloc - is called on the object & the object's memory is returned to the heap
header files declare
rectangular
parentViewController
41. NSNumber - class...
Is a placeholder object
Encapsulation of functionality
Object wrapper around primitive types like int - float - double - BOOl
NSCoder
42. A responder is responsible for...
retain
receiving and handling events that are associated with it
ready-made instances - instantiation from scratch - and nib based instantiation
new instances of the class or retrieve some global property of the class.
43. To load a Xib file manually - you use _
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Ready-Made Instance
is called every time the event occurs
NSBundle
44. Typically the designated initializer has parameters for the most important and frequently used _ of an object
copy - retain
instance variables
ordered collection of objects - immutable
self
45. Hold data and know nothing about the user interface
Continue
Model Objects[Factory Worker]
pointer to an object
class
46. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
in the dealloc - or when a Controller's view is 'unloaded'
class methods - initializers
draw images
instance variable of an object is valid
47. Also if you send the NSObject the _ message - you own that object.
values
Functions
collection of collections - NSArray of an NSArray
retain
48. When making a tableView always...
a single-array can contain objects of different types
instance variable of an object is valid
array[class - NSMutableArray]
reuse your cells
49. In general - in Objective-C - a reference to an instance is a _ - and the name of the data type of what's at the far end of that pointer is the name of the instances's _.
self
receiving and handling events that are associated with it
pointer - class
message
50. Views have three properties related to their location and size: @property _ _;
size and position
CGRect bounds - GCPoint center - CGRect frame
NSLog routine
to give it someone else - or another object