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. super - is used...
only the class and subclasses can access
NSLog routine
selector[message]
for inheritance - adopting the superclasses implementation
2. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
pointers
upper
view controller
self
3. A _ handles touch events.
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
view
reuse your cells
class's
4. Just a floating point number - but we always use it for graphics.
(id)initWithFrame:(CGRect)aRect;
Anytime you call a method with new - alloc or copy. You own and must release that object.
CGFloat
only the class and subclasses can access
5. @property - is using methods...
collection of collections - NSArray of an NSArray
to get and set variables
its dataSource
instance of UIView or one of its subclasses
6. To load a Xib file manually - you use _
pointer - class
header files declare
NSBundle
protocol
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. When an NSMutableArray is deallocated - it sends...
UIView
the message release to all its entries
view
they need to be defined in the implementation file
9. Hold data and know nothing about the user interface
'getters' and 'setters'
Generic object wrapper for other non-object data types
Model Objects[Factory Worker]
class
10. Typically the designated initializer has parameters for the most important and frequently used _ of an object
Continue
methods
%d
instance variables
11. Instance Variables by default are called @protected meaning...
only the class and subclasses can access
subview(s)
implementation
a single-array can contain objects of different types
12. NSString objects are usually sent _ rather than _...
the instance variables
copy - retain
methods for generating an instance
the array relinquishes ownership of that object and no longer has a pointer to it
13. How do I implement my drawRect?
first responder
Core Graphics Framework
pointer - class
references to objects
14. A UITableView usually needs three different pieces...
ready-made instances - instantiation from scratch - and nib based instantiation
data source - delegate and view controller
only the class and subclasses can access
position
15. Files Owner...
Is a placeholder object
'getters' and 'setters'
receiver - selector - arguments
CGRect
16. Delegation is an object oriented approach to
create a XIB file
Ready-Made Instance
callbacks
you must import the header file of that class
17. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
receiver
view
Core Graphics Framework
attributes - behavior
18. 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)
will be ignored
Object wrapper around primitive types like int - float - double - BOOl
Encapsulation of functionality
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
to give it someone else - or another object
for inheritance - adopting the superclasses implementation
parentViewController
draw images
20. In Objective C arrays can hold only...
CGRect bounds
viewWillDissapear: and viewWillAppear:
references to objects
will be ignored
21. Name of the method to be executed
message
selector[message]
retain
collection of collections - NSArray of an NSArray
22. NSString *s = @'Hello - World'; is an example of...
alloc - singleton - informational utility method?
has one root view controller
declaration and initialization of a variable
creates an instance of NSString that holds the character string
23. UIImageView is used to...
a mechanism to enable specific callbacks
receiver[message]
message
draw images
24. Origin of a view's coordinate system is _ left
upper
superclass's
Core Graphics Framework
viewWillDissapear: and viewWillAppear:
25. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
lowercase - uppercase
is an instance of that class
Ready-Made Instance
class's
26. Ready-made instances...
calling code that does the instantiation for you
Encapsulation of functionality
NSLog routine
to give it someone else - or another object
27. A view is an...
instance of UIView or one of its subclasses
UIViewController
@interface ClassName:SuperClassName
Core Graphics Framework
28. 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.
instance variables
initializer
Hash table - Look up objects using a key to get a value.
@interface ClassName:SuperClassName
29. NSDate - class...
Used to find the time right now or to store past or future time/dates
data source - view controller and delegate
creating an initializer
designated initializer
30. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
an object's property
class methods - initializers
view controller
designated initializer
31. Also - because arrays only hold a pointer to an object...
'getters' and 'setters'
UIView
new instances of the class or retrieve some global property of the class.
a single-array can contain objects of different types
32. Reference Counting...
setPossessionName
You take ownership for an object you want to keep a pointer to
NSCoder
first responder
33. A view represents a _ area
rectangular
Instantiation from scratch
Controller Objects[Managers]
header files declare
34. When an object is added to a NSMutableArray - that object is sent the message to retain;...
alloc - singleton - informational utility method?
Is a placeholder object
the array becomes an owner of that object and has a pointer to it.
designated initializer
35. NSDictionary...
Hash table - Look up objects using a key to get a value.
pointer to an object
instance variables
instance variables
36. A command directed to an object is called an...
You take ownership for an object you want to keep a pointer to
position
lowercase - uppercase
message
37. A callback is a function that is supplied in advance of an event - and...
arguments[message]
is called every time the event occurs
Is a placeholder object
values
38. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
rectangular
NSCoder
size and position
is an instance of that class
39. Use of class methods - there are three...
creates an instance of NSString that holds the character string
new instances of the class or retrieve some global property of the class.
alloc - singleton - informational utility method?
CGFloat
40. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
to get and set variables
data source - delegate and view controller
CGFloat
41. Any individual object belonging to any class...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
is an instance of that class
CF - Ref
CGRect bounds - GCPoint center - CGRect frame
42. In general - in Objective-C - a reference to an instance is a _ - and the name of the data type of what's at the far end of that pointer is the name of the instances's _.
array[class - NSMutableArray]
class
pointer - class
methods
43. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
message
upper
attributes - behavior
44. 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
retain
Maintenance of state
'getters' and 'setters'
references to objects
45. Also if you send the NSObject the _ message - you own that object.
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
to get and set variables
type - name and value
retain
46. 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
47. Center and frame are used to _ your view
position
safety - subclassability and makes code look more consistent with C structs
define it in the implemenation file
receiver[message]
48. When do you take ownership?...
Maintenance of state
Anytime you call a method with new - alloc or copy. You own and must release that object.
unordered collection of objects - objects must be unique
@interface ClassName:SuperClassName
49. After accessors have been defined in the header file...
delegates and dataSources
instance variables
viewWillDissapear: and viewWillAppear:
they need to be defined in the implementation file
50. 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.
type - name and value
implementation
CGRect bounds - GCPoint center - CGRect frame
initializer