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 collection object - an ordered list of objects that can be accesed by an index
only the innermost loop in which the break is executed is terminated
array[class - NSMutableArray]
ready-made instances - instantiation from scratch - and nib based instantiation
CGRect bounds
2. Only exists within the statement block there defined - outside of the block is fine
receiver
reuse your cells
only the innermost loop in which the break is executed is terminated
variable scope - if defined within a block
3. NSArray - important methods...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Maintenance of state
instance variables
only the class and subclasses can access
4. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
retain
unordered collection of objects - objects must be unique
C Functionn
UIView
5. The root view controller typically creates the next view controller - and the next _ creates the one after that
cannot be added to an array
pointer - class
view controller
CGRect bounds
6. A responder is responsible for...
super - self
Data Encapsulation
initializer
receiving and handling events that are associated with it
7. NSString *s = @'Hello - World'; is an example of...
to give it someone else - or another object
declaration and initialization of a variable
UIViewController
create a XIB file
8. Center and frame are used to _ your view
position
safety - subclassability and makes code look more consistent with C structs
to give it someone else - or another object
references to objects
9. Reducing details to focus on the core concepts
self
define it in the implemenation file
Abstraction
viewWillDissapear: and viewWillAppear:
10. In the last line of an init method...
you always return the newly initialized object(return self)
collection of collections - NSArray of an NSArray
CGRect bounds - GCPoint center - CGRect frame
subview(s)
11. NSDictionary...
ordered collection of objects - immutable
Hash table - Look up objects using a key to get a value.
Object wrapper around primitive types like int - float - double - BOOl
only the class and subclasses can access
12. Typically the designated initializer has parameters for the most important and frequently used _ of an object
will be ignored
instance variables
to give it someone else - or another object
is an instance of that class
13. Categories are an Objective C way to add _ to an existing class without subclassing
accessors - individually we call them 'getters' and 'setters'
group of global functions already assigned to this class
methods
class
14. 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.
viewWillDissapear: and viewWillAppear:
type - name and value
Data Encapsulation
protocol
15. To load a Xib file manually - you use _
the array relinquishes ownership of that object and no longer has a pointer to it
NSBundle
new instances of the class or retrieve some global property of the class.
callbacks
16. Whenever a UINavigationController is about to swap views - it sends out two messages
viewWillDissapear: and viewWillAppear:
Instantiation from scratch
object
to get and set variables
17. Defining variables - three parts...
data source - delegate and view controller
type - name and value
you always return the newly initialized object(return self)
receiver - selector - arguments
18. 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
receiver - selector - arguments
ready-made instances - instantiation from scratch - and nib based instantiation
a mechanism to enable specific callbacks
rectangular
19. @property - is using methods...
subview(s)
the array becomes an owner of that object and has a pointer to it.
to get and set variables
message
20. Each _ has a 'designated' initializer method....
instance of UIView or one of its subclasses
has one root view controller
the instance variables
class
21. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
receiver[message]
designated initializer
Ready-Made Instance
receiving and handling events that are associated with it
22. 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
23. If a break statement is executed from within a set of nested loops...
storage
the array relinquishes ownership of that object and no longer has a pointer to it
Maintenance of state
only the innermost loop in which the break is executed is terminated
24. UIView - designated initializer...
(id)initWithFrame:(CGRect)aRect;
view controller
new instances of the class or retrieve some global property of the class.
first responder
25. NSDate - class...
message
its dataSource
Used to find the time right now or to store past or future time/dates
accessors - individually we call them 'getters' and 'setters'
26. The integer prefix is...
UIViewController
%d
arguments[message]
its dataSource
27. In a class method you cannot access...
the instance variables
array[class - NSMutableArray]
implementation
cannot be added to an array
28. Primitives and C Structures...
only the class and subclasses can access
dealloc - is called on the object & the object's memory is returned to the heap
You take ownership for an object you want to keep a pointer to
cannot be added to an array
29. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
data
C Functionn
Continue
Ready-Made Instance
30. NSValue - class...
creates an instance of NSString that holds the character string
super - self
Generic object wrapper for other non-object data types
@interface ClassName:SuperClassName
31. A _ handles touch events.
CF - Ref
view
instance variables
protocol
32. A method in a _ is required unless its preceded by an @optional.
message
object
protocol
view controller
33. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
class methods - initializers
creating an initializer
NSBundle
Encapsulation of functionality
34. [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.
data
group of global functions already assigned to this class
UIView
(id)initWithFrame:(CGRect)aRect;
35. 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
will be ignored
UIView
is an instance of that class
36. When making a tableView always...
only the innermost loop in which the break is executed is terminated
methods for generating an instance
reuse your cells
new instances of the class or retrieve some global property of the class.
37. super - is used...
pointers
attributes - behavior
for inheritance - adopting the superclasses implementation
array[class - NSMutableArray]
38. NSString objects are usually sent _ rather than _...
NSLog routine
header files declare
copy - retain
its dataSource
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. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
dealloc - is called on the object & the object's memory is returned to the heap
CGRect bounds
Ready-Made Instance
41. The only reason to temporarily own an object - is...
size and position
position
to give it someone else - or another object
collection of collections - NSArray of an NSArray
42. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
UIView
initializer
lowercase - uppercase
accessors - individually we call them 'getters' and 'setters'
43. UIImageView is used to...
view
the message release to all its entries
draw images
receiver
44. Each class picks one _ as it's designated initializer....
initializer
has one root view controller
object
you always return the newly initialized object(return self)
45. When an object is removed from an NSMutableArray - that object is sent the message release;...
designated initializer
has one root view controller
the array relinquishes ownership of that object and no longer has a pointer to it
receiver
46. Values to be supplied as the parameters to the method
only the innermost loop in which the break is executed is terminated
arguments[message]
dealloc - is called on the object & the object's memory is returned to the heap
to get and set variables
47. A view is an...
instance of UIView or one of its subclasses
safety - subclassability and makes code look more consistent with C structs
setPossessionName
calling code that does the instantiation for you
48. You use _ to implement the view
CGRect bounds
alloc - singleton - informational utility method?
causes the program to immediately exit from the loop it is executing - whether its for - while or do
callbacks
49. NSArray - class...
ordered collection of objects - immutable
instance
draw images
CGFloat
50. Designated initializer makes sure that every...
Used to find the time right now or to store past or future time/dates
has one root view controller
wait until the loop finishes processing the event - at the end release it
instance variable of an object is valid