SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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. Only exists within the statement block there defined - outside of the block is fine
a mechanism to enable specific callbacks
type - name and value
variable scope - if defined within a block
viewWillDissapear: and viewWillAppear:
2. NSArray - important methods...
class's
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
pointer - class
they need to be defined in the implementation file
3. Each object does its own job - and presents to the rest of the world - to other objects - and indeed in a sense to the programmer - an opaque wall whose only entrances are the methods to which it promises to respond and the actions it promises to per
Encapsulation of functionality
wait until the loop finishes processing the event - at the end release it
CGRect
size and position
4. 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.
first responder
selector[message]
ordered collection of objects - immutable
size and position
5. Number one use of protocols in iOS...
Hash table - Look up objects using a key to get a value.
Used to find the time right now or to store past or future time/dates
delegates and dataSources
instance variables
6. UIViewController has several methods that get called at certain times...
you always return the newly initialized object(return self)
Abstraction
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
data
7. At the top of any implementation file...
CGRect bounds - GCPoint center - CGRect frame
ordered collection of objects - immutable
you must import the header file of that class
first responder
8. You use _ to implement the view
CGRect bounds
declaration and initialization of a variable
references to objects
nil
9. @property - is using methods...
CGFloat
do so in viewDidLoad
to give it someone else - or another object
to get and set variables
10. In object oriented languages - we call methods that get and set instance variables
11. A _ handles touch events.
array[class - NSMutableArray]
instance of UIView or one of its subclasses
an object's property
view
12. NSDate - class...
Used to find the time right now or to store past or future time/dates
CGFloat
create a XIB file
view controller
13. Designated initializer makes sure that every...
initializers
variable scope - if defined within a block
instance variable of an object is valid
NSLog routine
14. Core foundation classes are prefixed with _ and suffixed with _
upper
they need to be defined in the implementation file
in the dealloc - or when a Controller's view is 'unloaded'
CF - Ref
15. Center and frame are used to _ your view
is called every time the event occurs
the array becomes an owner of that object and has a pointer to it.
position
the instance variables
16. Also if you send the NSObject the _ message - you own that object.
Maintenance of state
retain
header files declare
methods
17. 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....
message
NSLog routine
define it in the implemenation file
instance
18. NSDictionary...
to get and set variables
for inheritance - adopting the superclasses implementation
Hash table - Look up objects using a key to get a value.
to give it someone else - or another object
19. In the last line of an init method...
methods
CGRect bounds - GCPoint center - CGRect frame
you always return the newly initialized object(return self)
@interface ClassName:SuperClassName
20. NSString objects are usually sent _ rather than _...
they need to be defined in the implementation file
parentViewController
copy - retain
alloc - singleton - informational utility method?
21. A UITableViewController can fill all three roles of...
protocol
CGRect bounds - GCPoint center - CGRect frame
to give it someone else - or another object
data source - view controller and delegate
22. Views have three properties related to their location and size: @property _ _;
creating an initializer
CGRect bounds - GCPoint center - CGRect frame
designated initializer
methods for generating an instance
23. Primitives and C Structures...
Abstraction
data
cannot be added to an array
dealloc - is called on the object & the object's memory is returned to the heap
24. If a break statement is executed from within a set of nested loops...
do so in viewDidLoad
only the innermost loop in which the break is executed is terminated
Functions
has one root view controller
25. class methods...
copy - retain
ready-made instances - instantiation from scratch - and nib based instantiation
position
group of global functions already assigned to this class
26. Reducing details to focus on the core concepts
is called every time the event occurs
first responder
Abstraction
cannot be added to an array
27. Proceed through the loop - jump back to the top and check again
draw images
Continue
accessors - individually we call them 'getters' and 'setters'
Model Objects[Factory Worker]
28. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
will be ignored
Instantiation from scratch
subview(s)
in the dealloc - or when a Controller's view is 'unloaded'
29. Whenever a UINavigationController is about to swap views - it sends out two messages
define it in the implemenation file
viewWillDissapear: and viewWillAppear:
causes the program to immediately exit from the loop it is executing - whether its for - while or do
alloc - singleton - informational utility method?
30. When an NSMutableArray is deallocated - it sends...
subview(s)
pointer - class
Functions
the message release to all its entries
31. Prefixing a character string with an @ symbol [specific - NSString class]...
references to objects
creates an instance of NSString that holds the character string
you always return the newly initialized object(return self)
CGFloat
32. Class methods do not operate on an _ or have any access to _ variables....
the instance variables
instance
first responder
size and position
33. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...
34. 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 _.
class
protocol
nil
instance
35. Delegation is an object oriented approach to
Encapsulation of functionality
position
@synthesize
callbacks
36. Reference Counting...
the array becomes an owner of that object and has a pointer to it.
methods
Maintenance of state
You take ownership for an object you want to keep a pointer to
37. What does autorelease mean?
Functions
method
CGRect bounds - GCPoint center - CGRect frame
wait until the loop finishes processing the event - at the end release it
38. NSValue - class...
CGRect
do so in viewDidLoad
header files declare
Generic object wrapper for other non-object data types
39. Categories are an Objective C way to add _ to an existing class without subclassing
upper
methods
parentViewController
to give it someone else - or another object
40. All objects are accessed using...
position
pointers
NSBundle
only the class and subclasses can access
41. Also - because arrays only hold a pointer to an object...
accessors - individually we call them 'getters' and 'setters'
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
a single-array can contain objects of different types
Continue
42. Each individual instance is a bundle of data that it maintains. Typically that data is private - which means that it's encapsulated as well; no other object knows what that data is or in what form it is kept. The only way to discover from outside wha
safety - subclassability and makes code look more consistent with C structs
Maintenance of state
callbacks
is an instance of that class
43. Just a floating point number - but we always use it for graphics.
object
group of global functions already assigned to this class
Data Encapsulation
CGFloat
44. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
only the innermost loop in which the break is executed is terminated
references to objects
lowercase - uppercase
has one root view controller
45. 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
instance of UIView or one of its subclasses
has one root view controller
initializer
46. To load a Xib file manually - you use _
Ready-Made Instance
Controller Objects[Managers]
NSBundle
UIView
47. A view represents a _ area
values
nil
rectangular
position
48. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
the array becomes an owner of that object and has a pointer to it.
receiver
setPossessionName
instance
49. The designated initializer calls the _ designated initializer....
50. Name of the method to be executed
arguments[message]
selector[message]
header files declare
super - self