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. Whenever a UINavigationController is about to swap views - it sends out two messages
subview(s)
Abstraction
viewWillDissapear: and viewWillAppear:
Data Encapsulation
2. The root view controller typically creates the next view controller - and the next _ creates the one after that
receiving and handling events that are associated with it
dealloc - is called on the object & the object's memory is returned to the heap
view controller
position
3. Property List...
has one root view controller
NSBundle
collection of collections - NSArray of an NSArray
for inheritance - adopting the superclasses implementation
4. Proceed through the loop - jump back to the top and check again
Continue
variable scope - if defined within a block
references to objects
Is a placeholder object
5. Categories are an Objective C way to add _ to an existing class without subclassing
is an instance of that class
methods
causes the program to immediately exit from the loop it is executing - whether its for - while or do
selector[message]
6. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
protocol
header files declare
self
superclass's
7. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
callbacks
CGRect
rectangular
object
8. class methods...
pointers
retain
implementation
group of global functions already assigned to this class
9. id is a...
Functions
pointer to an object
creating an initializer
a mechanism to enable specific callbacks
10. 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....
Is a placeholder object
Ready-Made Instance
unordered collection of objects - objects must be unique
define it in the implemenation file
11. A view is a subclass of _
NSBundle
super - self
UIView
self
12. The only reason to temporarily own an object - is...
to give it someone else - or another object
pointers
%d
You take ownership for an object you want to keep a pointer to
13. The class is responsible for what instance variables the instance has - but not the _ of those variables.
UIViewController
values
'getters' and 'setters'
nil
14. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
storage
class methods - initializers
you must import the header file of that class
Generic object wrapper for other non-object data types
15. Delegation is an object oriented approach to
creates an instance of NSString that holds the character string
callbacks
data
NSBundle
16. Each class picks one _ as it's designated initializer....
its dataSource
Model Objects[Factory Worker]
Instantiation from scratch
initializer
17. Ready-made instances...
calling code that does the instantiation for you
CGRect
values
pointer - class
18. Views have three properties related to their location and size: @property _ _;
the instance variables
CGRect bounds - GCPoint center - CGRect frame
group of global functions already assigned to this class
CF - Ref
19. Origin of a view's coordinate system is _ left
upper
object
UIView
instance of UIView or one of its subclasses
20. initWithFrame: the designated initializer for UIView gives the view
size and position
Functions
object
do so in viewDidLoad
21. If a break statement is executed from within a set of nested loops...
the message release to all its entries
class
you must import the header file of that class
only the innermost loop in which the break is executed is terminated
22. super - is used...
retain
define it in the implemenation file
they need to be defined in the implementation file
for inheritance - adopting the superclasses implementation
23. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
retain
methods for generating an instance
Ready-Made Instance
super - self
24. 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
25. Number one use of protocols in iOS...
collection of collections - NSArray of an NSArray
delegates and dataSources
Generic object wrapper for other non-object data types
selector[message]
26. Center and frame are used to _ your view
message
position
arguments[message]
super - self
27. Each _ has a 'designated' initializer method....
position
class methods - initializers
class
NSBundle
28. Why properties?
header files declare
superclass's
pointer - class
safety - subclassability and makes code look more consistent with C structs
29. [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.
data
CGFloat
CGRect bounds - GCPoint center - CGRect frame
view controller
30. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
creates an instance of NSString that holds the character string
super - self
CGFloat
you must import the header file of that class
31. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
reuse your cells
%d
initializers
CF - Ref
32. Reference Counting...
methods for generating an instance
UIViewController
superclass's
You take ownership for an object you want to keep a pointer to
33. Reducing details to focus on the core concepts
'getters' and 'setters'
Abstraction
you always return the newly initialized object(return self)
NSCoder
34. Each individual instance is a bundle of data that it maintains. Typically that data is private - which means that it's encapsulated as well; no other object knows what that data is or in what form it is kept. The only way to discover from outside wha
causes the program to immediately exit from the loop it is executing - whether its for - while or do
position
Maintenance of state
instance variable of an object is valid
35. In the last line of an init method...
declaration and initialization of a variable
method
create a XIB file
you always return the newly initialized object(return self)
36. If you have extra work you want to do on the view...
will be ignored
do so in viewDidLoad
type - name and value
the message release to all its entries
37. When an object is removed from an NSMutableArray - that object is sent the message release;...
upper
pointer to an object
the array relinquishes ownership of that object and no longer has a pointer to it
object
38. When do you take ownership?...
receiving and handling events that are associated with it
references to objects
Anytime you call a method with new - alloc or copy. You own and must release that object.
variable scope - if defined within a block
39. NSSet...
unordered collection of objects - objects must be unique
UIViewController
initializers
@synthesize
40. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
callbacks
instance variables
create a XIB file
41. Designated initializer makes sure that every...
instance variable of an object is valid
ready-made instances - instantiation from scratch - and nib based instantiation
variable scope - if defined within a block
methods for generating an instance
42. A view represents a _ area
pointer to an object
you must import the header file of that class
rectangular
Abstraction
43. 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
44. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
subview(s)
its dataSource
callbacks
@interface ClassName:SuperClassName
45. In any application with UINavigationController - the navigation controller...
Used to find the time right now or to store past or future time/dates
variable scope - if defined within a block
has one root view controller
ready-made instances - instantiation from scratch - and nib based instantiation
46. 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
47. In object oriented languages - we call methods that get and set instance variables
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
48. After accessors have been defined in the header file...
they need to be defined in the implementation file
the array relinquishes ownership of that object and no longer has a pointer to it
Data Encapsulation
copy - retain
49. Core foundation classes are prefixed with _ and suffixed with _
unordered collection of objects - objects must be unique
CF - Ref
receiver - selector - arguments
initializer
50. A callback is a function that is supplied in advance of an event - and...
designated initializer
creates an instance of NSString that holds the character string
causes the program to immediately exit from the loop it is executing - whether its for - while or do
is called every time the event occurs