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 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 _.
arguments[message]
subview(s)
NSBundle
creating an initializer
2. What does autorelease mean?
an object's property
wait until the loop finishes processing the event - at the end release it
new instances of the class or retrieve some global property of the class.
for inheritance - adopting the superclasses implementation
3. 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.
implementation
subview(s)
the array relinquishes ownership of that object and no longer has a pointer to it
Hash table - Look up objects using a key to get a value.
4. 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.
Controller Objects[Managers]
ordered collection of objects - immutable
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
instance variables
5. Views have three properties related to their location and size: @property _ _;
CGRect bounds
initializers
group of global functions already assigned to this class
CGRect bounds - GCPoint center - CGRect frame
6. In any application with UINavigationController - the navigation controller...
class
create a XIB file
has one root view controller
Maintenance of state
7. initWithFrame: the designated initializer for UIView gives the view
rectangular
ready-made instances - instantiation from scratch - and nib based instantiation
message
size and position
8. Origin of a view's coordinate system is _ left
pointer to an object
a single-array can contain objects of different types
upper
the array relinquishes ownership of that object and no longer has a pointer to it
9. At the top of any implementation file...
you must import the header file of that class
selector[message]
create a XIB file
Hash table - Look up objects using a key to get a value.
10. 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 _.
instance variable of an object is valid
nil
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
self
11. Execution of the break statement...
wait until the loop finishes processing the event - at the end release it
causes the program to immediately exit from the loop it is executing - whether its for - while or do
UIViewController
type - name and value
12. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
data source - delegate and view controller
unordered collection of objects - objects must be unique
Hash table - Look up objects using a key to get a value.
class methods - initializers
13. @property declares - and _ implements the setter and getter...
message
create a XIB file
rectangular
@synthesize
14. UIViewController has several methods that get called at certain times...
ordered collection of objects - immutable
group of global functions already assigned to this class
Functions
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
15. A pointer to the object being asked to execute a method
view controller
CF - Ref
receiver[message]
ordered collection of objects - immutable
16. NSArray - important methods...
ready-made instances - instantiation from scratch - and nib based instantiation
new instances of the class or retrieve some global property of the class.
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
creates an instance of NSString that holds the character string
17. Any individual object belonging to any class...
is an instance of that class
arguments[message]
method
NSLog routine
18. 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.
Data Encapsulation
NSCoder
alloc - singleton - informational utility method?
view controller
19. The root view controller typically creates the next view controller - and the next _ creates the one after that
view controller
size and position
Ready-Made Instance
header files declare
20. 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
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
creating an initializer
will be ignored
Functions
21. Also - because arrays only hold a pointer to an object...
cannot be added to an array
draw images
initializer
a single-array can contain objects of different types
22. A view is an...
values
the message release to all its entries
instance variables
instance of UIView or one of its subclasses
23. id is a...
message
delegates and dataSources
pointer to an object
class's
24. Values to be supplied as the parameters to the method
protocol
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
arguments[message]
CGRect
25. Files Owner...
the instance variables
Is a placeholder object
pointers
CGRect bounds - GCPoint center - CGRect frame
26. If a break statement is executed from within a set of nested loops...
view controller
class
only the innermost loop in which the break is executed is terminated
data source - view controller and delegate
27. A function in the objective c library that simply displays or logs it's argument
retain
NSLog routine
array[class - NSMutableArray]
setPossessionName
28. Class methods typically either create
do so in viewDidLoad
rectangular
instance variable of an object is valid
new instances of the class or retrieve some global property of the class.
29. The class is responsible for what instance variables the instance has - but not the _ of those variables.
instance of UIView or one of its subclasses
values
(id)initWithFrame:(CGRect)aRect;
viewWillDissapear: and viewWillAppear:
30. A UITableViewController can fill all three roles of...
draw images
position
data source - view controller and delegate
retain
31. 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
32. How do I implement my drawRect?
the message release to all its entries
CGFloat
to give it someone else - or another object
Core Graphics Framework
33. In Objective C - the name of a setter method is set plus the name of the instance variable it is changing - for example PossessionName would be...
setPossessionName
protocol
delegates and dataSources
only the class and subclasses can access
34. When making a tableView always...
UIView
reuse your cells
callbacks
Used to find the time right now or to store past or future time/dates
35. Each class picks one _ as it's designated initializer....
Core Graphics Framework
initializer
Encapsulation of functionality
do so in viewDidLoad
36. All objects are accessed using...
the array relinquishes ownership of that object and no longer has a pointer to it
wait until the loop finishes processing the event - at the end release it
NSCoder
pointers
37. In Objective C arrays can hold only...
ordered collection of objects - immutable
references to objects
cannot be added to an array
values
38. 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
39. A view represents a _ area
header files declare
rectangular
self
Encapsulation of functionality
40. In Cocoa Touch - the table view asks another object _ what it should display...
the array relinquishes ownership of that object and no longer has a pointer to it
in the dealloc - or when a Controller's view is 'unloaded'
CGFloat
its dataSource
41. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
dealloc - is called on the object & the object's memory is returned to the heap
Used to find the time right now or to store past or future time/dates
Controller Objects[Managers]
array[class - NSMutableArray]
42. 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
storage
variable scope - if defined within a block
the instance variables
Encapsulation of functionality
43. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
ordered collection of objects - immutable
Model Objects[Factory Worker]
method
44. Asking a class or object to execute a method
(id)initWithFrame:(CGRect)aRect;
Core Graphics Framework
lowercase - uppercase
message
45. Also if you send the NSObject the _ message - you own that object.
%d
retain
storage
is an instance of that class
46. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
creating an initializer
Controller Objects[Managers]
@interface ClassName:SuperClassName
super - self
47. class methods...
data source - view controller and delegate
group of global functions already assigned to this class
you must import the header file of that class
CGRect
48. Reducing details to focus on the core concepts
will be ignored
Abstraction
Encapsulation of functionality
(id)initWithFrame:(CGRect)aRect;
49. When an NSMutableArray is deallocated - it sends...
view
the message release to all its entries
creates an instance of NSString that holds the character string
group of global functions already assigned to this class
50. NSDictionary...
self
Abstraction
Hash table - Look up objects using a key to get a value.
only the class and subclasses can access