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. 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....
Used to find the time right now or to store past or future time/dates
the array relinquishes ownership of that object and no longer has a pointer to it
selector[message]
define it in the implemenation file
2. 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 _.
subview(s)
parentViewController
position
Object wrapper around primitive types like int - float - double - BOOl
3. Views have three properties related to their location and size: @property _ _;
retain
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
storage
CGRect bounds - GCPoint center - CGRect frame
4. @property declares - and _ implements the setter and getter...
method
@synthesize
Instantiation from scratch
parentViewController
5. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
subview(s)
receiver
viewWillDissapear: and viewWillAppear:
attributes - behavior
6. A view is a subclass of _
UIView
Generic object wrapper for other non-object data types
nil
variable scope - if defined within a block
7. 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
8. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
super - self
instance
Anytime you call a method with new - alloc or copy. You own and must release that object.
lowercase - uppercase
9. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
%d
references to objects
Controller Objects[Managers]
super - self
10. Reducing details to focus on the core concepts
@synthesize
attributes - behavior
to give it someone else - or another object
Abstraction
11. Three ways instances are created...
instance variables
instance
selector[message]
ready-made instances - instantiation from scratch - and nib based instantiation
12. Property List...
dealloc - is called on the object & the object's memory is returned to the heap
collection of collections - NSArray of an NSArray
methods
NSCoder
13. Files Owner...
Is a placeholder object
to give it someone else - or another object
declaration and initialization of a variable
only the innermost loop in which the break is executed is terminated
14. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
message
self
parentViewController
retain
15. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
values
Controller Objects[Managers]
a single-array can contain objects of different types
UIView
16. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
C Functionn
copy - retain
you always return the newly initialized object(return self)
UIView
17. When an NSMutableArray is deallocated - it sends...
Data Encapsulation
the message release to all its entries
unordered collection of objects - objects must be unique
references to objects
18. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
calling code that does the instantiation for you
@interface ClassName:SuperClassName
designated initializer
CGRect
19. How do I implement my drawRect?
super - self
Core Graphics Framework
Ready-Made Instance
in the dealloc - or when a Controller's view is 'unloaded'
20. A UITableView usually needs three different pieces...
Abstraction
data source - delegate and view controller
object
instance variable of an object is valid
21. Delegation is an object oriented approach to
only the innermost loop in which the break is executed is terminated
callbacks
Controller Objects[Managers]
initializer
22. If you have extra work you want to do on the view...
C Functionn
UIView
do so in viewDidLoad
methods
23. If a break statement is executed from within a set of nested loops...
callbacks
implementation
create a XIB file
only the innermost loop in which the break is executed is terminated
24. super - is used...
receiver - selector - arguments
for inheritance - adopting the superclasses implementation
alloc - singleton - informational utility method?
the array becomes an owner of that object and has a pointer to it.
25. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
data source - view controller and delegate
methods for generating an instance
initializers
protocol
26. Proceed through the loop - jump back to the top and check again
protocol
(id)initWithFrame:(CGRect)aRect;
its dataSource
Continue
27. 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
the array becomes an owner of that object and has a pointer to it.
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
NSBundle
28. A message is always contained in square brackets - and has three parts
designated initializer
implementation
values
receiver - selector - arguments
29. Any individual object belonging to any class...
parentViewController
retain
cannot be added to an array
is an instance of that class
30. A _ handles touch events.
view
message
the message release to all its entries
UIViewController
31. Instance Variables by default are called @protected meaning...
data source - delegate and view controller
only the innermost loop in which the break is executed is terminated
only the class and subclasses can access
parentViewController
32. Center and frame are used to _ your view
position
upper
NSCoder
for inheritance - adopting the superclasses implementation
33. Whenever a UINavigationController is about to swap views - it sends out two messages
creating an initializer
a single-array can contain objects of different types
view controller's initialization method
viewWillDissapear: and viewWillAppear:
34. 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
parentViewController
first responder
dealloc - is called on the object & the object's memory is returned to the heap
C Functionn
35. 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
36. UIView - designated initializer...
(id)initWithFrame:(CGRect)aRect;
implementation
Anytime you call a method with new - alloc or copy. You own and must release that object.
draw images
37. A UITableViewController can fill all three roles of...
is called every time the event occurs
creates an instance of NSString that holds the character string
data source - view controller and delegate
they need to be defined in the implementation file
38. After accessors have been defined in the header file...
methods for generating an instance
dealloc - is called on the object & the object's memory is returned to the heap
they need to be defined in the implementation file
Object wrapper around primitive types like int - float - double - BOOl
39. NSArray - class...
upper
is called every time the event occurs
nil
ordered collection of objects - immutable
40. A responder is responsible for...
receiving and handling events that are associated with it
data source - view controller and delegate
variable scope - if defined within a block
'getters' and 'setters'
41. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Anytime you call a method with new - alloc or copy. You own and must release that object.
a single-array can contain objects of different types
Ready-Made Instance
Model Objects[Factory Worker]
42. In Cocoa Touch - the table view asks another object _ what it should display...
%d
callbacks
its dataSource
Continue
43. A pointer to the object being asked to execute a method
receiver[message]
new instances of the class or retrieve some global property of the class.
lowercase - uppercase
you must import the header file of that class
44. When do you take ownership?...
class's
Anytime you call a method with new - alloc or copy. You own and must release that object.
parentViewController
you always return the newly initialized object(return self)
45. UIViewController has several methods that get called at certain times...
Ready-Made Instance
define it in the implemenation file
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
draw images
46. if you implemented both the setter and getter - the @synthesize method...
do so in viewDidLoad
instance variables
has one root view controller
will be ignored
47. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
position
rectangular
class methods - initializers
attributes - behavior
48. Each class picks one _ as it's designated initializer....
initializer
lowercase - uppercase
CGFloat
class
49. Defining variables - three parts...
parentViewController
only the innermost loop in which the break is executed is terminated
viewWillDissapear: and viewWillAppear:
type - name and value
50. Just a floating point number - but we always use it for graphics.
C Functionn
only the class and subclasses can access
the array becomes an owner of that object and has a pointer to it.
CGFloat