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. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
an object's property
lowercase - uppercase
CGRect bounds
create a XIB file
2. Reference Counting...
group of global functions already assigned to this class
You take ownership for an object you want to keep a pointer to
@synthesize
creating an initializer
3. class methods...
group of global functions already assigned to this class
callbacks
variable scope - if defined within a block
self
4. NSNumber - class...
for inheritance - adopting the superclasses implementation
Object wrapper around primitive types like int - float - double - BOOl
(id)initWithFrame:(CGRect)aRect;
class's
5. Any individual object belonging to any class...
is an instance of that class
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
a single-array can contain objects of different types
data source - delegate and view controller
6. Also if you send the NSObject the _ message - you own that object.
retain
will be ignored
has one root view controller
causes the program to immediately exit from the loop it is executing - whether its for - while or do
7. At the top of any implementation file...
you must import the header file of that class
methods for generating an instance
callbacks
first responder
8. When an object is added to a NSMutableArray - that object is sent the message to retain;...
first responder
the message release to all its entries
the array becomes an owner of that object and has a pointer to it.
the instance variables
9. Values to be supplied as the parameters to the method
arguments[message]
Maintenance of state
object
Instantiation from scratch
10. It's class is sent the message alloc - which creates an instance of that class and returns a pointer to it - and then that instance is sent the message init - which gives its instance variables initial values.
creating an initializer
You take ownership for an object you want to keep a pointer to
unordered collection of objects - objects must be unique
Encapsulation of functionality
11. 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
Maintenance of state
position
its dataSource
unordered collection of objects - objects must be unique
12. A collection object - an ordered list of objects that can be accesed by an index
Data Encapsulation
CGFloat
array[class - NSMutableArray]
callbacks
13. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
ready-made instances - instantiation from scratch - and nib based instantiation
object
data source - delegate and view controller
CGRect bounds - GCPoint center - CGRect frame
14. 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
15. A pointer to the object being asked to execute a method
receiver[message]
the array becomes an owner of that object and has a pointer to it.
Abstraction
superclass's
16. 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 _.
do so in viewDidLoad
ordered collection of objects - immutable
subview(s)
callbacks
17. Number one use of protocols in iOS...
NSCoder
delegates and dataSources
CF - Ref
selector[message]
18. Prefixing a character string with an @ symbol [specific - NSString class]...
receiving and handling events that are associated with it
initializer
creates an instance of NSString that holds the character string
a single-array can contain objects of different types
19. 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
20. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Encapsulation of functionality
(id)initWithFrame:(CGRect)aRect;
Ready-Made Instance
super - self
21. 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
to give it someone else - or another object
NSCoder
the message release to all its entries
22. A delegate is a pointer to an object with a set of methods the delegate-holder knows how to call. In other words - it's _ from a later created object
type - name and value
dealloc - is called on the object & the object's memory is returned to the heap
delegates and dataSources
a mechanism to enable specific callbacks
23. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
Hash table - Look up objects using a key to get a value.
accessors - individually we call them 'getters' and 'setters'
rectangular
24. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
retain
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
its dataSource
Instantiation from scratch
25. A UITableView usually needs three different pieces...
Functions
pointer - class
data source - delegate and view controller
receiver - selector - arguments
26. 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
27. You use _ to implement the view
copy - retain
data source - delegate and view controller
CGRect bounds
instance of UIView or one of its subclasses
28. 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
29. NSDate - class...
upper
designated initializer
You take ownership for an object you want to keep a pointer to
Used to find the time right now or to store past or future time/dates
30. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
the message release to all its entries
receiver - selector - arguments
view controller
31. When do you take ownership?...
array[class - NSMutableArray]
Anytime you call a method with new - alloc or copy. You own and must release that object.
position
a single-array can contain objects of different types
32. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
Hash table - Look up objects using a key to get a value.
super - self
you always return the newly initialized object(return self)
@synthesize
33. 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 _.
the instance variables
pointer - class
wait until the loop finishes processing the event - at the end release it
instance variable of an object is valid
34. A view is a subclass of _
attributes - behavior
you must import the header file of that class
UIView
define it in the implemenation file
35. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
creating an initializer
NSBundle
the instance variables
C Functionn
36. A function in the objective c library that simply displays or logs it's argument
subview(s)
you must import the header file of that class
NSLog routine
only the innermost loop in which the break is executed is terminated
37. Delegation is an object oriented approach to
create a XIB file
callbacks
viewWillDissapear: and viewWillAppear:
@synthesize
38. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
NSCoder
Maintenance of state
variable scope - if defined within a block
instance
39. NSValue - class...
object
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Generic object wrapper for other non-object data types
instance variables
40. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
arguments[message]
initializers
attributes - behavior
the instance variables
41. How do I implement my drawRect?
Model Objects[Factory Worker]
Continue
Encapsulation of functionality
Core Graphics Framework
42. NSArray - class...
to give it someone else - or another object
first responder
storage
ordered collection of objects - immutable
43. Origin of a view's coordinate system is _ left
upper
Maintenance of state
NSLog routine
Ready-Made Instance
44. id is a...
pointer to an object
the instance variables
view
instance variables
45. 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
array[class - NSMutableArray]
storage
references to objects
46. UIView - designated initializer...
data
(id)initWithFrame:(CGRect)aRect;
methods for generating an instance
the array relinquishes ownership of that object and no longer has a pointer to it
47. Just a floating point number - but we always use it for graphics.
pointer to an object
an object's property
@synthesize
CGFloat
48. The integer prefix is...
%d
receiving and handling events that are associated with it
receiver[message]
C Functionn
49. Whenever a UINavigationController is about to swap views - it sends out two messages
Used to find the time right now or to store past or future time/dates
class
wait until the loop finishes processing the event - at the end release it
viewWillDissapear: and viewWillAppear:
50. Asking a class or object to execute a method
message
CGRect bounds
Object wrapper around primitive types like int - float - double - BOOl
view controller's initialization method