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. The root view controller typically creates the next view controller - and the next _ creates the one after that
arguments[message]
values
view controller
implementation
2. 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
3. UIImageView is used to...
create a XIB file
callbacks
Model Objects[Factory Worker]
draw images
4. Object Oriented based analogue to a function is called a...
Object wrapper around primitive types like int - float - double - BOOl
a mechanism to enable specific callbacks
NSLog routine
method
5. Values to be supplied as the parameters to the method
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
arguments[message]
rectangular
pointer to an object
6. Center and frame are used to _ your view
data source - delegate and view controller
define it in the implemenation file
position
variable scope - if defined within a block
7. Class methods do not operate on an _ or have any access to _ variables....
object
NSCoder
instance
Ready-Made Instance
8. @property - is using methods...
Ready-Made Instance
to get and set variables
receiver
superclass's
9. NSArray - class...
instance
Core Graphics Framework
ordered collection of objects - immutable
they need to be defined in the implementation file
10. Each object does its own job - and presents to the rest of the world - to other objects - and indeed in a sense to the programmer - an opaque wall whose only entrances are the methods to which it promises to respond and the actions it promises to per
Abstraction
create a XIB file
header files declare
Encapsulation of functionality
11. Reference Counting...
a mechanism to enable specific callbacks
the message release to all its entries
You take ownership for an object you want to keep a pointer to
Maintenance of state
12. Ready-made instances...
calling code that does the instantiation for you
selector[message]
method
upper
13. A view is a subclass of _
UIView
you must import the header file of that class
selector[message]
Continue
14. 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.
Data Encapsulation
class methods - initializers
alloc - singleton - informational utility method?
position
15. Asking a class or object to execute a method
message
lowercase - uppercase
to get and set variables
view
16. We can use dot notation to reference...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
17. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
a single-array can contain objects of different types
the instance variables
receiver
dealloc - is called on the object & the object's memory is returned to the heap
18. 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
19. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
Ready-Made Instance
Model Objects[Factory Worker]
protocol
20. To load a Xib file manually - you use _
create a XIB file
NSBundle
rectangular
first responder
21. A method in a _ is required unless its preceded by an @optional.
alloc - singleton - informational utility method?
@synthesize
they need to be defined in the implementation file
protocol
22. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
to get and set variables
CGRect
instance variable of an object is valid
the message release to all its entries
23. A command directed to an object is called an...
'getters' and 'setters'
CGFloat
message
receiver - selector - arguments
24. A callback is a function that is supplied in advance of an event - and...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
is called every time the event occurs
group of global functions already assigned to this class
protocol
25. Files Owner...
lowercase - uppercase
Maintenance of state
declaration and initialization of a variable
Is a placeholder object
26. A pointer to the object being asked to execute a method
the array becomes an owner of that object and has a pointer to it.
C Functionn
receiver[message]
object
27. 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.
(id)initWithFrame:(CGRect)aRect;
creating an initializer
in the dealloc - or when a Controller's view is 'unloaded'
has one root view controller
28. Also if you send the NSObject the _ message - you own that object.
retain
dealloc - is called on the object & the object's memory is returned to the heap
delegates and dataSources
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
29. A UITableViewController can fill all three roles of...
data source - view controller and delegate
CF - Ref
the array relinquishes ownership of that object and no longer has a pointer to it
Controller Objects[Managers]
30. Reducing details to focus on the core concepts
only the class and subclasses can access
receiver - selector - arguments
Abstraction
CF - Ref
31. Any individual object belonging to any class...
CGRect
Abstraction
alloc - singleton - informational utility method?
is an instance of that class
32. An instance is a device for maintaining state. It's a box for _ of data.
%d
CGRect
has one root view controller
storage
33. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
they need to be defined in the implementation file
superclass's
Instantiation from scratch
Generic object wrapper for other non-object data types
34. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
only the innermost loop in which the break is executed is terminated
@interface ClassName:SuperClassName
object
the instance variables
35. The class is responsible for what instance variables the instance has - but not the _ of those variables.
values
view
initializer
arguments[message]
36. NSString objects are usually sent _ rather than _...
copy - retain
in the dealloc - or when a Controller's view is 'unloaded'
(id)initWithFrame:(CGRect)aRect;
C Functionn
37. When an object is removed from an NSMutableArray - that object is sent the message release;...
references to objects
data source - delegate and view controller
selector[message]
the array relinquishes ownership of that object and no longer has a pointer to it
38. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
the array becomes an owner of that object and has a pointer to it.
attributes - behavior
self
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
39. After accessors have been defined in the header file...
they need to be defined in the implementation file
new instances of the class or retrieve some global property of the class.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Data Encapsulation
40. A view exists within a hierarchy. The window (an instance of UIWindow) is a view and the root of the hierarchy. It has _ (that appear on the window). Those views can also have _.
subview(s)
unordered collection of objects - objects must be unique
Generic object wrapper for other non-object data types
instance of UIView or one of its subclasses
41. 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
42. A view represents a _ area
rectangular
NSBundle
has one root view controller
alloc - singleton - informational utility method?
43. Typically the designated initializer has parameters for the most important and frequently used _ of an object
setPossessionName
class's
size and position
instance variables
44. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
designated initializer
'getters' and 'setters'
values
the instance variables
45. Categories are an Objective C way to add _ to an existing class without subclassing
methods
Model Objects[Factory Worker]
(id)initWithFrame:(CGRect)aRect;
instance variables
46. NSValue - class...
callbacks
rectangular
values
Generic object wrapper for other non-object data types
47. NSNumber - class...
copy - retain
cannot be added to an array
Object wrapper around primitive types like int - float - double - BOOl
selector[message]
48. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
attributes - behavior
reuse your cells
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
49. Whenever a UINavigationController is about to swap views - it sends out two messages
view controller
size and position
viewWillDissapear: and viewWillAppear:
setPossessionName
50. UIView - designated initializer...
(id)initWithFrame:(CGRect)aRect;
Model Objects[Factory Worker]
initializer
Continue