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. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
define it in the implemenation file
Anytime you call a method with new - alloc or copy. You own and must release that object.
Controller Objects[Managers]
do so in viewDidLoad
2. Files Owner...
UIView
ready-made instances - instantiation from scratch - and nib based instantiation
Generic object wrapper for other non-object data types
Is a placeholder object
3. An instance is a device for maintaining state. It's a box for _ of data.
CGRect bounds - GCPoint center - CGRect frame
storage
define it in the implemenation file
type - name and value
4. Only exists within the statement block there defined - outside of the block is fine
lowercase - uppercase
method
variable scope - if defined within a block
Object wrapper around primitive types like int - float - double - BOOl
5. NSDate - class...
Used to find the time right now or to store past or future time/dates
values
instance variables
Abstraction
6. @property - is using methods...
pointer - class
for inheritance - adopting the superclasses implementation
to get and set variables
collection of collections - NSArray of an NSArray
7. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
object
class methods - initializers
instance variables
subview(s)
8. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
message
to give it someone else - or another object
view controller
super - self
9. UIImageView is used to...
draw images
setPossessionName
for inheritance - adopting the superclasses implementation
Anytime you call a method with new - alloc or copy. You own and must release that object.
10. Name of the method to be executed
do so in viewDidLoad
selector[message]
pointer to an object
draw images
11. 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
new instances of the class or retrieve some global property of the class.
initializer
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
12. The integer prefix is...
creating an initializer
values
%d
the message release to all its entries
13. NSNumber - class...
its dataSource
unordered collection of objects - objects must be unique
wait until the loop finishes processing the event - at the end release it
Object wrapper around primitive types like int - float - double - BOOl
14. 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
15. 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
16. @property declares - and _ implements the setter and getter...
size and position
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
first responder
@synthesize
17. If you aren't going to initialize an instance reference pointer at the moment you declare it by assigning a real value - it's a good idea to assign it _.
Anytime you call a method with new - alloc or copy. You own and must release that object.
nil
Model Objects[Factory Worker]
CGRect bounds
18. Each class picks one _ as it's designated initializer....
initializer
only the innermost loop in which the break is executed is terminated
NSCoder
pointers
19. How do I implement my drawRect?
class's
reuse your cells
CF - Ref
Core Graphics Framework
20. When an object is added to a NSMutableArray - that object is sent the message to retain;...
C Functionn
the array becomes an owner of that object and has a pointer to it.
position
callbacks
21. You use _ to implement the view
the instance variables
Used to find the time right now or to store past or future time/dates
CGRect bounds
array[class - NSMutableArray]
22. 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...
initializers
setPossessionName
first responder
class methods - initializers
23. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
Instantiation from scratch
self
only the class and subclasses can access
Model Objects[Factory Worker]
24. A UITableView usually needs three different pieces...
Encapsulation of functionality
initializers
Model Objects[Factory Worker]
data source - delegate and view controller
25. A block of statements identified by a name that can accept one or more arguments passed to it by value and can optionally return a value
Functions
alloc - singleton - informational utility method?
designated initializer
implementation
26. At the top of any implementation file...
message
You take ownership for an object you want to keep a pointer to
you must import the header file of that class
the instance variables
27. Hold data and know nothing about the user interface
object
@interface ClassName:SuperClassName
Model Objects[Factory Worker]
the array relinquishes ownership of that object and no longer has a pointer to it
28. Each _ has a 'designated' initializer method....
class
initializers
CF - Ref
parentViewController
29. All objects are accessed using...
calling code that does the instantiation for you
message
pointers
Used to find the time right now or to store past or future time/dates
30. 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....
will be ignored
define it in the implemenation file
class methods - initializers
'getters' and 'setters'
31. 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 _.
pointer - class
storage
subview(s)
the array becomes an owner of that object and has a pointer to it.
32. A collection object - an ordered list of objects that can be accesed by an index
to give it someone else - or another object
array[class - NSMutableArray]
methods
calling code that does the instantiation for you
33. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
Maintenance of state
setPossessionName
NSCoder
Data Encapsulation
34. 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.
new instances of the class or retrieve some global property of the class.
first responder
a mechanism to enable specific callbacks
they need to be defined in the implementation file
35. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Used to find the time right now or to store past or future time/dates
Instantiation from scratch
Abstraction
creating an initializer
36. UIViewController has several methods that get called at certain times...
CF - Ref
Object wrapper around primitive types like int - float - double - BOOl
protocol
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
37. NSSet...
Instantiation from scratch
unordered collection of objects - objects must be unique
size and position
'getters' and 'setters'
38. NSValue - class...
calling code that does the instantiation for you
Controller Objects[Managers]
Generic object wrapper for other non-object data types
@synthesize
39. Any individual object belonging to any class...
Controller Objects[Managers]
is an instance of that class
@interface ClassName:SuperClassName
Object wrapper around primitive types like int - float - double - BOOl
40. NSArray - class...
CGRect
ordered collection of objects - immutable
causes the program to immediately exit from the loop it is executing - whether its for - while or do
instance
41. Use of class methods - there are three...
will be ignored
alloc - singleton - informational utility method?
%d
instance variables
42. Categories are an Objective C way to add _ to an existing class without subclassing
for inheritance - adopting the superclasses implementation
methods
new instances of the class or retrieve some global property of the class.
instance of UIView or one of its subclasses
43. Object Oriented based analogue to a function is called a...
method
type - name and value
only the innermost loop in which the break is executed is terminated
initializers
44. A callback is a function that is supplied in advance of an event - and...
is called every time the event occurs
Data Encapsulation
storage
methods for generating an instance
45. 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
46. NSArray - important methods...
first responder
only the class and subclasses can access
Instantiation from scratch
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
47. When an NSMutableArray is deallocated - it sends...
Data Encapsulation
pointer - class
the message release to all its entries
lowercase - uppercase
48. Delegation is an object oriented approach to
Data Encapsulation
callbacks
view controller
they need to be defined in the implementation file
49. A method in a _ is required unless its preceded by an @optional.
protocol
instance variables
ready-made instances - instantiation from scratch - and nib based instantiation
message
50. To load a Xib file manually - you use _
data
NSBundle
instance variable of an object is valid
nil