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. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
2. When overriding a method - all you need to is _ - you do not need to declare it in the header file because it has already been declared by the superclass....
only the innermost loop in which the break is executed is terminated
in the dealloc - or when a Controller's view is 'unloaded'
define it in the implemenation file
ordered collection of objects - immutable
3. The root view controller typically creates the next view controller - and the next _ creates the one after that
instance of UIView or one of its subclasses
view controller
new instances of the class or retrieve some global property of the class.
instance variable of an object is valid
4. 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 _.
NSLog routine
nil
Controller Objects[Managers]
header files declare
5. In Cocoa Touch - the table view asks another object _ what it should display...
new instances of the class or retrieve some global property of the class.
message
%d
its dataSource
6. Property List...
collection of collections - NSArray of an NSArray
parentViewController
Controller Objects[Managers]
is called every time the event occurs
7. A UITableViewController can fill all three roles of...
the array relinquishes ownership of that object and no longer has a pointer to it
array[class - NSMutableArray]
receiver - selector - arguments
data source - view controller and delegate
8. 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
accessors - individually we call them 'getters' and 'setters'
callbacks
to give it someone else - or another object
9. UIViewController has several methods that get called at certain times...
lowercase - uppercase
instance variables
C Functionn
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
10. If you have extra work you want to do on the view...
ordered collection of objects - immutable
do so in viewDidLoad
copy - retain
array[class - NSMutableArray]
11. NSDictionary...
values
Used to find the time right now or to store past or future time/dates
Hash table - Look up objects using a key to get a value.
callbacks
12. Use of class methods - there are three...
alloc - singleton - informational utility method?
data source - view controller and delegate
class's
copy - retain
13. A _ handles touch events.
parentViewController
%d
view
receiver[message]
14. Reference Counting...
reuse your cells
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
You take ownership for an object you want to keep a pointer to
Instantiation from scratch
15. Any individual object belonging to any class...
NSBundle
pointer - class
is an instance of that class
instance variables
16. A pointer to the object being asked to execute a method
a single-array can contain objects of different types
rectangular
viewWillDissapear: and viewWillAppear:
receiver[message]
17. In a class method you cannot access...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
its dataSource
size and position
the instance variables
18. Number one use of protocols in iOS...
create a XIB file
Instantiation from scratch
delegates and dataSources
unordered collection of objects - objects must be unique
19. 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...
Functions
class methods - initializers
setPossessionName
Object wrapper around primitive types like int - float - double - BOOl
20. Name of the method to be executed
selector[message]
self
Abstraction
You take ownership for an object you want to keep a pointer to
21. 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 _.
draw images
group of global functions already assigned to this class
CGRect
pointer - class
22. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
view controller
CF - Ref
setPossessionName
initializers
23. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
class
position
header files declare
24. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
rectangular
object
selector[message]
collection of collections - NSArray of an NSArray
25. Categories are an Objective C way to add _ to an existing class without subclassing
UIView
setPossessionName
methods
super - self
26. When the message endEditing: is sent to a view - if it or any of its subviews or currently the _ - it will resign its first responder statues - and the keyboard will be dismissed.
first responder
Continue
size and position
references to objects
27. A view is a subclass of _
UIView
%d
Hash table - Look up objects using a key to get a value.
for inheritance - adopting the superclasses implementation
28. If a break statement is executed from within a set of nested loops...
NSCoder
only the innermost loop in which the break is executed is terminated
CF - Ref
NSBundle
29. NSValue - class...
designated initializer
the instance variables
Generic object wrapper for other non-object data types
CF - Ref
30. Object Oriented based analogue to a function is called a...
in the dealloc - or when a Controller's view is 'unloaded'
method
Ready-Made Instance
the message release to all its entries
31. 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
32. super - is used...
for inheritance - adopting the superclasses implementation
they need to be defined in the implementation file
attributes - behavior
to give it someone else - or another object
33. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
only the class and subclasses can access
NSBundle
@interface ClassName:SuperClassName
Abstraction
34. Class methods typically either create
super - self
C Functionn
new instances of the class or retrieve some global property of the class.
receiver - selector - arguments
35. 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
36. id is a...
object
UIViewController
pointer to an object
Ready-Made Instance
37. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
C Functionn
implementation
38. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
unordered collection of objects - objects must be unique
data
CGRect
Ready-Made Instance
39. Only exists within the statement block there defined - outside of the block is fine
Anytime you call a method with new - alloc or copy. You own and must release that object.
variable scope - if defined within a block
Model Objects[Factory Worker]
delegates and dataSources
40. 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
41. All objects are accessed using...
Used to find the time right now or to store past or future time/dates
pointers
UIViewController
Data Encapsulation
42. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
dealloc - is called on the object & the object's memory is returned to the heap
receiver
receiver - selector - arguments
message
43. In Objective C arrays can hold only...
in the dealloc - or when a Controller's view is 'unloaded'
references to objects
reuse your cells
its dataSource
44. Primitives and C Structures...
cannot be added to an array
first responder
instance variable of an object is valid
message
45. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
methods for generating an instance
You take ownership for an object you want to keep a pointer to
designated initializer
implementation
46. When an object is removed from an NSMutableArray - that object is sent the message release;...
'getters' and 'setters'
instance of UIView or one of its subclasses
the array relinquishes ownership of that object and no longer has a pointer to it
Is a placeholder object
47. 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.
Ready-Made Instance
upper
instance variables
methods for generating an instance
48. Instance Variables by default are called @protected meaning...
Continue
they need to be defined in the implementation file
only the class and subclasses can access
Hash table - Look up objects using a key to get a value.
49. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
NSCoder
data
size and position
message
50. Values to be supplied as the parameters to the method
creating an initializer
arguments[message]
You take ownership for an object you want to keep a pointer to
CGRect bounds - GCPoint center - CGRect frame