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. Reducing details to focus on the core concepts
instance of UIView or one of its subclasses
to give it someone else - or another object
Abstraction
CGRect bounds - GCPoint center - CGRect frame
2. NSString *s = @'Hello - World'; is an example of...
Controller Objects[Managers]
CGRect bounds
copy - retain
declaration and initialization of a variable
3. A callback is a function that is supplied in advance of an event - and...
is called every time the event occurs
data source - view controller and delegate
message
data source - delegate and view controller
4. Whenever a UINavigationController is about to swap views - it sends out two messages
methods for generating an instance
ready-made instances - instantiation from scratch - and nib based instantiation
class
viewWillDissapear: and viewWillAppear:
5. Also if you send the NSObject the _ message - you own that object.
a mechanism to enable specific callbacks
retain
safety - subclassability and makes code look more consistent with C structs
pointers
6. Why properties?
a single-array can contain objects of different types
safety - subclassability and makes code look more consistent with C structs
will be ignored
retain
7. A method in a _ is required unless its preceded by an @optional.
ready-made instances - instantiation from scratch - and nib based instantiation
size and position
pointers
protocol
8. 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....
designated initializer
define it in the implemenation file
Generic object wrapper for other non-object data types
you must import the header file of that class
9. 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
10. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
pointer - class
nil
references to objects
11. Class methods typically either create
alloc - singleton - informational utility method?
Object wrapper around primitive types like int - float - double - BOOl
new instances of the class or retrieve some global property of the class.
class methods - initializers
12. If the view has no subviews - create it programmatically; if it has subviews
you always return the newly initialized object(return self)
create a XIB file
its dataSource
subview(s)
13. After accessors have been defined in the header file...
you must import the header file of that class
initializer
they need to be defined in the implementation file
class methods - initializers
14. Any individual object belonging to any class...
is an instance of that class
selector[message]
collection of collections - NSArray of an NSArray
protocol
15. id is a...
ready-made instances - instantiation from scratch - and nib based instantiation
Model Objects[Factory Worker]
pointer to an object
subview(s)
16. Core foundation classes are prefixed with _ and suffixed with _
unordered collection of objects - objects must be unique
CF - Ref
size and position
receiver
17. When do you take ownership?...
first responder
Is a placeholder object
Anytime you call a method with new - alloc or copy. You own and must release that object.
reuse your cells
18. 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 _.
ready-made instances - instantiation from scratch - and nib based instantiation
subview(s)
to give it someone else - or another object
size and position
19. NSValue - class...
variable scope - if defined within a block
CGRect bounds
Generic object wrapper for other non-object data types
has one root view controller
20. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
safety - subclassability and makes code look more consistent with C structs
delegates and dataSources
You take ownership for an object you want to keep a pointer to
@interface ClassName:SuperClassName
21. A command directed to an object is called an...
Encapsulation of functionality
setPossessionName
message
causes the program to immediately exit from the loop it is executing - whether its for - while or do
22. Class methods do not operate on an _ or have any access to _ variables....
is an instance of that class
is called every time the event occurs
Hash table - Look up objects using a key to get a value.
instance
23. Object Oriented based analogue to a function is called a...
method
subview(s)
receiver
you always return the newly initialized object(return self)
24. The class is responsible for what instance variables the instance has - but not the _ of those variables.
initializer
values
nil
they need to be defined in the implementation file
25. @property declares - and _ implements the setter and getter...
data
@synthesize
implementation
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
26. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
parentViewController
attributes - behavior
an object's property
27. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
in the dealloc - or when a Controller's view is 'unloaded'
for inheritance - adopting the superclasses implementation
declaration and initialization of a variable
28. A view is a subclass of _
instance of UIView or one of its subclasses
UIView
to get and set variables
references to objects
29. 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...
its dataSource
Instantiation from scratch
setPossessionName
Is a placeholder object
30. class methods...
group of global functions already assigned to this class
calling code that does the instantiation for you
receiver
class's
31. A function in the objective c library that simply displays or logs it's argument
NSLog routine
Ready-Made Instance
unordered collection of objects - objects must be unique
protocol
32. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
CF - Ref
Instantiation from scratch
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Ready-Made Instance
33. A UITableView usually needs three different pieces...
the message release to all its entries
data source - delegate and view controller
setPossessionName
class's
34. 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
35. Use of class methods - there are three...
superclass's
CGFloat
message
alloc - singleton - informational utility method?
36. Primitives and C Structures...
type - name and value
instance variables
pointers
cannot be added to an array
37. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
class methods - initializers
in the dealloc - or when a Controller's view is 'unloaded'
the instance variables
38. Name of the method to be executed
is an instance of that class
the message release to all its entries
selector[message]
%d
39. 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
view controller
draw images
NSLog routine
40. When making a tableView always...
CGRect bounds
C Functionn
collection of collections - NSArray of an NSArray
reuse your cells
41. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
header files declare
first responder
initializer
42. Each class picks one _ as it's designated initializer....
view
lowercase - uppercase
initializer
dealloc - is called on the object & the object's memory is returned to the heap
43. initWithFrame: the designated initializer for UIView gives the view
pointer to an object
size and position
view controller
callbacks
44. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
45. To load a Xib file manually - you use _
NSBundle
NSCoder
attributes - behavior
receiver
46. NSString objects are usually sent _ rather than _...
copy - retain
Encapsulation of functionality
designated initializer
receiver[message]
47. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
UIViewController
Is a placeholder object
CGRect bounds - GCPoint center - CGRect frame
48. Files Owner...
Is a placeholder object
dealloc - is called on the object & the object's memory is returned to the heap
class
ordered collection of objects - immutable
49. When an object is added to a NSMutableArray - that object is sent the message to retain;...
the array becomes an owner of that object and has a pointer to it.
receiving and handling events that are associated with it
group of global functions already assigned to this class
instance variable of an object is valid
50. 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
a mechanism to enable specific callbacks
lowercase - uppercase
@synthesize
first responder