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. In a class method you cannot access...
Model Objects[Factory Worker]
safety - subclassability and makes code look more consistent with C structs
the instance variables
setPossessionName
2. Use of class methods - there are three...
You take ownership for an object you want to keep a pointer to
alloc - singleton - informational utility method?
Is a placeholder object
message
3. UIImageView is used to...
draw images
attributes - behavior
instance
view
4. When do you take ownership?...
Continue
Anytime you call a method with new - alloc or copy. You own and must release that object.
C Functionn
Data Encapsulation
5. class methods...
attributes - behavior
setPossessionName
receiving and handling events that are associated with it
group of global functions already assigned to this class
6. Values to be supplied as the parameters to the method
Functions
parentViewController
has one root view controller
arguments[message]
7. What happens when the last owner calls release?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
8. A callback is a function that is supplied in advance of an event - and...
is called every time the event occurs
implementation
to give it someone else - or another object
methods for generating an instance
9. Why properties?
creating an initializer
array[class - NSMutableArray]
safety - subclassability and makes code look more consistent with C structs
class methods - initializers
10. In general - class methods tend to be factory methods - that is...
Generic object wrapper for other non-object data types
delegates and dataSources
only the class and subclasses can access
methods for generating an instance
11. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Maintenance of state
Data Encapsulation
dealloc - is called on the object & the object's memory is returned to the heap
Instantiation from scratch
12. Class methods typically either create
new instances of the class or retrieve some global property of the class.
create a XIB file
creating an initializer
the array relinquishes ownership of that object and no longer has a pointer to it
13. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
class
Model Objects[Factory Worker]
@interface ClassName:SuperClassName
ready-made instances - instantiation from scratch - and nib based instantiation
14. 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
Data Encapsulation
arguments[message]
receiver[message]
Functions
15. All objects are accessed using...
you always return the newly initialized object(return self)
group of global functions already assigned to this class
pointers
initializer
16. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
Functions
designated initializer
CGFloat
message
17. In any application with UINavigationController - the navigation controller...
callbacks
initializer
Generic object wrapper for other non-object data types
has one root view controller
18. A responder is responsible for...
collection of collections - NSArray of an NSArray
protocol
its dataSource
receiving and handling events that are associated with it
19. Reference Counting...
methods for generating an instance
the message release to all its entries
You take ownership for an object you want to keep a pointer to
in the dealloc - or when a Controller's view is 'unloaded'
20. Object Oriented based analogue to a function is called a...
super - self
method
Data Encapsulation
Object wrapper around primitive types like int - float - double - BOOl
21. Files Owner...
Is a placeholder object
type - name and value
upper
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
22. 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
23. NSDictionary...
UIViewController
view controller
Hash table - Look up objects using a key to get a value.
size and position
24. id is a...
pointer to an object
callbacks
dealloc - is called on the object & the object's memory is returned to the heap
Generic object wrapper for other non-object data types
25. NSSet...
You take ownership for an object you want to keep a pointer to
group of global functions already assigned to this class
pointer - class
unordered collection of objects - objects must be unique
26. NSArray - important methods...
declaration and initialization of a variable
instance
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Hash table - Look up objects using a key to get a value.
27. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
the array relinquishes ownership of that object and no longer has a pointer to it
viewWillDissapear: and viewWillAppear:
declaration and initialization of a variable
28. initWithFrame: the designated initializer for UIView gives the view
view controller's initialization method
methods
size and position
calling code that does the instantiation for you
29. 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
30. Classes describe two things...
attributes - behavior
ready-made instances - instantiation from scratch - and nib based instantiation
initializers
setPossessionName
31. How do I implement my drawRect?
NSLog routine
Core Graphics Framework
Maintenance of state
CF - Ref
32. NSArray - class...
You take ownership for an object you want to keep a pointer to
ordered collection of objects - immutable
CGFloat
instance variable of an object is valid
33. Primitives and C Structures...
nil
wait until the loop finishes processing the event - at the end release it
cannot be added to an array
subview(s)
34. Origin of a view's coordinate system is _ left
Controller Objects[Managers]
creating an initializer
a mechanism to enable specific callbacks
upper
35. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
parentViewController
designated initializer
super - self
header files declare
36. 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 _.
subview(s)
attributes - behavior
data source - delegate and view controller
Functions
37. Typically the designated initializer has parameters for the most important and frequently used _ of an object
calling code that does the instantiation for you
Functions
instance variables
Maintenance of state
38. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
collection of collections - NSArray of an NSArray
data source - view controller and delegate
unordered collection of objects - objects must be unique
39. A command directed to an object is called an...
protocol
message
instance
receiver
40. At the top of any implementation file...
new instances of the class or retrieve some global property of the class.
parentViewController
you must import the header file of that class
header files declare
41. In Objective C arrays can hold only...
Instantiation from scratch
has one root view controller
group of global functions already assigned to this class
references to objects
42. Asking a class or object to execute a method
draw images
message
method
selector[message]
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. In the last line of an init method...
implementation
Instantiation from scratch
you always return the newly initialized object(return self)
creates an instance of NSString that holds the character string
45. UIViewController has several methods that get called at certain times...
methods for generating an instance
receiver - selector - arguments
@synthesize
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
46. A view represents a _ area
has one root view controller
rectangular
Anytime you call a method with new - alloc or copy. You own and must release that object.
an object's property
47. A message is always contained in square brackets - and has three parts
Is a placeholder object
receiver - selector - arguments
define it in the implemenation file
copy - retain
48. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
self
Continue
creating an initializer
super - self
49. 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.
declaration and initialization of a variable
CGRect
has one root view controller
first responder
50. NSDate - class...
Used to find the time right now or to store past or future time/dates
its dataSource
storage
a single-array can contain objects of different types