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. Each _ has a 'designated' initializer method....
class
instance variable of an object is valid
Encapsulation of functionality
to get and set variables
2. If you aren't going to initialize an instance reference pointer at the moment you declare it by assigning a real value - it's a good idea to assign it _.
references to objects
Functions
for inheritance - adopting the superclasses implementation
nil
3. super - is used...
creates an instance of NSString that holds the character string
for inheritance - adopting the superclasses implementation
view controller's initialization method
Is a placeholder object
4. A UITableView usually needs three different pieces...
the array becomes an owner of that object and has a pointer to it.
Model Objects[Factory Worker]
data source - delegate and view controller
receiver - selector - arguments
5. @property - is using methods...
implementation
CF - Ref
pointer - class
to get and set variables
6. [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.
data
you must import the header file of that class
Encapsulation of functionality
retain
7. In Cocoa Touch - the table view asks another object _ what it should display...
its dataSource
CGRect bounds - GCPoint center - CGRect frame
CF - Ref
C Functionn
8. Reference Counting...
You take ownership for an object you want to keep a pointer to
delegates and dataSources
cannot be added to an array
accessors - individually we call them 'getters' and 'setters'
9. 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
10. NSArray - important methods...
an object's property
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
declaration and initialization of a variable
super - self
11. When an NSMutableArray is deallocated - it sends...
instance variables
parentViewController
cannot be added to an array
the message release to all its entries
12. Three ways instances are created...
ready-made instances - instantiation from scratch - and nib based instantiation
superclass's
nil
to get and set variables
13. UITableViewController is a subclass of...
initializer
delegates and dataSources
You take ownership for an object you want to keep a pointer to
UIViewController
14. Property List...
collection of collections - NSArray of an NSArray
instance variables
for inheritance - adopting the superclasses implementation
Encapsulation of functionality
15. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
only the innermost loop in which the break is executed is terminated
upper
only the class and subclasses can access
16. 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
an object's property
instance variables
reuse your cells
parentViewController
17. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
Maintenance of state
self
view controller's initialization method
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
18. Dynamic binding means that when we call a certain object's method - and there are several _ of that method - the right one is figured out at runtime.
%d
dealloc - is called on the object & the object's memory is returned to the heap
Core Graphics Framework
implementation
19. id is a...
Abstraction
create a XIB file
for inheritance - adopting the superclasses implementation
pointer to an object
20. Classes describe two things...
message
attributes - behavior
values
arguments[message]
21. Class methods do not operate on an _ or have any access to _ variables....
data source - delegate and view controller
instance
Object wrapper around primitive types like int - float - double - BOOl
to get and set variables
22. 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
first responder
Functions
initializers
setPossessionName
23. A collection object - an ordered list of objects that can be accesed by an index
reuse your cells
array[class - NSMutableArray]
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
receiver[message]
24. Instance Variables by default are called @protected meaning...
object
UIView
only the class and subclasses can access
alloc - singleton - informational utility method?
25. 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]
callbacks
Used to find the time right now or to store past or future time/dates
CGRect
26. Use of class methods - there are three...
Object wrapper around primitive types like int - float - double - BOOl
delegates and dataSources
alloc - singleton - informational utility method?
creating an initializer
27. A responder is responsible for...
receiving and handling events that are associated with it
draw images
array[class - NSMutableArray]
calling code that does the instantiation for you
28. When overriding a method - all you need to is _ - you do not need to declare it in the header file because it has already been declared by the superclass....
Is a placeholder object
dealloc - is called on the object & the object's memory is returned to the heap
define it in the implemenation file
setPossessionName
29. @property declares - and _ implements the setter and getter...
storage
instance variables
Encapsulation of functionality
@synthesize
30. The class is responsible for what instance variables the instance has - but not the _ of those variables.
NSBundle
values
nil
Encapsulation of functionality
31. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
C Functionn
pointers
@synthesize
to get and set variables
32. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
CGRect bounds
initializers
rectangular
lowercase - uppercase
33. Reducing details to focus on the core concepts
Abstraction
unordered collection of objects - objects must be unique
will be ignored
dealloc - is called on the object & the object's memory is returned to the heap
34. Ready-made instances...
only the class and subclasses can access
pointers
methods for generating an instance
calling code that does the instantiation for you
35. Values to be supplied as the parameters to the method
attributes - behavior
arguments[message]
CF - Ref
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
36. 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
initializers
alloc - singleton - informational utility method?
the array relinquishes ownership of that object and no longer has a pointer to it
37. 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
38. Each class picks one _ as it's designated initializer....
calling code that does the instantiation for you
Model Objects[Factory Worker]
initializer
pointers
39. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
implementation
in the dealloc - or when a Controller's view is 'unloaded'
Data Encapsulation
object
40. Whenever a UINavigationController is about to swap views - it sends out two messages
Is a placeholder object
unordered collection of objects - objects must be unique
selector[message]
viewWillDissapear: and viewWillAppear:
41. Primitives and C Structures...
super - self
lowercase - uppercase
setPossessionName
cannot be added to an array
42. UIImageView is used to...
receiver - selector - arguments
Controller Objects[Managers]
draw images
you always return the newly initialized object(return self)
43. 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.
creating an initializer
view controller
lowercase - uppercase
object
44. Name of the method to be executed
references to objects
selector[message]
Abstraction
unordered collection of objects - objects must be unique
45. In Objective C arrays can hold only...
upper
references to objects
they need to be defined in the implementation file
delegates and dataSources
46. 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
47. 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.
dealloc - is called on the object & the object's memory is returned to the heap
view controller's initialization method
Data Encapsulation
header files declare
48. Hold data and know nothing about the user interface
instance
parentViewController
values
Model Objects[Factory Worker]
49. NSDictionary...
Hash table - Look up objects using a key to get a value.
storage
type - name and value
in the dealloc - or when a Controller's view is 'unloaded'
50. Class methods typically either create
rectangular
parentViewController
the array becomes an owner of that object and has a pointer to it.
new instances of the class or retrieve some global property of the class.