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 UITableView usually needs three different pieces...
Ready-Made Instance
only the class and subclasses can access
data source - delegate and view controller
self
2. initWithFrame: the designated initializer for UIView gives the view
the array relinquishes ownership of that object and no longer has a pointer to it
C Functionn
size and position
subview(s)
3. The root view controller typically creates the next view controller - and the next _ creates the one after that
storage
view controller
you must import the header file of that class
receiver - selector - arguments
4. NSArray - class...
view
callbacks
ordered collection of objects - immutable
NSBundle
5. How do I implement my drawRect?
pointer to an object
message
Core Graphics Framework
%d
6. Classes describe two things...
retain
attributes - behavior
class's
group of global functions already assigned to this class
7. In Cocoa Touch - the table view asks another object _ what it should display...
method
@synthesize
has one root view controller
its dataSource
8. 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
variable scope - if defined within a block
creates an instance of NSString that holds the character string
delegates and dataSources
9. super - is used...
array[class - NSMutableArray]
methods
nil
for inheritance - adopting the superclasses implementation
10. UITableViewController is a subclass of...
dealloc - is called on the object & the object's memory is returned to the heap
array[class - NSMutableArray]
group of global functions already assigned to this class
UIViewController
11. [Instance Variables] The code it gets from its class and in a sense is shared with all other instances of that class - but the _ belong to it alone.
to give it someone else - or another object
data
implementation
initializer
12. NSDictionary...
Hash table - Look up objects using a key to get a value.
(id)initWithFrame:(CGRect)aRect;
is an instance of that class
methods for generating an instance
13. 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
14. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
in the dealloc - or when a Controller's view is 'unloaded'
You take ownership for an object you want to keep a pointer to
initializer
self
15. Why properties?
the instance variables
view controller's initialization method
safety - subclassability and makes code look more consistent with C structs
Maintenance of state
16. Only exists within the statement block there defined - outside of the block is fine
declaration and initialization of a variable
view controller
variable scope - if defined within a block
parentViewController
17. Each _ has a 'designated' initializer method....
Anytime you call a method with new - alloc or copy. You own and must release that object.
values
You take ownership for an object you want to keep a pointer to
class
18. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
UIView
Ready-Made Instance
message
designated initializer
19. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
Instantiation from scratch
NSCoder
message
20. Core foundation classes are prefixed with _ and suffixed with _
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
the instance variables
CF - Ref
Data Encapsulation
21. Center and frame are used to _ your view
position
to give it someone else - or another object
NSBundle
You take ownership for an object you want to keep a pointer to
22. All objects are accessed using...
super - self
pointers
an object's property
'getters' and 'setters'
23. Files Owner...
subview(s)
Is a placeholder object
setPossessionName
ordered collection of objects - immutable
24. Typically the designated initializer has parameters for the most important and frequently used _ of an object
receiver - selector - arguments
instance variables
alloc - singleton - informational utility method?
is an instance of that class
25. @property declares - and _ implements the setter and getter...
UIView
@synthesize
message
draw images
26. Each class picks one _ as it's designated initializer....
UIViewController
size and position
is an instance of that class
initializer
27. Object Oriented based analogue to a function is called a...
method
its dataSource
C Functionn
storage
28. A method in a _ is required unless its preceded by an @optional.
method
protocol
class's
instance of UIView or one of its subclasses
29. 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
initializers
view controller's initialization method
data source - delegate and view controller
a mechanism to enable specific callbacks
30. Origin of a view's coordinate system is _ left
You take ownership for an object you want to keep a pointer to
accessors - individually we call them 'getters' and 'setters'
upper
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
31. Whenever a UINavigationController is about to swap views - it sends out two messages
unordered collection of objects - objects must be unique
Object wrapper around primitive types like int - float - double - BOOl
viewWillDissapear: and viewWillAppear:
object
32. Values to be supplied as the parameters to the method
arguments[message]
methods for generating an instance
instance
variable scope - if defined within a block
33. Hold data and know nothing about the user interface
class methods - initializers
collection of collections - NSArray of an NSArray
copy - retain
Model Objects[Factory Worker]
34. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
%d
Instantiation from scratch
create a XIB file
35. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
superclass's
pointers
nil
C Functionn
36. A collection object - an ordered list of objects that can be accesed by an index
setPossessionName
protocol
array[class - NSMutableArray]
the message release to all its entries
37. Also if you send the NSObject the _ message - you own that object.
Anytime you call a method with new - alloc or copy. You own and must release that object.
retain
data
view controller
38. A responder is responsible for...
%d
receiving and handling events that are associated with it
first responder
superclass's
39. To load a Xib file manually - you use _
NSBundle
setPossessionName
ordered collection of objects - immutable
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
40. If a break statement is executed from within a set of nested loops...
rectangular
only the innermost loop in which the break is executed is terminated
CF - Ref
Data Encapsulation
41. 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 _.
@synthesize
subview(s)
parentViewController
protocol
42. A view is an...
Core Graphics Framework
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Abstraction
instance of UIView or one of its subclasses
43. Name of the method to be executed
is called every time the event occurs
new instances of the class or retrieve some global property of the class.
implementation
selector[message]
44. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
class methods - initializers
pointers
an object's property
cannot be added to an array
45. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
do so in viewDidLoad
receiver[message]
data source - view controller and delegate
46. You use _ to implement the view
is called every time the event occurs
CGRect bounds
the instance variables
CF - Ref
47. A function in the objective c library that simply displays or logs it's argument
UIViewController
NSLog routine
group of global functions already assigned to this class
Core Graphics Framework
48. Categories are an Objective C way to add _ to an existing class without subclassing
methods
group of global functions already assigned to this class
class's
will be ignored
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 _.
Functions
causes the program to immediately exit from the loop it is executing - whether its for - while or do
pointer - class
to get and set variables
50. 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