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. Reference Counting...
variable scope - if defined within a block
object
You take ownership for an object you want to keep a pointer to
C Functionn
2. [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
callbacks
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
viewWillDissapear: and viewWillAppear:
3. When an object is removed from an NSMutableArray - that object is sent the message release;...
the array relinquishes ownership of that object and no longer has a pointer to it
arguments[message]
receiver - selector - arguments
class
4. 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 _.
attributes - behavior
only the class and subclasses can access
subview(s)
in the dealloc - or when a Controller's view is 'unloaded'
5. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
object
CF - Ref
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
CGRect
6. How do I implement my drawRect?
size and position
receiver[message]
for inheritance - adopting the superclasses implementation
Core Graphics Framework
7. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
creating an initializer
CGRect bounds
array[class - NSMutableArray]
8. Property List...
storage
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
nil
collection of collections - NSArray of an NSArray
9. NSValue - class...
receiver - selector - arguments
reuse your cells
Continue
Generic object wrapper for other non-object data types
10. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
arguments[message]
Generic object wrapper for other non-object data types
to give it someone else - or another object
receiver
11. Asking a class or object to execute a method
UIViewController
collection of collections - NSArray of an NSArray
message
dealloc - is called on the object & the object's memory is returned to the heap
12. A view is an...
reuse your cells
instance of UIView or one of its subclasses
super - self
will be ignored
13. The root view controller typically creates the next view controller - and the next _ creates the one after that
view controller
superclass's
the instance variables
Continue
14. Ready-made instances...
instance variables
draw images
Data Encapsulation
calling code that does the instantiation for you
15. Any individual object belonging to any class...
view
is an instance of that class
causes the program to immediately exit from the loop it is executing - whether its for - while or do
to give it someone else - or another object
16. 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
CGRect bounds - GCPoint center - CGRect frame
Instantiation from scratch
Maintenance of state
@synthesize
17. Class methods do not operate on an _ or have any access to _ variables....
variable scope - if defined within a block
instance
is called every time the event occurs
UIViewController
18. Reducing details to focus on the core concepts
first responder
you always return the newly initialized object(return self)
Continue
Abstraction
19. When a view controller presents a modal view controller - the _ of the modal view controller is set to be the parent of the presenting controller
designated initializer
parentViewController
header files declare
variable scope - if defined within a block
20. In a class method you cannot access...
reuse your cells
setPossessionName
the array relinquishes ownership of that object and no longer has a pointer to it
the instance variables
21. Number one use of protocols in iOS...
delegates and dataSources
arguments[message]
Abstraction
new instances of the class or retrieve some global property of the class.
22. 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.
only the class and subclasses can access
upper
size and position
instance variables
23. To load a Xib file manually - you use _
new instances of the class or retrieve some global property of the class.
message
NSBundle
view controller's initialization method
24. initWithFrame: the designated initializer for UIView gives the view
size and position
methods
Encapsulation of functionality
pointers
25. Prefixing a character string with an @ symbol [specific - NSString class]...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
values
calling code that does the instantiation for you
creates an instance of NSString that holds the character string
26. When do you take ownership?...
define it in the implemenation file
%d
ordered collection of objects - immutable
Anytime you call a method with new - alloc or copy. You own and must release that object.
27. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
calling code that does the instantiation for you
header files declare
self
do so in viewDidLoad
28. if you implemented both the setter and getter - the @synthesize method...
pointer - class
upper
do so in viewDidLoad
will be ignored
29. Categories are an Objective C way to add _ to an existing class without subclassing
receiver[message]
methods
alloc - singleton - informational utility method?
%d
30. UIViewController has several methods that get called at certain times...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
instance variables
%d
Encapsulation of functionality
31. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
the message release to all its entries
NSCoder
values
superclass's
32. UITableViewController is a subclass of...
You take ownership for an object you want to keep a pointer to
header files declare
parentViewController
UIViewController
33. Defining variables - three parts...
subview(s)
type - name and value
alloc - singleton - informational utility method?
attributes - behavior
34. Object Oriented based analogue to a function is called a...
its dataSource
method
values
Model Objects[Factory Worker]
35. Only exists within the statement block there defined - outside of the block is fine
receiver - selector - arguments
receiver[message]
implementation
variable scope - if defined within a block
36. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
designated initializer
Data Encapsulation
super - self
self
37. Center and frame are used to _ your view
UIView
UIViewController
setPossessionName
position
38. NSSet...
group of global functions already assigned to this class
causes the program to immediately exit from the loop it is executing - whether its for - while or do
unordered collection of objects - objects must be unique
an object's property
39. 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
40. A collection object - an ordered list of objects that can be accesed by an index
%d
arguments[message]
implementation
array[class - NSMutableArray]
41. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
group of global functions already assigned to this class
ready-made instances - instantiation from scratch - and nib based instantiation
NSLog routine
C Functionn
42. super - is used...
for inheritance - adopting the superclasses implementation
to get and set variables
safety - subclassability and makes code look more consistent with C structs
Controller Objects[Managers]
43. Each _ has a 'designated' initializer method....
upper
class
NSBundle
position
44. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
upper
UIViewController
designated initializer
data
45. When an NSMutableArray is deallocated - it sends...
Continue
the message release to all its entries
ordered collection of objects - immutable
only the class and subclasses can access
46. When making a tableView always...
reuse your cells
create a XIB file
accessors - individually we call them 'getters' and 'setters'
CGRect bounds
47. A responder is responsible for...
method
only the innermost loop in which the break is executed is terminated
first responder
receiving and handling events that are associated with it
48. Instance Variables by default are called @protected meaning...
UIViewController
storage
a mechanism to enable specific callbacks
only the class and subclasses can access
49. 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
50. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
a mechanism to enable specific callbacks
the array becomes an owner of that object and has a pointer to it.
super - self
has one root view controller