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. 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
Functions
receiver - selector - arguments
methods for generating an instance
wait until the loop finishes processing the event - at the end release it
2. Class methods typically either create
new instances of the class or retrieve some global property of the class.
instance variable of an object is valid
(id)initWithFrame:(CGRect)aRect;
Abstraction
3. If the view has no subviews - create it programmatically; if it has subviews
in the dealloc - or when a Controller's view is 'unloaded'
has one root view controller
create a XIB file
nil
4. If you have extra work you want to do on the view...
do so in viewDidLoad
super - self
type - name and value
creating an initializer
5. 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
6. Prefixing a character string with an @ symbol [specific - NSString class]...
methods for generating an instance
creates an instance of NSString that holds the character string
view
UIViewController
7. All objects are accessed using...
data
pointers
NSBundle
collection of collections - NSArray of an NSArray
8. The designated initializer calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
9. A callback is a function that is supplied in advance of an event - and...
its dataSource
Continue
is called every time the event occurs
superclass's
10. Origin of a view's coordinate system is _ left
upper
define it in the implemenation file
receiving and handling events that are associated with it
a mechanism to enable specific callbacks
11. When an NSMutableArray is deallocated - it sends...
class's
selector[message]
variable scope - if defined within a block
the message release to all its entries
12. Three ways instances are created...
first responder
group of global functions already assigned to this class
ready-made instances - instantiation from scratch - and nib based instantiation
protocol
13. 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
14. Reference Counting...
ready-made instances - instantiation from scratch - and nib based instantiation
You take ownership for an object you want to keep a pointer to
has one root view controller
super - self
15. Typically the designated initializer has parameters for the most important and frequently used _ of an object
Ready-Made Instance
instance variables
object
creating an initializer
16. To load a Xib file manually - you use _
has one root view controller
type - name and value
NSBundle
protocol
17. Designated initializer makes sure that every...
instance variable of an object is valid
define it in the implemenation file
@synthesize
C Functionn
18. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
Data Encapsulation
Is a placeholder object
group of global functions already assigned to this class
19. @property - is using methods...
its dataSource
to get and set variables
CGRect bounds - GCPoint center - CGRect frame
ready-made instances - instantiation from scratch - and nib based instantiation
20. Asking a class or object to execute a method
CGFloat
message
class's
UIView
21. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
you always return the newly initialized object(return self)
pointer - class
Continue
22. Hold data and know nothing about the user interface
Model Objects[Factory Worker]
class
receiver - selector - arguments
only the class and subclasses can access
23. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
NSCoder
CF - Ref
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
super - self
24. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
CGRect
setPossessionName
references to objects
alloc - singleton - informational utility method?
25. After accessors have been defined in the header file...
to give it someone else - or another object
subview(s)
values
they need to be defined in the implementation file
26. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
header files declare
wait until the loop finishes processing the event - at the end release it
the array becomes an owner of that object and has a pointer to it.
size and position
27. UIViewController has several methods that get called at certain times...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
receiver[message]
Used to find the time right now or to store past or future time/dates
object
28. Primitives and C Structures...
ordered collection of objects - immutable
new instances of the class or retrieve some global property of the class.
cannot be added to an array
in the dealloc - or when a Controller's view is 'unloaded'
29. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
Model Objects[Factory Worker]
class methods - initializers
NSLog routine
selector[message]
30. initWithFrame: the designated initializer for UIView gives the view
Used to find the time right now or to store past or future time/dates
Maintenance of state
size and position
attributes - behavior
31. The integer prefix is...
receiver
an object's property
the message release to all its entries
%d
32. Class methods do not operate on an _ or have any access to _ variables....
Ready-Made Instance
NSLog routine
instance
@interface ClassName:SuperClassName
33. Defining variables - three parts...
size and position
type - name and value
data source - view controller and delegate
protocol
34. 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
an object's property
CGRect
size and position
35. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
instance variables
message
initializers
Generic object wrapper for other non-object data types
36. What happens when the last owner calls release?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
37. Only exists within the statement block there defined - outside of the block is fine
pointers
variable scope - if defined within a block
only the class and subclasses can access
size and position
38. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
the array becomes an owner of that object and has a pointer to it.
Controller Objects[Managers]
view
the instance variables
39. Just a floating point number - but we always use it for graphics.
%d
protocol
Object wrapper around primitive types like int - float - double - BOOl
CGFloat
40. NSValue - class...
Generic object wrapper for other non-object data types
you must import the header file of that class
wait until the loop finishes processing the event - at the end release it
instance variables
41. Whenever a UINavigationController is about to swap views - it sends out two messages
viewWillDissapear: and viewWillAppear:
data source - view controller and delegate
superclass's
position
42. Each _ has a 'designated' initializer method....
class
references to objects
creating an initializer
Continue
43. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
@synthesize
setPossessionName
Instantiation from scratch
you must import the header file of that class
44. 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
45. 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
data source - view controller and delegate
viewWillDissapear: and viewWillAppear:
setPossessionName
parentViewController
46. 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
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Encapsulation of functionality
instance variable of an object is valid
instance
47. When do you take ownership?...
Anytime you call a method with new - alloc or copy. You own and must release that object.
object
to get and set variables
Object wrapper around primitive types like int - float - double - BOOl
48. Also if you send the NSObject the _ message - you own that object.
Data Encapsulation
Generic object wrapper for other non-object data types
the array relinquishes ownership of that object and no longer has a pointer to it
retain
49. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
receiver
for inheritance - adopting the superclasses implementation
retain
NSLog routine
50. Instance Variables by default are called @protected meaning...
You take ownership for an object you want to keep a pointer to
only the class and subclasses can access
type - name and value
instance variable of an object is valid