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. Why properties?
protocol
to get and set variables
safety - subclassability and makes code look more consistent with C structs
Object wrapper around primitive types like int - float - double - BOOl
3. It's class is sent the message alloc - which creates an instance of that class and returns a pointer to it - and then that instance is sent the message init - which gives its instance variables initial values.
message
do so in viewDidLoad
creating an initializer
setPossessionName
4. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
arguments[message]
group of global functions already assigned to this class
protocol
5. Instance Variables by default are called @protected meaning...
superclass's
instance variables
only the class and subclasses can access
copy - retain
6. Whenever a UINavigationController is about to swap views - it sends out two messages
@interface ClassName:SuperClassName
callbacks
receiver - selector - arguments
viewWillDissapear: and viewWillAppear:
7. 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
new instances of the class or retrieve some global property of the class.
type - name and value
storage
8. 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
Model Objects[Factory Worker]
'getters' and 'setters'
Functions
CGRect bounds - GCPoint center - CGRect frame
9. NSNumber - class...
Object wrapper around primitive types like int - float - double - BOOl
method
instance
you always return the newly initialized object(return self)
10. 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....
view controller
only the innermost loop in which the break is executed is terminated
cannot be added to an array
define it in the implemenation file
11. 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
instance variable of an object is valid
initializer
Encapsulation of functionality
data source - delegate and view controller
12. In a class method you cannot access...
implementation
the instance variables
subview(s)
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
13. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
calling code that does the instantiation for you
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
instance variable of an object is valid
NSCoder
14. [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.
a single-array can contain objects of different types
to get and set variables
data
lowercase - uppercase
15. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
Continue
lowercase - uppercase
receiver
position
16. 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 _.
message
pointer - class
implementation
is an instance of that class
17. Object Oriented based analogue to a function is called a...
method
data
calling code that does the instantiation for you
will be ignored
18. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
Continue
You take ownership for an object you want to keep a pointer to
the message release to all its entries
19. NSString objects are usually sent _ rather than _...
pointer to an object
Used to find the time right now or to store past or future time/dates
define it in the implemenation file
copy - retain
20. A command directed to an object is called an...
message
retain
data source - delegate and view controller
storage
21. A function in the objective c library that simply displays or logs it's argument
create a XIB file
parentViewController
attributes - behavior
NSLog routine
22. UITableViewController is a subclass of...
UIViewController
initializer
Maintenance of state
Model Objects[Factory Worker]
23. super - is used...
Object wrapper around primitive types like int - float - double - BOOl
draw images
for inheritance - adopting the superclasses implementation
NSCoder
24. 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
ordered collection of objects - immutable
parentViewController
Functions
do so in viewDidLoad
25. In any application with UINavigationController - the navigation controller...
CF - Ref
has one root view controller
instance variable of an object is valid
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
26. You use _ to implement the view
CGRect bounds
instance variables
instance
Continue
27. A view is an...
instance of UIView or one of its subclasses
Object wrapper around primitive types like int - float - double - BOOl
wait until the loop finishes processing the event - at the end release it
for inheritance - adopting the superclasses implementation
28. NSSet...
data source - delegate and view controller
wait until the loop finishes processing the event - at the end release it
pointer to an object
unordered collection of objects - objects must be unique
29. NSArray - class...
view controller's initialization method
ordered collection of objects - immutable
superclass's
message
30. Defining variables - three parts...
type - name and value
UIViewController
cannot be added to an array
values
31. NSArray - important methods...
references to objects
subview(s)
ready-made instances - instantiation from scratch - and nib based instantiation
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
32. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
data
class methods - initializers
@interface ClassName:SuperClassName
the array relinquishes ownership of that object and no longer has a pointer to it
33. Property List...
collection of collections - NSArray of an NSArray
methods
is called every time the event occurs
@synthesize
34. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
class methods - initializers
parentViewController
CGRect bounds
rectangular
35. A UITableViewController can fill all three roles of...
Generic object wrapper for other non-object data types
Maintenance of state
data source - view controller and delegate
super - self
36. Class methods do not operate on an _ or have any access to _ variables....
instance
pointer to an object
in the dealloc - or when a Controller's view is 'unloaded'
subview(s)
37. NSDate - class...
references to objects
has one root view controller
Used to find the time right now or to store past or future time/dates
a single-array can contain objects of different types
38. 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
39. Primitives and C Structures...
calling code that does the instantiation for you
wait until the loop finishes processing the event - at the end release it
you must import the header file of that class
cannot be added to an array
40. Core foundation classes are prefixed with _ and suffixed with _
collection of collections - NSArray of an NSArray
dealloc - is called on the object & the object's memory is returned to the heap
CF - Ref
alloc - singleton - informational utility method?
41. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
C Functionn
only the innermost loop in which the break is executed is terminated
draw images
callbacks
42. Origin of a view's coordinate system is _ left
upper
Generic object wrapper for other non-object data types
draw images
Controller Objects[Managers]
43. Also if you send the NSObject the _ message - you own that object.
retain
copy - retain
safety - subclassability and makes code look more consistent with C structs
class's
44. 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...
You take ownership for an object you want to keep a pointer to
setPossessionName
CGRect bounds
storage
45. Asking a class or object to execute a method
Anytime you call a method with new - alloc or copy. You own and must release that object.
declaration and initialization of a variable
will be ignored
message
46. In Objective C arrays can hold only...
pointer to an object
references to objects
causes the program to immediately exit from the loop it is executing - whether its for - while or do
for inheritance - adopting the superclasses implementation
47. Hold data and know nothing about the user interface
Model Objects[Factory Worker]
Instantiation from scratch
Anytime you call a method with new - alloc or copy. You own and must release that object.
You take ownership for an object you want to keep a pointer to
48. If the view has no subviews - create it programmatically; if it has subviews
Object wrapper around primitive types like int - float - double - BOOl
designated initializer
its dataSource
create a XIB file
49. What does autorelease mean?
wait until the loop finishes processing the event - at the end release it
CF - Ref
CGRect bounds
instance variables
50. Class methods typically either create
type - name and value
receiver - selector - arguments
will be ignored
new instances of the class or retrieve some global property of the class.