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. An instance is a device for maintaining state. It's a box for _ of data.
pointer to an object
the array relinquishes ownership of that object and no longer has a pointer to it
storage
arguments[message]
2. Categories are an Objective C way to add _ to an existing class without subclassing
You take ownership for an object you want to keep a pointer to
instance of UIView or one of its subclasses
has one root view controller
methods
3. 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...
Data Encapsulation
rectangular
setPossessionName
to give it someone else - or another object
4. A view represents a _ area
data source - view controller and delegate
rectangular
Is a placeholder object
a mechanism to enable specific callbacks
5. What does autorelease mean?
wait until the loop finishes processing the event - at the end release it
@synthesize
storage
protocol
6. UIImageView is used to...
Object wrapper around primitive types like int - float - double - BOOl
draw images
is called every time the event occurs
only the innermost loop in which the break is executed is terminated
7. super - is used...
its dataSource
UIViewController
for inheritance - adopting the superclasses implementation
designated initializer
8. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
has one root view controller
the message release to all its entries
@synthesize
9. Class methods typically either create
wait until the loop finishes processing the event - at the end release it
new instances of the class or retrieve some global property of the class.
NSLog routine
superclass's
10. The only reason to temporarily own an object - is...
instance of UIView or one of its subclasses
rectangular
to give it someone else - or another object
declaration and initialization of a variable
11. Primitives and C Structures...
cannot be added to an array
receiver - selector - arguments
receiver[message]
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
12. In the last line of an init method...
instance variables
only the class and subclasses can access
you always return the newly initialized object(return self)
view
13. NSNumber - class...
cannot be added to an array
Object wrapper around primitive types like int - float - double - BOOl
upper
super - self
14. 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
15. To load a Xib file manually - you use _
NSBundle
UIView
C Functionn
cannot be added to an array
16. 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
Maintenance of state
Continue
ordered collection of objects - immutable
implementation
17. Only exists within the statement block there defined - outside of the block is fine
message
wait until the loop finishes processing the event - at the end release it
CGRect
variable scope - if defined within a block
18. NSSet...
@interface ClassName:SuperClassName
draw images
you must import the header file of that class
unordered collection of objects - objects must be unique
19. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
receiver
data
view controller's initialization method
cannot be added to an array
20. Each class picks one _ as it's designated initializer....
object
data
lowercase - uppercase
initializer
21. A view is an...
cannot be added to an array
instance of UIView or one of its subclasses
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Instantiation from scratch
22. Proceed through the loop - jump back to the top and check again
message
%d
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Continue
23. 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
24. @property declares - and _ implements the setter and getter...
@synthesize
references to objects
storage
CGFloat
25. Execution of the break statement...
C Functionn
an object's property
causes the program to immediately exit from the loop it is executing - whether its for - while or do
method
26. UITableViewController is a subclass of...
first responder
data source - view controller and delegate
UIViewController
wait until the loop finishes processing the event - at the end release it
27. 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.
alloc - singleton - informational utility method?
creates an instance of NSString that holds the character string
you always return the newly initialized object(return self)
Data Encapsulation
28. A UITableViewController can fill all three roles of...
data source - view controller and delegate
reuse your cells
declaration and initialization of a variable
references to objects
29. After accessors have been defined in the header file...
they need to be defined in the implementation file
protocol
selector[message]
position
30. When do you take ownership?...
arguments[message]
Functions
Anytime you call a method with new - alloc or copy. You own and must release that object.
they need to be defined in the implementation file
31. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
receiving and handling events that are associated with it
do so in viewDidLoad
draw images
32. When making a tableView always...
UIView
implementation
(id)initWithFrame:(CGRect)aRect;
reuse your cells
33. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
object
is an instance of that class
wait until the loop finishes processing the event - at the end release it
NSCoder
34. Designated initializer makes sure that every...
receiver[message]
Encapsulation of functionality
initializer
instance variable of an object is valid
35. Number one use of protocols in iOS...
view controller
%d
delegates and dataSources
attributes - behavior
36. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
you always return the newly initialized object(return self)
viewWillDissapear: and viewWillAppear:
Instantiation from scratch
attributes - behavior
37. 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.
will be ignored
new instances of the class or retrieve some global property of the class.
instance variables
designated initializer
38. In a class method you cannot access...
arguments[message]
the instance variables
for inheritance - adopting the superclasses implementation
copy - retain
39. Ready-made instances...
@interface ClassName:SuperClassName
superclass's
calling code that does the instantiation for you
array[class - NSMutableArray]
40. You use _ to implement the view
rectangular
group of global functions already assigned to this class
CGRect bounds
methods for generating an instance
41. 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 _.
CGRect bounds
pointer - class
safety - subclassability and makes code look more consistent with C structs
'getters' and 'setters'
42. Classes describe two things...
receiver - selector - arguments
attributes - behavior
do so in viewDidLoad
retain
43. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
object
the array relinquishes ownership of that object and no longer has a pointer to it
CGFloat
data source - view controller and delegate
44. Core foundation classes are prefixed with _ and suffixed with _
Controller Objects[Managers]
CGFloat
CF - Ref
pointers
45. A UITableView usually needs three different pieces...
data source - delegate and view controller
a single-array can contain objects of different types
the instance variables
UIViewController
46. Why properties?
initializers
safety - subclassability and makes code look more consistent with C structs
Model Objects[Factory Worker]
copy - retain
47. 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.
for inheritance - adopting the superclasses implementation
first responder
implementation
you must import the header file of that class
48. Name of the method to be executed
selector[message]
instance of UIView or one of its subclasses
NSBundle
copy - retain
49. NSDictionary...
data
Hash table - Look up objects using a key to get a value.
receiver - selector - arguments
data source - view controller and delegate
50. Prefixing a character string with an @ symbol [specific - NSString class]...
do so in viewDidLoad
methods for generating an instance
creates an instance of NSString that holds the character string
Encapsulation of functionality