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. Defining variables - three parts...
class
type - name and value
header files declare
implementation
2. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
Controller Objects[Managers]
only the innermost loop in which the break is executed is terminated
viewWillDissapear: and viewWillAppear:
draw images
3. UIViewController has several methods that get called at certain times...
storage
an object's property
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
superclass's
4. Ready-made instances...
class
they need to be defined in the implementation file
calling code that does the instantiation for you
the message release to all its entries
5. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
view
to get and set variables
CF - Ref
6. In Cocoa Touch - the table view asks another object _ what it should display...
Is a placeholder object
You take ownership for an object you want to keep a pointer to
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
its dataSource
7. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
calling code that does the instantiation for you
C Functionn
callbacks
only the innermost loop in which the break is executed is terminated
8. Whenever a UINavigationController is about to swap views - it sends out two messages
safety - subclassability and makes code look more consistent with C structs
copy - retain
viewWillDissapear: and viewWillAppear:
position
9. The designated initializer calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
10. UITableViewController is a subclass of...
'getters' and 'setters'
an object's property
UIViewController
the array relinquishes ownership of that object and no longer has a pointer to it
11. Primitives and C Structures...
only the class and subclasses can access
Encapsulation of functionality
Continue
cannot be added to an array
12. initWithFrame: the designated initializer for UIView gives the view
unordered collection of objects - objects must be unique
size and position
has one root view controller
UIView
13. 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...
ready-made instances - instantiation from scratch - and nib based instantiation
setPossessionName
header files declare
(id)initWithFrame:(CGRect)aRect;
14. If a break statement is executed from within a set of nested loops...
the array relinquishes ownership of that object and no longer has a pointer to it
in the dealloc - or when a Controller's view is 'unloaded'
header files declare
only the innermost loop in which the break is executed is terminated
15. class methods...
group of global functions already assigned to this class
NSLog routine
method
cannot be added to an array
16. 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.
data source - delegate and view controller
an object's property
the message release to all its entries
instance variables
17. 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
18. In Objective C arrays can hold only...
Maintenance of state
reuse your cells
references to objects
UIViewController
19. A method in a _ is required unless its preceded by an @optional.
protocol
data source - delegate and view controller
setPossessionName
instance of UIView or one of its subclasses
20. When making a tableView always...
you always return the newly initialized object(return self)
position
you must import the header file of that class
reuse your cells
21. After accessors have been defined in the header file...
pointer to an object
Ready-Made Instance
they need to be defined in the implementation file
new instances of the class or retrieve some global property of the class.
22. You use _ to implement the view
protocol
NSBundle
CGRect bounds
'getters' and 'setters'
23. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
the instance variables
define it in the implemenation file
the array becomes an owner of that object and has a pointer to it.
24. Execution of the break statement...
the array becomes an owner of that object and has a pointer to it.
viewWillDissapear: and viewWillAppear:
causes the program to immediately exit from the loop it is executing - whether its for - while or do
selector[message]
25. 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.
You take ownership for an object you want to keep a pointer to
alloc - singleton - informational utility method?
super - self
creating an initializer
26. The root view controller typically creates the next view controller - and the next _ creates the one after that
Abstraction
copy - retain
methods
view controller
27. Delegation is an object oriented approach to
callbacks
wait until the loop finishes processing the event - at the end release it
receiver - selector - arguments
instance variables
28. When do we need to release our outlets?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
29. A view is a subclass of _
CGRect bounds
UIView
define it in the implemenation file
accessors - individually we call them 'getters' and 'setters'
30. Hold data and know nothing about the user interface
designated initializer
Functions
initializers
Model Objects[Factory Worker]
31. When an NSMutableArray is deallocated - it sends...
data source - delegate and view controller
the array becomes an owner of that object and has a pointer to it.
the message release to all its entries
group of global functions already assigned to this class
32. A UITableView usually needs three different pieces...
alloc - singleton - informational utility method?
selector[message]
Ready-Made Instance
data source - delegate and view controller
33. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
object
viewWillDissapear: and viewWillAppear:
parentViewController
receiver
34. Class methods do not operate on an _ or have any access to _ variables....
they need to be defined in the implementation file
initializers
instance
dealloc - is called on the object & the object's memory is returned to the heap
35. [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.
callbacks
define it in the implemenation file
to give it someone else - or another object
data
36. NSArray - important methods...
its dataSource
CGFloat
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Model Objects[Factory Worker]
37. A view represents a _ area
methods
they need to be defined in the implementation file
its dataSource
rectangular
38. Any other initializer a class has calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
39. In any application with UINavigationController - the navigation controller...
has one root view controller
the instance variables
%d
protocol
40. Property List...
data source - delegate and view controller
collection of collections - NSArray of an NSArray
causes the program to immediately exit from the loop it is executing - whether its for - while or do
designated initializer
41. Views have three properties related to their location and size: @property _ _;
instance
CGRect bounds - GCPoint center - CGRect frame
unordered collection of objects - objects must be unique
class
42. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
designated initializer
Ready-Made Instance
@synthesize
UIView
43. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
object
data source - delegate and view controller
receiver[message]
44. A pointer to the object being asked to execute a method
receiver[message]
reuse your cells
Model Objects[Factory Worker]
CGRect bounds - GCPoint center - CGRect frame
45. An instance is a device for maintaining state. It's a box for _ of data.
initializer
header files declare
storage
receiver[message]
46. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
self
message
class methods - initializers
view controller's initialization method
47. Prefixing a character string with an @ symbol [specific - NSString class]...
new instances of the class or retrieve some global property of the class.
Abstraction
callbacks
creates an instance of NSString that holds the character string
48. Values to be supplied as the parameters to the method
arguments[message]
creates an instance of NSString that holds the character string
Controller Objects[Managers]
the message release to all its entries
49. Each class picks one _ as it's designated initializer....
creating an initializer
calling code that does the instantiation for you
message
initializer
50. Use of class methods - there are three...
callbacks
Ready-Made Instance
alloc - singleton - informational utility method?
you always return the newly initialized object(return self)