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. 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...
to get and set variables
setPossessionName
is an instance of that class
calling code that does the instantiation for you
2. Instance Variables by default are called @protected meaning...
only the class and subclasses can access
method
view controller
has one root view controller
3. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
You take ownership for an object you want to keep a pointer to
calling code that does the instantiation for you
a mechanism to enable specific callbacks
4. Any other initializer a class has calls the _ designated initializer....
5. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
receiver - selector - arguments
is called every time the event occurs
Abstraction
C Functionn
6. Three ways instances are created...
has one root view controller
ready-made instances - instantiation from scratch - and nib based instantiation
is an instance of that class
Continue
7. super - is used...
values
for inheritance - adopting the superclasses implementation
instance variable of an object is valid
attributes - behavior
8. 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 _.
ordered collection of objects - immutable
pointer - class
data source - delegate and view controller
implementation
9. Number one use of protocols in iOS...
callbacks
has one root view controller
methods
delegates and dataSources
10. Asking a class or object to execute a method
position
message
methods for generating an instance
Used to find the time right now or to store past or future time/dates
11. UIView - designated initializer...
type - name and value
attributes - behavior
'getters' and 'setters'
(id)initWithFrame:(CGRect)aRect;
12. If the view has no subviews - create it programmatically; if it has subviews
its dataSource
create a XIB file
values
group of global functions already assigned to this class
13. NSDate - class...
you must import the header file of that class
pointer to an object
the array becomes an owner of that object and has a pointer to it.
Used to find the time right now or to store past or future time/dates
14. Class methods typically either create
@interface ClassName:SuperClassName
lowercase - uppercase
new instances of the class or retrieve some global property of the class.
calling code that does the instantiation for you
15. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
view controller
%d
header files declare
16. A collection object - an ordered list of objects that can be accesed by an index
is an instance of that class
Anytime you call a method with new - alloc or copy. You own and must release that object.
instance variable of an object is valid
array[class - NSMutableArray]
17. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
you must import the header file of that class
UIView
initializers
creating an initializer
18. Class methods do not operate on an _ or have any access to _ variables....
a mechanism to enable specific callbacks
selector[message]
retain
instance
19. Each _ has a 'designated' initializer method....
message
type - name and value
class
header files declare
20. Values to be supplied as the parameters to the method
arguments[message]
class's
ordered collection of objects - immutable
group of global functions already assigned to this class
21. id is a...
Ready-Made Instance
pointer to an object
to get and set variables
is called every time the event occurs
22. NSArray - important methods...
%d
wait until the loop finishes processing the event - at the end release it
is an instance of that class
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
23. Never access a view controller's view in that...
24. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
nil
protocol
object
you always return the newly initialized object(return self)
25. UITableViewController is a subclass of...
UIViewController
Ready-Made Instance
to get and set variables
rectangular
26. 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.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
references to objects
pointer to an object
implementation
27. NSString objects are usually sent _ rather than _...
NSBundle
NSCoder
copy - retain
instance variable of an object is valid
28. 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
object
size and position
Ready-Made Instance
29. Property List...
do so in viewDidLoad
collection of collections - NSArray of an NSArray
Continue
to get and set variables
30. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...
31. 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
receiver
values
data source - view controller and delegate
Functions
32. Defining variables - three parts...
data
methods
type - name and value
variable scope - if defined within a block
33. Whenever a UINavigationController is about to swap views - it sends out two messages
CGFloat
CGRect bounds - GCPoint center - CGRect frame
%d
viewWillDissapear: and viewWillAppear:
34. What happens when the last owner calls release?
35. When the message endEditing: is sent to a view - if it or any of its subviews or currently the _ - it will resign its first responder statues - and the keyboard will be dismissed.
Instantiation from scratch
will be ignored
CGRect
first responder
36. NSSet...
@interface ClassName:SuperClassName
unordered collection of objects - objects must be unique
parentViewController
accessors - individually we call them 'getters' and 'setters'
37. After accessors have been defined in the header file...
references to objects
they need to be defined in the implementation file
CGRect
%d
38. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
define it in the implemenation file
self
Ready-Made Instance
class
39. When making a tableView always...
reuse your cells
pointer to an object
header files declare
super - self
40. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
nil
retain
pointers
41. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
causes the program to immediately exit from the loop it is executing - whether its for - while or do
receiver[message]
upper
receiver
42. 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
lowercase - uppercase
Instantiation from scratch
receiving and handling events that are associated with it
43. Categories are an Objective C way to add _ to an existing class without subclassing
to give it someone else - or another object
methods
protocol
superclass's
44. Origin of a view's coordinate system is _ left
designated initializer
C Functionn
upper
copy - retain
45. class methods...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
CGRect bounds - GCPoint center - CGRect frame
NSLog routine
group of global functions already assigned to this class
46. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
delegates and dataSources
UIViewController
Instantiation from scratch
retain
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.
Data Encapsulation
NSCoder
causes the program to immediately exit from the loop it is executing - whether its for - while or do
collection of collections - NSArray of an NSArray
48. UIImageView is used to...
to get and set variables
rectangular
for inheritance - adopting the superclasses implementation
draw images
49. Reducing details to focus on the core concepts
to give it someone else - or another object
Instantiation from scratch
Abstraction
@synthesize
50. When do we need to release our outlets?