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. Why properties?
Anytime you call a method with new - alloc or copy. You own and must release that object.
CGRect
arguments[message]
safety - subclassability and makes code look more consistent with C structs
2. 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
3. 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
4. Ready-made instances...
they need to be defined in the implementation file
calling code that does the instantiation for you
wait until the loop finishes processing the event - at the end release it
attributes - behavior
5. if you implemented both the setter and getter - the @synthesize method...
will be ignored
receiver - selector - arguments
view controller's initialization method
you must import the header file of that class
6. Only exists within the statement block there defined - outside of the block is fine
parentViewController
variable scope - if defined within a block
initializers
class
7. After accessors have been defined in the header file...
receiver - selector - arguments
Instantiation from scratch
ready-made instances - instantiation from scratch - and nib based instantiation
they need to be defined in the implementation file
8. Any individual object belonging to any class...
Used to find the time right now or to store past or future time/dates
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
a mechanism to enable specific callbacks
is an instance of that class
9. super - is used...
receiver - selector - arguments
for inheritance - adopting the superclasses implementation
lowercase - uppercase
accessors - individually we call them 'getters' and 'setters'
10. UITableViewController is a subclass of...
pointer - class
UIViewController
Continue
to get and set variables
11. NSString objects are usually sent _ rather than _...
Used to find the time right now or to store past or future time/dates
instance of UIView or one of its subclasses
copy - retain
UIView
12. A view is a subclass of _
UIView
Hash table - Look up objects using a key to get a value.
the message release to all its entries
NSLog routine
13. NSString *s = @'Hello - World'; is an example of...
lowercase - uppercase
%d
UIViewController
declaration and initialization of a variable
14. A _ handles touch events.
view
Continue
delegates and dataSources
alloc - singleton - informational utility method?
15. A collection object - an ordered list of objects that can be accesed by an index
declaration and initialization of a variable
array[class - NSMutableArray]
subview(s)
pointer to an object
16. NSSet...
delegates and dataSources
unordered collection of objects - objects must be unique
a mechanism to enable specific callbacks
CGRect
17. NSArray - important methods...
delegates and dataSources
only the class and subclasses can access
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
its dataSource
18. Primitives and C Structures...
data source - view controller and delegate
CGRect bounds - GCPoint center - CGRect frame
cannot be added to an array
Maintenance of state
19. An instance is a device for maintaining state. It's a box for _ of data.
Instantiation from scratch
collection of collections - NSArray of an NSArray
storage
you always return the newly initialized object(return self)
20. Class methods typically either create
new instances of the class or retrieve some global property of the class.
receiver
class
protocol
21. Prefixing a character string with an @ symbol [specific - NSString class]...
references to objects
Continue
creates an instance of NSString that holds the character string
create a XIB file
22. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
Model Objects[Factory Worker]
cannot be added to an array
group of global functions already assigned to this class
NSCoder
23. 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
NSCoder
Maintenance of state
Object wrapper around primitive types like int - float - double - BOOl
the instance variables
24. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
the message release to all its entries
view controller's initialization method
an object's property
CGRect
25. 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.
the instance variables
instance variable of an object is valid
Data Encapsulation
position
26. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
Generic object wrapper for other non-object data types
to give it someone else - or another object
instance of UIView or one of its subclasses
27. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
in the dealloc - or when a Controller's view is 'unloaded'
callbacks
size and position
28. To load a Xib file manually - you use _
rectangular
UIView
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
NSBundle
29. 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
the message release to all its entries
Functions
superclass's
the array becomes an owner of that object and has a pointer to it.
30. initWithFrame: the designated initializer for UIView gives the view
Maintenance of state
size and position
only the innermost loop in which the break is executed is terminated
initializer
31. NSNumber - class...
for inheritance - adopting the superclasses implementation
Object wrapper around primitive types like int - float - double - BOOl
first responder
upper
32. A UITableView usually needs three different pieces...
wait until the loop finishes processing the event - at the end release it
data source - delegate and view controller
self
Encapsulation of functionality
33. A pointer to the object being asked to execute a method
nil
delegates and dataSources
receiver[message]
unordered collection of objects - objects must be unique
34. The root view controller typically creates the next view controller - and the next _ creates the one after that
in the dealloc - or when a Controller's view is 'unloaded'
view controller
the instance variables
causes the program to immediately exit from the loop it is executing - whether its for - while or do
35. 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...
designated initializer
setPossessionName
an object's property
callbacks
36. Number one use of protocols in iOS...
copy - retain
instance of UIView or one of its subclasses
delegates and dataSources
nil
37. The class is responsible for what instance variables the instance has - but not the _ of those variables.
upper
NSBundle
the instance variables
values
38. Views have three properties related to their location and size: @property _ _;
Abstraction
methods
first responder
CGRect bounds - GCPoint center - CGRect frame
39. A message is always contained in square brackets - and has three parts
receiving and handling events that are associated with it
UIView
receiver - selector - arguments
Object wrapper around primitive types like int - float - double - BOOl
40. Class methods do not operate on an _ or have any access to _ variables....
methods for generating an instance
instance
UIViewController
ready-made instances - instantiation from scratch - and nib based instantiation
41. How do I implement my drawRect?
array[class - NSMutableArray]
@interface ClassName:SuperClassName
Object wrapper around primitive types like int - float - double - BOOl
Core Graphics Framework
42. NSDictionary...
its dataSource
an object's property
Hash table - Look up objects using a key to get a value.
data
43. If a break statement is executed from within a set of nested loops...
define it in the implemenation file
instance variables
NSLog routine
only the innermost loop in which the break is executed is terminated
44. Center and frame are used to _ your view
position
parentViewController
safety - subclassability and makes code look more consistent with C structs
new instances of the class or retrieve some global property of the class.
45. A responder is responsible for...
super - self
receiving and handling events that are associated with it
header files declare
superclass's
46. Three ways instances are created...
@interface ClassName:SuperClassName
ready-made instances - instantiation from scratch - and nib based instantiation
arguments[message]
Model Objects[Factory Worker]
47. Hold data and know nothing about the user interface
do so in viewDidLoad
Model Objects[Factory Worker]
variable scope - if defined within a block
subview(s)
48. Values to be supplied as the parameters to the method
a single-array can contain objects of different types
accessors - individually we call them 'getters' and 'setters'
methods
arguments[message]
49. Each object does its own job - and presents to the rest of the world - to other objects - and indeed in a sense to the programmer - an opaque wall whose only entrances are the methods to which it promises to respond and the actions it promises to per
will be ignored
define it in the implemenation file
ordered collection of objects - immutable
Encapsulation of functionality
50. At the top of any implementation file...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
to get and set variables
dealloc - is called on the object & the object's memory is returned to the heap
you must import the header file of that class