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. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
size and position
you always return the newly initialized object(return self)
draw images
NSCoder
2. Any other initializer a class has calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
3. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
message
receiver
accessors - individually we call them 'getters' and 'setters'
only the innermost loop in which the break is executed is terminated
4. The root view controller typically creates the next view controller - and the next _ creates the one after that
view controller
data source - delegate and view controller
in the dealloc - or when a Controller's view is 'unloaded'
dealloc - is called on the object & the object's memory is returned to the heap
5. Values to be supplied as the parameters to the method
unordered collection of objects - objects must be unique
implementation
arguments[message]
Data Encapsulation
6. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
reuse your cells
parentViewController
class methods - initializers
7. NSDictionary...
Hash table - Look up objects using a key to get a value.
CGRect
the array becomes an owner of that object and has a pointer to it.
instance variables
8. In Cocoa Touch - the table view asks another object _ what it should display...
Continue
its dataSource
lowercase - uppercase
size and position
9. A responder is responsible for...
rectangular
receiving and handling events that are associated with it
Continue
subview(s)
10. Categories are an Objective C way to add _ to an existing class without subclassing
pointer - class
methods
causes the program to immediately exit from the loop it is executing - whether its for - while or do
view
11. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
Functions
lowercase - uppercase
C Functionn
dealloc - is called on the object & the object's memory is returned to the heap
12. A command directed to an object is called an...
message
position
the message release to all its entries
view
13. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
pointer - class
will be ignored
class methods - initializers
@interface ClassName:SuperClassName
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 _.
pointer - class
creates an instance of NSString that holds the character string
message
accessors - individually we call them 'getters' and 'setters'
15. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
define it in the implemenation file
implementation
calling code that does the instantiation for you
header files declare
16. Typically the designated initializer has parameters for the most important and frequently used _ of an object
creates an instance of NSString that holds the character string
method
type - name and value
instance variables
17. 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
18. 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
view controller's initialization method
is called every time the event occurs
view controller
parentViewController
19. In the last line of an init method...
you always return the newly initialized object(return self)
'getters' and 'setters'
pointers
receiver
20. NSSet...
class
view
accessors - individually we call them 'getters' and 'setters'
unordered collection of objects - objects must be unique
21. Just a floating point number - but we always use it for graphics.
CGFloat
wait until the loop finishes processing the event - at the end release it
instance of UIView or one of its subclasses
causes the program to immediately exit from the loop it is executing - whether its for - while or do
22. 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.
first responder
superclass's
subview(s)
Data Encapsulation
23. A view is a subclass of _
draw images
storage
UIView
to give it someone else - or another object
24. Each _ has a 'designated' initializer method....
wait until the loop finishes processing the event - at the end release it
class
values
arguments[message]
25. 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
26. 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
Instantiation from scratch
define it in the implemenation file
calling code that does the instantiation for you
27. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
CF - Ref
NSLog routine
header files declare
28. UIImageView is used to...
draw images
You take ownership for an object you want to keep a pointer to
creates an instance of NSString that holds the character string
Instantiation from scratch
29. You use _ to implement the view
initializers
CGRect bounds
methods
'getters' and 'setters'
30. When an NSMutableArray is deallocated - it sends...
draw images
receiver
you always return the newly initialized object(return self)
the message release to all its entries
31. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
for inheritance - adopting the superclasses implementation
Controller Objects[Managers]
CGFloat
UIViewController
32. Classes describe two things...
pointer - class
attributes - behavior
class
'getters' and 'setters'
33. NSString objects are usually sent _ rather than _...
copy - retain
view controller
retain
is an instance of that class
34. A message is always contained in square brackets - and has three parts
retain
receiver - selector - arguments
view
pointer - class
35. Designated initializer makes sure that every...
(id)initWithFrame:(CGRect)aRect;
data source - view controller and delegate
declaration and initialization of a variable
instance variable of an object is valid
36. Hold data and know nothing about the user interface
Model Objects[Factory Worker]
ordered collection of objects - immutable
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
create a XIB file
37. Instance Variables by default are called @protected meaning...
(id)initWithFrame:(CGRect)aRect;
only the class and subclasses can access
creating an initializer
ordered collection of objects - immutable
38. 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.
an object's property
callbacks
creating an initializer
protocol
39. 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
40. Any individual object belonging to any class...
calling code that does the instantiation for you
instance variable of an object is valid
is an instance of that class
pointers
41. A UITableViewController can fill all three roles of...
data source - view controller and delegate
will be ignored
collection of collections - NSArray of an NSArray
is called every time the event occurs
42. NSArray - important methods...
Object wrapper around primitive types like int - float - double - BOOl
reuse your cells
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
unordered collection of objects - objects must be unique
43. Defining variables - three parts...
@interface ClassName:SuperClassName
receiver
NSCoder
type - name and value
44. Core foundation classes are prefixed with _ and suffixed with _
draw images
new instances of the class or retrieve some global property of the class.
an object's property
CF - Ref
45. UITableViewController is a subclass of...
UIViewController
only the class and subclasses can access
the array becomes an owner of that object and has a pointer to it.
Encapsulation of functionality
46. 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 _.
Model Objects[Factory Worker]
subview(s)
an object's property
rectangular
47. NSDate - class...
only the class and subclasses can access
Used to find the time right now or to store past or future time/dates
only the innermost loop in which the break is executed is terminated
super - self
48. In general - class methods tend to be factory methods - that is...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
methods for generating an instance
they need to be defined in the implementation file
draw images
49. [Instance Variables] The code it gets from its class and in a sense is shared with all other instances of that class - but the _ belong to it alone.
to get and set variables
instance
Functions
data
50. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
CGRect
a mechanism to enable specific callbacks
class
methods for generating an instance