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. What does autorelease mean?
CGRect
view controller
draw images
wait until the loop finishes processing the event - at the end release it
2. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
@synthesize
Controller Objects[Managers]
class's
3. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
C Functionn
NSCoder
CGRect bounds - GCPoint center - CGRect frame
Object wrapper around primitive types like int - float - double - BOOl
4. A view represents a _ area
selector[message]
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
receiving and handling events that are associated with it
rectangular
5. 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
calling code that does the instantiation for you
the instance variables
selector[message]
6. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
You take ownership for an object you want to keep a pointer to
you must import the header file of that class
methods
Ready-Made Instance
7. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
super - self
header files declare
a mechanism to enable specific callbacks
CGRect
8. [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.
ordered collection of objects - immutable
for inheritance - adopting the superclasses implementation
Generic object wrapper for other non-object data types
data
9. Center and frame are used to _ your view
the message release to all its entries
view
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
position
10. @property - is using methods...
selector[message]
references to objects
creating an initializer
to get and set variables
11. Categories are an Objective C way to add _ to an existing class without subclassing
accessors - individually we call them 'getters' and 'setters'
methods
@interface ClassName:SuperClassName
method
12. If the view has no subviews - create it programmatically; if it has subviews
parentViewController
receiver
only the class and subclasses can access
create a XIB file
13. 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 _.
Data Encapsulation
creates an instance of NSString that holds the character string
subview(s)
Used to find the time right now or to store past or future time/dates
14. In Objective C arrays can hold only...
you always return the newly initialized object(return self)
references to objects
variable scope - if defined within a block
NSLog routine
15. The designated initializer calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
16. When an object is added to a NSMutableArray - that object is sent the message to retain;...
creating an initializer
Continue
safety - subclassability and makes code look more consistent with C structs
the array becomes an owner of that object and has a pointer to it.
17. Number one use of protocols in iOS...
storage
delegates and dataSources
Functions
a single-array can contain objects of different types
18. 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 _.
NSBundle
pointer - class
the message release to all its entries
You take ownership for an object you want to keep a pointer to
19. UIImageView is used to...
class methods - initializers
object
in the dealloc - or when a Controller's view is 'unloaded'
draw images
20. In general - class methods tend to be factory methods - that is...
methods for generating an instance
subview(s)
a single-array can contain objects of different types
self
21. Also - because arrays only hold a pointer to an object...
copy - retain
%d
a single-array can contain objects of different types
Generic object wrapper for other non-object data types
22. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
upper
calling code that does the instantiation for you
C Functionn
new instances of the class or retrieve some global property of the class.
23. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
safety - subclassability and makes code look more consistent with C structs
super - self
selector[message]
pointer - class
24. A UITableViewController can fill all three roles of...
ordered collection of objects - immutable
size and position
data source - view controller and delegate
references to objects
25. All objects are accessed using...
pointers
You take ownership for an object you want to keep a pointer to
view
view controller's initialization method
26. Three ways instances are created...
pointers
dealloc - is called on the object & the object's memory is returned to the heap
view controller's initialization method
ready-made instances - instantiation from scratch - and nib based instantiation
27. Delegation is an object oriented approach to
Instantiation from scratch
parentViewController
callbacks
copy - retain
28. In the last line of an init method...
only the innermost loop in which the break is executed is terminated
data
you always return the newly initialized object(return self)
do so in viewDidLoad
29. When do you take ownership?...
has one root view controller
creates an instance of NSString that holds the character string
Anytime you call a method with new - alloc or copy. You own and must release that object.
self
30. NSNumber - class...
creating an initializer
Encapsulation of functionality
Object wrapper around primitive types like int - float - double - BOOl
ordered collection of objects - immutable
31. A function in the objective c library that simply displays or logs it's argument
method
NSLog routine
CGRect
designated initializer
32. When making a tableView always...
Encapsulation of functionality
causes the program to immediately exit from the loop it is executing - whether its for - while or do
ordered collection of objects - immutable
reuse your cells
33. Primitives and C Structures...
cannot be added to an array
class's
UIViewController
storage
34. You use _ to implement the view
UIViewController
parentViewController
CGRect bounds
define it in the implemenation file
35. 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
array[class - NSMutableArray]
storage
CGRect bounds - GCPoint center - CGRect frame
36. Views have three properties related to their location and size: @property _ _;
Anytime you call a method with new - alloc or copy. You own and must release that object.
superclass's
CGRect bounds - GCPoint center - CGRect frame
initializer
37. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
C Functionn
instance
data source - view controller and delegate
initializers
38. Whenever a UINavigationController is about to swap views - it sends out two messages
causes the program to immediately exit from the loop it is executing - whether its for - while or do
viewWillDissapear: and viewWillAppear:
receiver[message]
Abstraction
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. NSArray - class...
pointer to an object
attributes - behavior
initializers
ordered collection of objects - immutable
41. An instance is a device for maintaining state. It's a box for _ of data.
header files declare
arguments[message]
values
storage
42. NSDictionary...
receiver
Hash table - Look up objects using a key to get a value.
calling code that does the instantiation for you
Encapsulation of functionality
43. How do I implement my drawRect?
view controller
reuse your cells
NSBundle
Core Graphics Framework
44. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
pointer - class
%d
will be ignored
45. In a class method you cannot access...
the instance variables
CGRect
data source - delegate and view controller
Instantiation from scratch
46. NSSet...
reuse your cells
implementation
viewWillDissapear: and viewWillAppear:
unordered collection of objects - objects must be unique
47. Any other initializer a class has calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
48. class methods...
CGRect bounds - GCPoint center - CGRect frame
class methods - initializers
group of global functions already assigned to this class
arguments[message]
49. Defining variables - three parts...
first responder
superclass's
data
type - name and value
50. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
variable scope - if defined within a block
C Functionn
self
pointer - class