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. Class methods typically either create
declaration and initialization of a variable
CGRect bounds
You take ownership for an object you want to keep a pointer to
new instances of the class or retrieve some global property of the class.
2. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
creates an instance of NSString that holds the character string
NSCoder
data source - view controller and delegate
%d
3. Delegation is an object oriented approach to
callbacks
view
Core Graphics Framework
%d
4. NSString objects are usually sent _ rather than _...
copy - retain
initializers
Controller Objects[Managers]
causes the program to immediately exit from the loop it is executing - whether its for - while or do
5. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
receiver
calling code that does the instantiation for you
Core Graphics Framework
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
6. A function in the objective c library that simply displays or logs it's argument
super - self
subview(s)
Anytime you call a method with new - alloc or copy. You own and must release that object.
NSLog routine
7. In general - class methods tend to be factory methods - that is...
You take ownership for an object you want to keep a pointer to
you always return the newly initialized object(return self)
self
methods for generating an instance
8. Hold data and know nothing about the user interface
Abstraction
Data Encapsulation
reuse your cells
Model Objects[Factory Worker]
9. NSSet...
unordered collection of objects - objects must be unique
receiver - selector - arguments
the message release to all its entries
instance variables
10. Why properties?
copy - retain
CF - Ref
safety - subclassability and makes code look more consistent with C structs
in the dealloc - or when a Controller's view is 'unloaded'
11. You use _ to implement the view
Used to find the time right now or to store past or future time/dates
super - self
CGRect bounds
create a XIB file
12. In Objective C arrays can hold only...
to get and set variables
references to objects
receiver
Core Graphics Framework
13. @property - is using methods...
to get and set variables
data source - view controller and delegate
calling code that does the instantiation for you
selector[message]
14. NSValue - class...
pointers
Generic object wrapper for other non-object data types
CGRect bounds - GCPoint center - CGRect frame
the message release to all its entries
15. 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
16. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Core Graphics Framework
an object's property
Is a placeholder object
Instantiation from scratch
17. UIImageView is used to...
the array relinquishes ownership of that object and no longer has a pointer to it
Abstraction
to give it someone else - or another object
draw images
18. The root view controller typically creates the next view controller - and the next _ creates the one after that
receiver - selector - arguments
view controller
a mechanism to enable specific callbacks
in the dealloc - or when a Controller's view is 'unloaded'
19. 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.
delegates and dataSources
Data Encapsulation
declaration and initialization of a variable
object
20. Dynamic binding means that when we call a certain object's method - and there are several _ of that method - the right one is figured out at runtime.
message
NSCoder
implementation
its dataSource
21. An instance is a device for maintaining state. It's a box for _ of data.
storage
designated initializer
will be ignored
methods for generating an instance
22. Files Owner...
references to objects
Is a placeholder object
position
draw images
23. NSArray - important methods...
Generic object wrapper for other non-object data types
@synthesize
Model Objects[Factory Worker]
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
24. Use of class methods - there are three...
Core Graphics Framework
message
alloc - singleton - informational utility method?
references to objects
25. A UITableViewController can fill all three roles of...
wait until the loop finishes processing the event - at the end release it
instance
declaration and initialization of a variable
data source - view controller and delegate
26. 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
attributes - behavior
Encapsulation of functionality
safety - subclassability and makes code look more consistent with C structs
Data Encapsulation
27. class methods...
group of global functions already assigned to this class
data source - view controller and delegate
initializers
class methods - initializers
28. If the view has no subviews - create it programmatically; if it has subviews
Is a placeholder object
the array relinquishes ownership of that object and no longer has a pointer to it
create a XIB file
viewWillDissapear: and viewWillAppear:
29. NSArray - class...
UIView
ordered collection of objects - immutable
first responder
alloc - singleton - informational utility method?
30. A view is an...
reuse your cells
storage
instance of UIView or one of its subclasses
view controller's initialization method
31. When do you take ownership?...
values
object
Anytime you call a method with new - alloc or copy. You own and must release that object.
CGRect
32. Instance Variables by default are called @protected meaning...
collection of collections - NSArray of an NSArray
only the class and subclasses can access
Object wrapper around primitive types like int - float - double - BOOl
creating an initializer
33. initWithFrame: the designated initializer for UIView gives the view
the instance variables
(id)initWithFrame:(CGRect)aRect;
view controller's initialization method
size and position
34. In Cocoa Touch - the table view asks another object _ what it should display...
creating an initializer
NSCoder
group of global functions already assigned to this class
its dataSource
35. A message is always contained in square brackets - and has three parts
receiver - selector - arguments
a mechanism to enable specific callbacks
view controller's initialization method
C Functionn
36. When the message endEditing: is sent to a view - if it or any of its subviews or currently the _ - it will resign its first responder statues - and the keyboard will be dismissed.
first responder
size and position
'getters' and 'setters'
type - name and value
37. 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
Core Graphics Framework
@interface ClassName:SuperClassName
data source - delegate and view controller
38. 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
39. NSDate - class...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
retain
a mechanism to enable specific callbacks
Used to find the time right now or to store past or future time/dates
40. NSDictionary...
'getters' and 'setters'
instance
storage
Hash table - Look up objects using a key to get a value.
41. Ready-made instances...
message
only the innermost loop in which the break is executed is terminated
receiving and handling events that are associated with it
calling code that does the instantiation for you
42. 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....
define it in the implemenation file
Data Encapsulation
receiving and handling events that are associated with it
upper
43. Execution of the break statement...
lowercase - uppercase
causes the program to immediately exit from the loop it is executing - whether its for - while or do
has one root view controller
receiver[message]
44. UIViewController has several methods that get called at certain times...
data source - view controller and delegate
Abstraction
Continue
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
45. Whenever a UINavigationController is about to swap views - it sends out two messages
object
group of global functions already assigned to this class
viewWillDissapear: and viewWillAppear:
pointers
46. Property List...
you always return the newly initialized object(return self)
collection of collections - NSArray of an NSArray
unordered collection of objects - objects must be unique
CGRect bounds - GCPoint center - CGRect frame
47. A responder is responsible for...
arguments[message]
receiving and handling events that are associated with it
Core Graphics Framework
position
48. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
view
initializers
setPossessionName
retain
49. 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
50. In a class method you cannot access...
for inheritance - adopting the superclasses implementation
reuse your cells
its dataSource
the instance variables