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. Values to be supplied as the parameters to the method
Maintenance of state
to get and set variables
ordered collection of objects - immutable
arguments[message]
2. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
super - self
storage
in the dealloc - or when a Controller's view is 'unloaded'
Maintenance of state
3. Each _ has a 'designated' initializer method....
class
new instances of the class or retrieve some global property of the class.
Hash table - Look up objects using a key to get a value.
Functions
4. NSString objects are usually sent _ rather than _...
only the innermost loop in which the break is executed is terminated
view
copy - retain
Model Objects[Factory Worker]
5. When making a tableView always...
Used to find the time right now or to store past or future time/dates
rectangular
header files declare
reuse your cells
6. If a break statement is executed from within a set of nested loops...
type - name and value
implementation
superclass's
only the innermost loop in which the break is executed is terminated
7. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
object
methods
self
position
8. In object oriented languages - we call methods that get and set instance variables
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
9. class methods...
pointers
an object's property
group of global functions already assigned to this class
calling code that does the instantiation for you
10. A view is a subclass of _
receiver - selector - arguments
declaration and initialization of a variable
size and position
UIView
11. 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....
lowercase - uppercase
object
nil
define it in the implemenation file
12. Class methods typically either create
Anytime you call a method with new - alloc or copy. You own and must release that object.
upper
@synthesize
new instances of the class or retrieve some global property of the class.
13. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
a single-array can contain objects of different types
CGRect
new instances of the class or retrieve some global property of the class.
Instantiation from scratch
14. 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
15. A UITableViewController can fill all three roles of...
data source - view controller and delegate
dealloc - is called on the object & the object's memory is returned to the heap
for inheritance - adopting the superclasses implementation
declaration and initialization of a variable
16. Also - because arrays only hold a pointer to an object...
C Functionn
a single-array can contain objects of different types
initializers
position
17. NSSet...
unordered collection of objects - objects must be unique
dealloc - is called on the object & the object's memory is returned to the heap
UIViewController
Data Encapsulation
18. In Objective C arrays can hold only...
message
methods
Core Graphics Framework
references to objects
19. 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
20. Asking a class or object to execute a method
variable scope - if defined within a block
message
C Functionn
Maintenance of state
21. NSArray - class...
ordered collection of objects - immutable
they need to be defined in the implementation file
calling code that does the instantiation for you
@interface ClassName:SuperClassName
22. Core foundation classes are prefixed with _ and suffixed with _
a single-array can contain objects of different types
CF - Ref
attributes - behavior
UIView
23. In Cocoa Touch - the table view asks another object _ what it should display...
selector[message]
its dataSource
class's
Ready-Made Instance
24. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
creating an initializer
receiver[message]
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
25. Three ways instances are created...
instance variables
do so in viewDidLoad
ready-made instances - instantiation from scratch - and nib based instantiation
subview(s)
26. id is a...
pointer to an object
Encapsulation of functionality
C Functionn
do so in viewDidLoad
27. When an object is added to a NSMutableArray - that object is sent the message to retain;...
the array becomes an owner of that object and has a pointer to it.
creating an initializer
class's
variable scope - if defined within a block
28. After accessors have been defined in the header file...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
selector[message]
they need to be defined in the implementation file
wait until the loop finishes processing the event - at the end release it
29. 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 _.
pointer - class
creating an initializer
pointer to an object
upper
30. 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.
NSCoder
lowercase - uppercase
first responder
Core Graphics Framework
31. In any application with UINavigationController - the navigation controller...
is an instance of that class
has one root view controller
do so in viewDidLoad
they need to be defined in the implementation file
32. Prefixing a character string with an @ symbol [specific - NSString class]...
creates an instance of NSString that holds the character string
to get and set variables
setPossessionName
Maintenance of state
33. Delegation is an object oriented approach to
receiver[message]
CGRect
parentViewController
callbacks
34. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
cannot be added to an array
designated initializer
C Functionn
CGRect
35. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
position
Controller Objects[Managers]
is an instance of that class
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
36. You use _ to implement the view
class methods - initializers
CGRect bounds
nil
Object wrapper around primitive types like int - float - double - BOOl
37. A collection object - an ordered list of objects that can be accesed by an index
in the dealloc - or when a Controller's view is 'unloaded'
NSBundle
array[class - NSMutableArray]
first responder
38. NSValue - class...
variable scope - if defined within a block
setPossessionName
Generic object wrapper for other non-object data types
protocol
39. Origin of a view's coordinate system is _ left
super - self
in the dealloc - or when a Controller's view is 'unloaded'
receiver[message]
upper
40. When do you take ownership?...
lowercase - uppercase
receiver - selector - arguments
Anytime you call a method with new - alloc or copy. You own and must release that object.
receiver
41. initWithFrame: the designated initializer for UIView gives the view
declaration and initialization of a variable
instance
size and position
first responder
42. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
receiving and handling events that are associated with it
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
instance of UIView or one of its subclasses
43. 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
header files declare
upper
Encapsulation of functionality
safety - subclassability and makes code look more consistent with C structs
44. Reference Counting...
view
You take ownership for an object you want to keep a pointer to
C Functionn
initializers
45. 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
46. Also if you send the NSObject the _ message - you own that object.
creates an instance of NSString that holds the character string
position
retain
Instantiation from scratch
47. Proceed through the loop - jump back to the top and check again
Continue
is an instance of that class
NSBundle
Maintenance of state
48. In general - class methods tend to be factory methods - that is...
methods for generating an instance
self
dealloc - is called on the object & the object's memory is returned to the heap
UIViewController
49. @property declares - and _ implements the setter and getter...
cannot be added to an array
class
pointers
@synthesize
50. Just a floating point number - but we always use it for graphics.
Instantiation from scratch
message
protocol
CGFloat