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. Views have three properties related to their location and size: @property _ _;
Used to find the time right now or to store past or future time/dates
view controller
CGRect bounds - GCPoint center - CGRect frame
an object's property
2. All objects are accessed using...
attributes - behavior
cannot be added to an array
message
pointers
3. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
parentViewController
alloc - singleton - informational utility method?
lowercase - uppercase
4. Primitives and C Structures...
%d
cannot be added to an array
to give it someone else - or another object
is called every time the event occurs
5. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
class methods - initializers
Ready-Made Instance
object
cannot be added to an array
6. In Cocoa Touch - the table view asks another object _ what it should display...
data
@synthesize
position
its dataSource
7. class methods...
Object wrapper around primitive types like int - float - double - BOOl
methods for generating an instance
group of global functions already assigned to this class
view
8. Any individual object belonging to any class...
is an instance of that class
class's
selector[message]
references to objects
9. UIViewController has several methods that get called at certain times...
for inheritance - adopting the superclasses implementation
Ready-Made Instance
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
class
10. NSArray - important methods...
wait until the loop finishes processing the event - at the end release it
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
group of global functions already assigned to this class
define it in the implemenation file
11. A message is always contained in square brackets - and has three parts
for inheritance - adopting the superclasses implementation
in the dealloc - or when a Controller's view is 'unloaded'
is an instance of that class
receiver - selector - arguments
12. UIView - designated initializer...
the instance variables
unordered collection of objects - objects must be unique
(id)initWithFrame:(CGRect)aRect;
you always return the newly initialized object(return self)
13. 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
setPossessionName
nil
(id)initWithFrame:(CGRect)aRect;
14. if you implemented both the setter and getter - the @synthesize method...
pointer to an object
CGRect bounds - GCPoint center - CGRect frame
message
will be ignored
15. When an object is removed from an NSMutableArray - that object is sent the message release;...
a mechanism to enable specific callbacks
initializers
the array relinquishes ownership of that object and no longer has a pointer to it
dealloc - is called on the object & the object's memory is returned to the heap
16. NSDictionary...
Hash table - Look up objects using a key to get a value.
alloc - singleton - informational utility method?
instance variables
instance
17. A responder is responsible for...
receiving and handling events that are associated with it
Used to find the time right now or to store past or future time/dates
instance variables
attributes - behavior
18. Use of class methods - there are three...
Instantiation from scratch
Is a placeholder object
alloc - singleton - informational utility method?
Functions
19. 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
20. In any application with UINavigationController - the navigation controller...
arguments[message]
has one root view controller
cannot be added to an array
position
21. Also - because arrays only hold a pointer to an object...
implementation
collection of collections - NSArray of an NSArray
for inheritance - adopting the superclasses implementation
a single-array can contain objects of different types
22. You use _ to implement the view
the array relinquishes ownership of that object and no longer has a pointer to it
'getters' and 'setters'
draw images
CGRect bounds
23. A collection object - an ordered list of objects that can be accesed by an index
ready-made instances - instantiation from scratch - and nib based instantiation
class methods - initializers
array[class - NSMutableArray]
methods for generating an instance
24. The integer prefix is...
message
do so in viewDidLoad
UIView
%d
25. Hold data and know nothing about the user interface
the instance variables
super - self
Model Objects[Factory Worker]
C Functionn
26. NSString objects are usually sent _ rather than _...
the array relinquishes ownership of that object and no longer has a pointer to it
Functions
You take ownership for an object you want to keep a pointer to
copy - retain
27. At the top of any implementation file...
calling code that does the instantiation for you
has one root view controller
do so in viewDidLoad
you must import the header file of that class
28. NSNumber - class...
nil
Object wrapper around primitive types like int - float - double - BOOl
instance
protocol
29. 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 _.
to give it someone else - or another object
instance variables
subview(s)
protocol
30. Origin of a view's coordinate system is _ left
type - name and value
upper
lowercase - uppercase
nil
31. initWithFrame: the designated initializer for UIView gives the view
size and position
attributes - behavior
method
pointer - class
32. Each class picks one _ as it's designated initializer....
reuse your cells
initializer
accessors - individually we call them 'getters' and 'setters'
receiver - selector - arguments
33. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
arguments[message]
cannot be added to an array
Controller Objects[Managers]
group of global functions already assigned to this class
34. A pointer to the object being asked to execute a method
Instantiation from scratch
declaration and initialization of a variable
wait until the loop finishes processing the event - at the end release it
receiver[message]
35. Values to be supplied as the parameters to the method
calling code that does the instantiation for you
arguments[message]
do so in viewDidLoad
in the dealloc - or when a Controller's view is 'unloaded'
36. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
instance of UIView or one of its subclasses
create a XIB file
creates an instance of NSString that holds the character string
@interface ClassName:SuperClassName
37. If a break statement is executed from within a set of nested loops...
CGFloat
safety - subclassability and makes code look more consistent with C structs
only the innermost loop in which the break is executed is terminated
first responder
38. id is a...
pointer to an object
initializer
first responder
pointer - class
39. NSSet...
cannot be added to an array
receiver
creating an initializer
unordered collection of objects - objects must be unique
40. Whenever a UINavigationController is about to swap views - it sends out two messages
CF - Ref
declaration and initialization of a variable
viewWillDissapear: and viewWillAppear:
You take ownership for an object you want to keep a pointer to
41. NSValue - class...
the array relinquishes ownership of that object and no longer has a pointer to it
Generic object wrapper for other non-object data types
receiving and handling events that are associated with it
callbacks
42. Designated initializer makes sure that every...
instance variable of an object is valid
the array relinquishes ownership of that object and no longer has a pointer to it
declaration and initialization of a variable
Core Graphics Framework
43. Files Owner...
draw images
Is a placeholder object
the message release to all its entries
define it in the implemenation file
44. In the last line of an init method...
viewWillDissapear: and viewWillAppear:
superclass's
calling code that does the instantiation for you
you always return the newly initialized object(return self)
45. Instance Variables by default are called @protected meaning...
self
CGRect bounds
only the class and subclasses can access
Model Objects[Factory Worker]
46. UIImageView is used to...
method
draw images
ready-made instances - instantiation from scratch - and nib based instantiation
nil
47. Only exists within the statement block there defined - outside of the block is fine
an object's property
variable scope - if defined within a block
instance variables
is called every time the event occurs
48. 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
49. In Objective C arrays can hold only...
Functions
references to objects
you always return the newly initialized object(return self)
draw images
50. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
data source - delegate and view controller
self
Instantiation from scratch
UIViewController