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 arrays can hold only...
references to objects
ready-made instances - instantiation from scratch - and nib based instantiation
view controller
delegates and dataSources
2. A view is an...
instance of UIView or one of its subclasses
a mechanism to enable specific callbacks
to get and set variables
Functions
3. The only reason to temporarily own an object - is...
variable scope - if defined within a block
class methods - initializers
to give it someone else - or another object
Is a placeholder object
4. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
5. Each _ has a 'designated' initializer method....
UIViewController
C Functionn
class
safety - subclassability and makes code look more consistent with C structs
6. If you have extra work you want to do on the view...
receiving and handling events that are associated with it
do so in viewDidLoad
Abstraction
instance variable of an object is valid
7. Class methods do not operate on an _ or have any access to _ variables....
copy - retain
instance
type - name and value
designated initializer
8. At the top of any implementation file...
its dataSource
define it in the implemenation file
you must import the header file of that class
new instances of the class or retrieve some global property of the class.
9. 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
10. How do I implement my drawRect?
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Core Graphics Framework
class
Instantiation from scratch
11. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
to get and set variables
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
class methods - initializers
protocol
12. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
data
cannot be added to an array
Instantiation from scratch
13. In a class method you cannot access...
unordered collection of objects - objects must be unique
the instance variables
delegates and dataSources
safety - subclassability and makes code look more consistent with C structs
14. 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
they need to be defined in the implementation file
parentViewController
superclass's
Hash table - Look up objects using a key to get a value.
15. NSNumber - class...
new instances of the class or retrieve some global property of the class.
Object wrapper around primitive types like int - float - double - BOOl
methods for generating an instance
do so in viewDidLoad
16. Object Oriented based analogue to a function is called a...
CGRect bounds - GCPoint center - CGRect frame
method
will be ignored
UIView
17. Reference Counting...
You take ownership for an object you want to keep a pointer to
references to objects
the array relinquishes ownership of that object and no longer has a pointer to it
group of global functions already assigned to this class
18. NSString *s = @'Hello - World'; is an example of...
Ready-Made Instance
declaration and initialization of a variable
pointer to an object
only the class and subclasses can access
19. All objects are accessed using...
alloc - singleton - informational utility method?
pointers
is an instance of that class
calling code that does the instantiation for you
20. NSArray - class...
ordered collection of objects - immutable
nil
CGFloat
arguments[message]
21. 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
22. 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.
superclass's
references to objects
creates an instance of NSString that holds the character string
instance variables
23. Execution of the break statement...
data source - view controller and delegate
causes the program to immediately exit from the loop it is executing - whether its for - while or do
they need to be defined in the implementation file
calling code that does the instantiation for you
24. If the view has no subviews - create it programmatically; if it has subviews
instance of UIView or one of its subclasses
create a XIB file
retain
self
25. @property declares - and _ implements the setter and getter...
selector[message]
setPossessionName
@synthesize
new instances of the class or retrieve some global property of the class.
26. Why properties?
UIViewController
safety - subclassability and makes code look more consistent with C structs
create a XIB file
Object wrapper around primitive types like int - float - double - BOOl
27. When an object is added to a NSMutableArray - that object is sent the message to retain;...
the array becomes an owner of that object and has a pointer to it.
calling code that does the instantiation for you
methods
collection of collections - NSArray of an NSArray
28. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
attributes - behavior
instance variables
29. Reducing details to focus on the core concepts
the instance variables
they need to be defined in the implementation file
Abstraction
the array relinquishes ownership of that object and no longer has a pointer to it
30. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
superclass's
Instantiation from scratch
array[class - NSMutableArray]
31. 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
32. In Cocoa Touch - the table view asks another object _ what it should display...
its dataSource
Model Objects[Factory Worker]
in the dealloc - or when a Controller's view is 'unloaded'
header files declare
33. if you implemented both the setter and getter - the @synthesize method...
methods for generating an instance
will be ignored
draw images
rectangular
34. To load a Xib file manually - you use _
view
data source - view controller and delegate
NSBundle
pointers
35. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
receiver
group of global functions already assigned to this class
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
CGRect bounds
36. A view represents a _ area
define it in the implemenation file
rectangular
Object wrapper around primitive types like int - float - double - BOOl
data source - view controller and delegate
37. super - is used...
(id)initWithFrame:(CGRect)aRect;
for inheritance - adopting the superclasses implementation
you must import the header file of that class
causes the program to immediately exit from the loop it is executing - whether its for - while or do
38. In general - class methods tend to be factory methods - that is...
retain
methods for generating an instance
protocol
nil
39. UIView - designated initializer...
receiver
callbacks
(id)initWithFrame:(CGRect)aRect;
rectangular
40. Values to be supplied as the parameters to the method
Data Encapsulation
arguments[message]
Continue
receiver[message]
41. 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
42. 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
43. The root view controller typically creates the next view controller - and the next _ creates the one after that
dealloc - is called on the object & the object's memory is returned to the heap
the message release to all its entries
view controller
(id)initWithFrame:(CGRect)aRect;
44. Defining variables - three parts...
CF - Ref
type - name and value
parentViewController
receiving and handling events that are associated with it
45. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
the array becomes an owner of that object and has a pointer to it.
Functions
class methods - initializers
46. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
to give it someone else - or another object
parentViewController
@synthesize
47. NSDate - class...
class
Used to find the time right now or to store past or future time/dates
is called every time the event occurs
NSCoder
48. Proceed through the loop - jump back to the top and check again
NSLog routine
Continue
view
data
49. Views have three properties related to their location and size: @property _ _;
implementation
CGRect bounds - GCPoint center - CGRect frame
safety - subclassability and makes code look more consistent with C structs
is called every time the event occurs
50. Categories are an Objective C way to add _ to an existing class without subclassing
methods
receiver[message]
callbacks
NSBundle