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 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
2. Reference Counting...
instance
You take ownership for an object you want to keep a pointer to
NSCoder
size and position
3. Designated initializer makes sure that every...
class
group of global functions already assigned to this class
in the dealloc - or when a Controller's view is 'unloaded'
instance variable of an object is valid
4. NSSet...
unordered collection of objects - objects must be unique
size and position
lowercase - uppercase
references to objects
5. When making a tableView always...
cannot be added to an array
reuse your cells
Abstraction
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
6. If the view has no subviews - create it programmatically; if it has subviews
position
create a XIB file
accessors - individually we call them 'getters' and 'setters'
collection of collections - NSArray of an NSArray
7. In Objective C arrays can hold only...
references to objects
first responder
class methods - initializers
reuse your cells
8. Use of class methods - there are three...
the array relinquishes ownership of that object and no longer has a pointer to it
lowercase - uppercase
alloc - singleton - informational utility method?
view controller
9. A function in the objective c library that simply displays or logs it's argument
NSLog routine
self
data source - view controller and delegate
CGFloat
10. Core foundation classes are prefixed with _ and suffixed with _
safety - subclassability and makes code look more consistent with C structs
declaration and initialization of a variable
is an instance of that class
CF - Ref
11. Proceed through the loop - jump back to the top and check again
NSCoder
Continue
NSLog routine
data
12. Just a floating point number - but we always use it for graphics.
subview(s)
is an instance of that class
the message release to all its entries
CGFloat
13. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
create a XIB file
receiver
for inheritance - adopting the superclasses implementation
Generic object wrapper for other non-object data types
14. Defining variables - three parts...
type - name and value
to get and set variables
calling code that does the instantiation for you
NSLog routine
15. A pointer to the object being asked to execute a method
receiver[message]
instance of UIView or one of its subclasses
copy - retain
do so in viewDidLoad
16. NSDictionary...
data
viewWillDissapear: and viewWillAppear:
Hash table - Look up objects using a key to get a value.
define it in the implemenation file
17. 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
view controller
Is a placeholder object
Maintenance of state
instance variable of an object is valid
18. Hold data and know nothing about the user interface
data source - view controller and delegate
Model Objects[Factory Worker]
dealloc - is called on the object & the object's memory is returned to the heap
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
19. A view is an...
instance of UIView or one of its subclasses
lowercase - uppercase
instance variable of an object is valid
initializer
20. A collection object - an ordered list of objects that can be accesed by an index
is called every time the event occurs
array[class - NSMutableArray]
has one root view controller
NSLog routine
21. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
Used to find the time right now or to store past or future time/dates
CGRect
Core Graphics Framework
nil
22. Class methods typically either create
to give it someone else - or another object
they need to be defined in the implementation file
you must import the header file of that class
new instances of the class or retrieve some global property of the class.
23. id is a...
pointer - class
pointer to an object
creates an instance of NSString that holds the character string
data source - view controller and delegate
24. A command directed to an object is called an...
message
draw images
wait until the loop finishes processing the event - at the end release it
class
25. All objects are accessed using...
pointers
pointer - class
(id)initWithFrame:(CGRect)aRect;
self
26. Whenever a UINavigationController is about to swap views - it sends out two messages
CGRect
viewWillDissapear: and viewWillAppear:
Hash table - Look up objects using a key to get a value.
Encapsulation of functionality
27. Classes describe two things...
CGRect bounds
data
object
attributes - behavior
28. NSArray - important methods...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
in the dealloc - or when a Controller's view is 'unloaded'
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
calling code that does the instantiation for you
29. 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 _.
do so in viewDidLoad
subview(s)
pointer - class
methods for generating an instance
30. 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 _.
arguments[message]
for inheritance - adopting the superclasses implementation
self
nil
31. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
object
is an instance of that class
receiver[message]
initializer
32. You use _ to implement the view
is an instance of that class
Hash table - Look up objects using a key to get a value.
CGRect bounds
Controller Objects[Managers]
33. A view is a subclass of _
UIView
data source - view controller and delegate
receiver
Hash table - Look up objects using a key to get a value.
34. Prefixing a character string with an @ symbol [specific - NSString class]...
creates an instance of NSString that holds the character string
only the class and subclasses can access
initializer
NSBundle
35. 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
36. When an NSMutableArray is deallocated - it sends...
in the dealloc - or when a Controller's view is 'unloaded'
the message release to all its entries
references to objects
instance variables
37. 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
Used to find the time right now or to store past or future time/dates
view
38. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
class's
define it in the implemenation file
CGRect bounds
39. 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
viewWillDissapear: and viewWillAppear:
parentViewController
to give it someone else - or another object
@synthesize
40. @property - is using methods...
the instance variables
NSLog routine
to get and set variables
you always return the newly initialized object(return self)
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. NSValue - class...
wait until the loop finishes processing the event - at the end release it
Generic object wrapper for other non-object data types
message
to give it someone else - or another object
43. 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
Object wrapper around primitive types like int - float - double - BOOl
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Encapsulation of functionality
a mechanism to enable specific callbacks
44. To load a Xib file manually - you use _
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
data
NSBundle
setPossessionName
45. 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.
data source - view controller and delegate
UIViewController
implementation
the array becomes an owner of that object and has a pointer to it.
46. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
creating an initializer
methods for generating an instance
first responder
initializers
47. Reducing details to focus on the core concepts
UIView
its dataSource
'getters' and 'setters'
Abstraction
48. 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
49. Typically the designated initializer has parameters for the most important and frequently used _ of an object
copy - retain
new instances of the class or retrieve some global property of the class.
instance variables
pointer - class
50. UIViewController has several methods that get called at certain times...
dealloc - is called on the object & the object's memory is returned to the heap
view
Is a placeholder object
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear