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. Core foundation classes are prefixed with _ and suffixed with _
the instance variables
CF - Ref
ordered collection of objects - immutable
position
2. A view represents a _ area
instance of UIView or one of its subclasses
cannot be added to an array
creates an instance of NSString that holds the character string
rectangular
3. Why properties?
safety - subclassability and makes code look more consistent with C structs
instance of UIView or one of its subclasses
%d
C Functionn
4. NSSet...
Abstraction
UIViewController
data source - view controller and delegate
unordered collection of objects - objects must be unique
5. initWithFrame: the designated initializer for UIView gives the view
ready-made instances - instantiation from scratch - and nib based instantiation
Model Objects[Factory Worker]
new instances of the class or retrieve some global property of the class.
size and position
6. Reducing details to focus on the core concepts
CGRect bounds - GCPoint center - CGRect frame
Controller Objects[Managers]
method
Abstraction
7. The root view controller typically creates the next view controller - and the next _ creates the one after that
view controller
data source - view controller and delegate
creating an initializer
methods
8. A responder is responsible for...
receiving and handling events that are associated with it
CF - Ref
storage
causes the program to immediately exit from the loop it is executing - whether its for - while or do
9. Any individual object belonging to any class...
Encapsulation of functionality
is an instance of that class
Hash table - Look up objects using a key to get a value.
draw images
10. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
C Functionn
instance of UIView or one of its subclasses
array[class - NSMutableArray]
class
11. Primitives and C Structures...
callbacks
an object's property
array[class - NSMutableArray]
cannot be added to an array
12. When an object is added to a NSMutableArray - that object is sent the message to retain;...
the array becomes an owner of that object and has a pointer to it.
receiver
protocol
is called every time the event occurs
13. A view is a subclass of _
NSCoder
UIView
receiver[message]
the instance variables
14. 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 _.
values
You take ownership for an object you want to keep a pointer to
draw images
pointer - class
15. A UITableView usually needs three different pieces...
cannot be added to an array
data source - delegate and view controller
delegates and dataSources
the instance variables
16. Origin of a view's coordinate system is _ left
upper
copy - retain
reuse your cells
instance
17. NSDate - class...
Used to find the time right now or to store past or future time/dates
instance of UIView or one of its subclasses
the instance variables
Continue
18. When making a tableView always...
nil
Ready-Made Instance
(id)initWithFrame:(CGRect)aRect;
reuse your cells
19. What does autorelease mean?
Encapsulation of functionality
pointer - class
position
wait until the loop finishes processing the event - at the end release it
20. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
CGRect bounds - GCPoint center - CGRect frame
instance variable of an object is valid
receiver
subview(s)
21. super - is used...
subview(s)
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
only the class and subclasses can access
for inheritance - adopting the superclasses implementation
22. In Objective C arrays can hold only...
method
subview(s)
attributes - behavior
references to objects
23. The class is responsible for what instance variables the instance has - but not the _ of those variables.
ready-made instances - instantiation from scratch - and nib based instantiation
collection of collections - NSArray of an NSArray
values
instance variable of an object is valid
24. If a break statement is executed from within a set of nested loops...
Instantiation from scratch
accessors - individually we call them 'getters' and 'setters'
only the innermost loop in which the break is executed is terminated
retain
25. Name of the method to be executed
create a XIB file
designated initializer
new instances of the class or retrieve some global property of the class.
selector[message]
26. 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 _.
view controller
subview(s)
they need to be defined in the implementation file
class
27. After accessors have been defined in the header file...
retain
they need to be defined in the implementation file
accessors - individually we call them 'getters' and 'setters'
class's
28. Class methods typically either create
is called every time the event occurs
new instances of the class or retrieve some global property of the class.
calling code that does the instantiation for you
class
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. Files Owner...
Is a placeholder object
Maintenance of state
is an instance of that class
data source - view controller and delegate
31. A _ handles touch events.
view
selector[message]
Is a placeholder object
Model Objects[Factory Worker]
32. NSValue - class...
calling code that does the instantiation for you
Generic object wrapper for other non-object data types
You take ownership for an object you want to keep a pointer to
attributes - behavior
33. Defining variables - three parts...
array[class - NSMutableArray]
type - name and value
receiver[message]
position
34. 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
35. 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 instance variables
size and position
Functions
the message release to all its entries
36. When an NSMutableArray is deallocated - it sends...
the array becomes an owner of that object and has a pointer to it.
instance
causes the program to immediately exit from the loop it is executing - whether its for - while or do
the message release to all its entries
37. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
Controller Objects[Managers]
Anytime you call a method with new - alloc or copy. You own and must release that object.
pointers
super - self
38. Execution of the break statement...
CGRect bounds
draw images
upper
causes the program to immediately exit from the loop it is executing - whether its for - while or do
39. Delegation is an object oriented approach to
nil
Ready-Made Instance
callbacks
@interface ClassName:SuperClassName
40. All objects are accessed using...
to get and set variables
pointers
receiving and handling events that are associated with it
new instances of the class or retrieve some global property of the class.
41. NSNumber - class...
CGRect
class
Object wrapper around primitive types like int - float - double - BOOl
Ready-Made Instance
42. 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
Encapsulation of functionality
class methods - initializers
CF - Ref
method
43. You use _ to implement the view
a mechanism to enable specific callbacks
pointer to an object
CGRect bounds
data source - view controller and delegate
44. 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.
Data Encapsulation
Controller Objects[Managers]
the instance variables
receiver - selector - arguments
45. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
class methods - initializers
a single-array can contain objects of different types
receiver[message]
an object's property
46. Whenever a UINavigationController is about to swap views - it sends out two messages
method
@interface ClassName:SuperClassName
viewWillDissapear: and viewWillAppear:
selector[message]
47. Only exists within the statement block there defined - outside of the block is fine
declaration and initialization of a variable
variable scope - if defined within a block
reuse your cells
values
48. Ready-made instances...
protocol
receiver
class's
calling code that does the instantiation for you
49. 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
50. 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...
setPossessionName
wait until the loop finishes processing the event - at the end release it
an object's property
position