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. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
retain
rectangular
initializers
2. When an object is added to a NSMutableArray - that object is sent the message to retain;...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
retain
the array becomes an owner of that object and has a pointer to it.
nil
3. 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.
instance variables
copy - retain
ordered collection of objects - immutable
arguments[message]
4. A collection object - an ordered list of objects that can be accesed by an index
wait until the loop finishes processing the event - at the end release it
array[class - NSMutableArray]
methods
initializers
5. A callback is a function that is supplied in advance of an event - and...
callbacks
object
is called every time the event occurs
header files declare
6. What does autorelease mean?
wait until the loop finishes processing the event - at the end release it
type - name and value
Generic object wrapper for other non-object data types
pointer to an object
7. A message is always contained in square brackets - and has three parts
methods
viewWillDissapear: and viewWillAppear:
an object's property
receiver - selector - arguments
8. Only exists within the statement block there defined - outside of the block is fine
Model Objects[Factory Worker]
retain
variable scope - if defined within a block
Instantiation from scratch
9. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
declaration and initialization of a variable
Controller Objects[Managers]
unordered collection of objects - objects must be unique
alloc - singleton - informational utility method?
10. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
pointer - class
method
you always return the newly initialized object(return self)
super - self
11. A view is a subclass of _
view controller
You take ownership for an object you want to keep a pointer to
UIView
declaration and initialization of a variable
12. NSArray - class...
for inheritance - adopting the superclasses implementation
'getters' and 'setters'
ordered collection of objects - immutable
receiver
13. Files Owner...
Is a placeholder object
first responder
data source - delegate and view controller
to get and set variables
14. In the last line of an init method...
data
is an instance of that class
draw images
you always return the newly initialized object(return self)
15. After accessors have been defined in the header file...
UIViewController
they need to be defined in the implementation file
header files declare
references to objects
16. Also if you send the NSObject the _ message - you own that object.
Object wrapper around primitive types like int - float - double - BOOl
do so in viewDidLoad
designated initializer
retain
17. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
draw images
Hash table - Look up objects using a key to get a value.
receiver
ready-made instances - instantiation from scratch - and nib based instantiation
18. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
Generic object wrapper for other non-object data types
CGRect bounds
lowercase - uppercase
protocol
19. Just a floating point number - but we always use it for graphics.
CGFloat
@synthesize
in the dealloc - or when a Controller's view is 'unloaded'
for inheritance - adopting the superclasses implementation
20. 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
view controller
creating an initializer
to give it someone else - or another object
21. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
subview(s)
CGRect bounds - GCPoint center - CGRect frame
method
22. Typically the designated initializer has parameters for the most important and frequently used _ of an object
ordered collection of objects - immutable
only the class and subclasses can access
instance variables
an object's property
23. Property List...
CGRect bounds
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
collection of collections - NSArray of an NSArray
array[class - NSMutableArray]
24. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
they need to be defined in the implementation file
Data Encapsulation
class methods - initializers
causes the program to immediately exit from the loop it is executing - whether its for - while or do
25. super - is used...
setPossessionName
for inheritance - adopting the superclasses implementation
position
message
26. 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
Controller Objects[Managers]
group of global functions already assigned to this class
Maintenance of state
ordered collection of objects - immutable
27. Delegation is an object oriented approach to
a single-array can contain objects of different types
Core Graphics Framework
@synthesize
callbacks
28. UIImageView is used to...
draw images
calling code that does the instantiation for you
pointers
will be ignored
29. A function in the objective c library that simply displays or logs it's argument
instance of UIView or one of its subclasses
Generic object wrapper for other non-object data types
initializer
NSLog routine
30. A UITableViewController can fill all three roles of...
designated initializer
data source - view controller and delegate
subview(s)
group of global functions already assigned to this class
31. 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
subview(s)
a mechanism to enable specific callbacks
class
NSBundle
32. The integer prefix is...
Ready-Made Instance
will be ignored
%d
only the innermost loop in which the break is executed is terminated
33. UIView - designated initializer...
pointer - class
Encapsulation of functionality
designated initializer
(id)initWithFrame:(CGRect)aRect;
34. A view is an...
instance of UIView or one of its subclasses
view
Controller Objects[Managers]
Ready-Made Instance
35. id is a...
CGFloat
type - name and value
pointer to an object
an object's property
36. You use _ to implement the view
causes the program to immediately exit from the loop it is executing - whether its for - while or do
retain
CF - Ref
CGRect bounds
37. Number one use of protocols in iOS...
safety - subclassability and makes code look more consistent with C structs
size and position
attributes - behavior
delegates and dataSources
38. 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 _.
nil
UIViewController
subview(s)
CGRect
39. 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
40. @property declares - and _ implements the setter and getter...
@synthesize
initializers
collection of collections - NSArray of an NSArray
new instances of the class or retrieve some global property of the class.
41. The notion that the data for an object is stored in it's instance variables and is accessed only by the objects methods. This maintains the integrity of the data.
header files declare
declaration and initialization of a variable
Data Encapsulation
NSLog routine
42. 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
43. The only reason to temporarily own an object - is...
to give it someone else - or another object
nil
designated initializer
unordered collection of objects - objects must be unique
44. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
draw images
first responder
Abstraction
45. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
size and position
C Functionn
group of global functions already assigned to this class
instance variable of an object is valid
46. Use of class methods - there are three...
group of global functions already assigned to this class
Ready-Made Instance
alloc - singleton - informational utility method?
CGFloat
47. In general - class methods tend to be factory methods - that is...
Continue
methods for generating an instance
receiver[message]
declaration and initialization of a variable
48. 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
arguments[message]
message
49. 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 _.
class
pointer - class
CGRect bounds
data source - delegate and view controller
50. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
(id)initWithFrame:(CGRect)aRect;
NSCoder
define it in the implemenation file
CGRect bounds