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. A _ handles touch events.
storage
(id)initWithFrame:(CGRect)aRect;
view
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
2. Prefixing a character string with an @ symbol [specific - NSString class]...
creates an instance of NSString that holds the character string
array[class - NSMutableArray]
values
instance
3. 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.
Maintenance of state
lowercase - uppercase
instance variables
class's
4. NSArray - important methods...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
you always return the newly initialized object(return self)
You take ownership for an object you want to keep a pointer to
the array becomes an owner of that object and has a pointer to it.
5. If you have extra work you want to do on the view...
for inheritance - adopting the superclasses implementation
do so in viewDidLoad
view controller's initialization method
draw images
6. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
initializer
is an instance of that class
UIView
class methods - initializers
7. If a break statement is executed from within a set of nested loops...
class
Controller Objects[Managers]
only the innermost loop in which the break is executed is terminated
NSBundle
8. Property List...
instance variables
to get and set variables
Hash table - Look up objects using a key to get a value.
collection of collections - NSArray of an NSArray
9. Each _ has a 'designated' initializer method....
Core Graphics Framework
Object wrapper around primitive types like int - float - double - BOOl
class
values
10. It's class is sent the message alloc - which creates an instance of that class and returns a pointer to it - and then that instance is sent the message init - which gives its instance variables initial values.
the instance variables
creating an initializer
NSCoder
methods for generating an instance
11. A view is an...
methods
is an instance of that class
instance of UIView or one of its subclasses
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
12. The integer prefix is...
is called every time the event occurs
%d
data source - view controller and delegate
a single-array can contain objects of different types
13. Name of the method to be executed
selector[message]
Anytime you call a method with new - alloc or copy. You own and must release that object.
view controller
CF - Ref
14. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
in the dealloc - or when a Controller's view is 'unloaded'
Instantiation from scratch
15. super - is used...
for inheritance - adopting the superclasses implementation
pointers
new instances of the class or retrieve some global property of the class.
message
16. NSNumber - class...
position
initializers
Object wrapper around primitive types like int - float - double - BOOl
you must import the header file of that class
17. Asking a class or object to execute a method
message
designated initializer
NSBundle
its dataSource
18. UIView - designated initializer...
initializers
CGRect bounds
the array relinquishes ownership of that object and no longer has a pointer to it
(id)initWithFrame:(CGRect)aRect;
19. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
new instances of the class or retrieve some global property of the class.
calling code that does the instantiation for you
superclass's
lowercase - uppercase
20. A message is always contained in square brackets - and has three parts
initializer
to get and set variables
receiver - selector - arguments
has one root view controller
21. A UITableView usually needs three different pieces...
ready-made instances - instantiation from scratch - and nib based instantiation
ordered collection of objects - immutable
data source - delegate and view controller
an object's property
22. After accessors have been defined in the header file...
Model Objects[Factory Worker]
You take ownership for an object you want to keep a pointer to
they need to be defined in the implementation file
Ready-Made Instance
23. Hold data and know nothing about the user interface
receiver[message]
is an instance of that class
Model Objects[Factory Worker]
view
24. Each class picks one _ as it's designated initializer....
initializer
has one root view controller
Model Objects[Factory Worker]
first responder
25. Instance Variables by default are called @protected meaning...
instance variables
retain
pointer - class
only the class and subclasses can access
26. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
Model Objects[Factory Worker]
object
create a XIB file
header files declare
27. A view is a subclass of _
group of global functions already assigned to this class
the message release to all its entries
UIView
attributes - behavior
28. 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...
do so in viewDidLoad
draw images
setPossessionName
Anytime you call a method with new - alloc or copy. You own and must release that object.
29. In general - class methods tend to be factory methods - that is...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
@synthesize
Instantiation from scratch
methods for generating an instance
30. Categories are an Objective C way to add _ to an existing class without subclassing
Object wrapper around primitive types like int - float - double - BOOl
size and position
methods
you always return the newly initialized object(return self)
31. All objects are accessed using...
pointer - class
Continue
pointers
ready-made instances - instantiation from scratch - and nib based instantiation
32. 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
33. A command directed to an object is called an...
message
instance variable of an object is valid
storage
reuse your cells
34. At the top of any implementation file...
delegates and dataSources
only the innermost loop in which the break is executed is terminated
'getters' and 'setters'
you must import the header file of that class
35. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
36. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
only the class and subclasses can access
ready-made instances - instantiation from scratch - and nib based instantiation
Controller Objects[Managers]
safety - subclassability and makes code look more consistent with C structs
37. 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
38. 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
do so in viewDidLoad
causes the program to immediately exit from the loop it is executing - whether its for - while or do
cannot be added to an array
39. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
super - self
instance variables
Instantiation from scratch
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
40. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
Core Graphics Framework
array[class - NSMutableArray]
receiving and handling events that are associated with it
41. Typically the designated initializer has parameters for the most important and frequently used _ of an object
instance variables
CGRect bounds - GCPoint center - CGRect frame
references to objects
the instance variables
42. A callback is a function that is supplied in advance of an event - and...
super - self
define it in the implemenation file
initializers
is called every time the event occurs
43. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
Object wrapper around primitive types like int - float - double - BOOl
delegates and dataSources
Maintenance of state
44. An instance is a device for maintaining state. It's a box for _ of data.
an object's property
is called every time the event occurs
storage
pointer - class
45. A view represents a _ area
to give it someone else - or another object
NSCoder
rectangular
selector[message]
46. You use _ to implement the view
rectangular
instance variables
do so in viewDidLoad
CGRect bounds
47. Any individual object belonging to any class...
setPossessionName
is an instance of that class
receiver[message]
'getters' and 'setters'
48. NSDate - class...
Used to find the time right now or to store past or future time/dates
class's
wait until the loop finishes processing the event - at the end release it
implementation
49. When a view controller presents a modal view controller - the _ of the modal view controller is set to be the parent of the presenting controller
designated initializer
NSLog routine
parentViewController
Controller Objects[Managers]
50. Why properties?
setPossessionName
cannot be added to an array
safety - subclassability and makes code look more consistent with C structs
data source - view controller and delegate