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. Name of the method to be executed
unordered collection of objects - objects must be unique
receiver[message]
selector[message]
calling code that does the instantiation for you
2. [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.
accessors - individually we call them 'getters' and 'setters'
type - name and value
define it in the implemenation file
data
3. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
NSCoder
Encapsulation of functionality
setPossessionName
a mechanism to enable specific callbacks
4. A pointer to the object being asked to execute a method
draw images
receiver[message]
UIViewController
NSBundle
5. 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
view
Functions
is an instance of that class
to give it someone else - or another object
6. All objects are accessed using...
first responder
create a XIB file
header files declare
pointers
7. @property - is using methods...
to get and set variables
reuse your cells
a single-array can contain objects of different types
NSLog routine
8. Any individual object belonging to any class...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
is an instance of that class
Object wrapper around primitive types like int - float - double - BOOl
methods for generating an instance
9. A UITableViewController can fill all three roles of...
data source - view controller and delegate
variable scope - if defined within a block
for inheritance - adopting the superclasses implementation
reuse your cells
10. 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 _.
methods for generating an instance
nil
do so in viewDidLoad
initializers
11. Class methods typically either create
arguments[message]
data
new instances of the class or retrieve some global property of the class.
copy - retain
12. NSArray - class...
its dataSource
ordered collection of objects - immutable
message
%d
13. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
will be ignored
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
initializers
14. Execution of the break statement...
unordered collection of objects - objects must be unique
arguments[message]
causes the program to immediately exit from the loop it is executing - whether its for - while or do
values
15. Reducing details to focus on the core concepts
view controller
its dataSource
Abstraction
data
16. 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
ready-made instances - instantiation from scratch - and nib based instantiation
array[class - NSMutableArray]
Maintenance of state
instance variables
17. UIViewController has several methods that get called at certain times...
header files declare
Model Objects[Factory Worker]
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
you must import the header file of that class
18. Property List...
CGRect bounds - GCPoint center - CGRect frame
collection of collections - NSArray of an NSArray
Encapsulation of functionality
instance of UIView or one of its subclasses
19. 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
20. super - is used...
the instance variables
an object's property
subview(s)
for inheritance - adopting the superclasses implementation
21. NSNumber - class...
copy - retain
Continue
Object wrapper around primitive types like int - float - double - BOOl
they need to be defined in the implementation file
22. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
implementation
'getters' and 'setters'
instance variable of an object is valid
Ready-Made Instance
23. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
rectangular
C Functionn
to give it someone else - or another object
draw images
24. The integer prefix is...
%d
the array becomes an owner of that object and has a pointer to it.
Maintenance of state
group of global functions already assigned to this class
25. Classes describe two things...
in the dealloc - or when a Controller's view is 'unloaded'
header files declare
attributes - behavior
Is a placeholder object
26. A collection object - an ordered list of objects that can be accesed by an index
safety - subclassability and makes code look more consistent with C structs
array[class - NSMutableArray]
CF - Ref
will be ignored
27. UIView - designated initializer...
designated initializer
creates an instance of NSString that holds the character string
(id)initWithFrame:(CGRect)aRect;
Is a placeholder object
28. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
values
create a XIB file
nil
self
29. NSValue - class...
they need to be defined in the implementation file
Abstraction
Generic object wrapper for other non-object data types
dealloc - is called on the object & the object's memory is returned to the heap
30. Categories are an Objective C way to add _ to an existing class without subclassing
methods
message
self
object
31. Core foundation classes are prefixed with _ and suffixed with _
message
CF - Ref
callbacks
data
32. Prefixing a character string with an @ symbol [specific - NSString class]...
creates an instance of NSString that holds the character string
Data Encapsulation
setPossessionName
attributes - behavior
33. Ready-made instances...
NSCoder
causes the program to immediately exit from the loop it is executing - whether its for - while or do
ready-made instances - instantiation from scratch - and nib based instantiation
calling code that does the instantiation for you
34. The only reason to temporarily own an object - is...
attributes - behavior
a mechanism to enable specific callbacks
the instance variables
to give it someone else - or another object
35. 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....
nil
ordered collection of objects - immutable
NSLog routine
define it in the implemenation file
36. @property declares - and _ implements the setter and getter...
receiver
message
@synthesize
ordered collection of objects - immutable
37. To load a Xib file manually - you use _
initializers
arguments[message]
NSBundle
CGRect bounds
38. A command directed to an object is called an...
parentViewController
message
safety - subclassability and makes code look more consistent with C structs
they need to be defined in the implementation file
39. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
the message release to all its entries
to give it someone else - or another object
ready-made instances - instantiation from scratch - and nib based instantiation
initializers
40. 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
data source - view controller and delegate
pointers
parentViewController
Model Objects[Factory Worker]
41. UITableViewController is a subclass of...
Generic object wrapper for other non-object data types
UIViewController
attributes - behavior
CGRect bounds
42. When an object is removed from an NSMutableArray - that object is sent the message release;...
new instances of the class or retrieve some global property of the class.
UIView
Maintenance of state
the array relinquishes ownership of that object and no longer has a pointer to it
43. An instance is a device for maintaining state. It's a box for _ of data.
data source - view controller and delegate
Anytime you call a method with new - alloc or copy. You own and must release that object.
storage
rectangular
44. When do you take ownership?...
header files declare
collection of collections - NSArray of an NSArray
upper
Anytime you call a method with new - alloc or copy. You own and must release that object.
45. In a class method you cannot access...
the instance variables
is called every time the event occurs
NSLog routine
define it in the implemenation file
46. A UITableView usually needs three different pieces...
methods
class
instance variables
data source - delegate and view controller
47. Three ways instances are created...
ready-made instances - instantiation from scratch - and nib based instantiation
message
will be ignored
Is a placeholder object
48. A message is always contained in square brackets - and has three parts
view
dealloc - is called on the object & the object's memory is returned to the heap
receiver - selector - arguments
viewWillDissapear: and viewWillAppear:
49. Reference Counting...
%d
causes the program to immediately exit from the loop it is executing - whether its for - while or do
to give it someone else - or another object
You take ownership for an object you want to keep a pointer to
50. Designated initializer makes sure that every...
header files declare
in the dealloc - or when a Controller's view is 'unloaded'
instance variable of an object is valid
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject