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. NSDate - class...
protocol
the array becomes an owner of that object and has a pointer to it.
Continue
Used to find the time right now or to store past or future time/dates
2. NSDictionary...
instance variables
calling code that does the instantiation for you
Hash table - Look up objects using a key to get a value.
subview(s)
3. 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.
do so in viewDidLoad
C Functionn
first responder
receiver
4. Files Owner...
Is a placeholder object
do so in viewDidLoad
superclass's
Core Graphics Framework
5. 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.
ordered collection of objects - immutable
data source - view controller and delegate
view
instance variables
6. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
draw images
instance variable of an object is valid
for inheritance - adopting the superclasses implementation
7. Each class picks one _ as it's designated initializer....
instance of UIView or one of its subclasses
initializer
UIViewController
collection of collections - NSArray of an NSArray
8. Delegation is an object oriented approach to
retain
CGRect bounds - GCPoint center - CGRect frame
NSCoder
callbacks
9. Number one use of protocols in iOS...
instance variable of an object is valid
CGFloat
protocol
delegates and dataSources
10. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
@interface ClassName:SuperClassName
create a XIB file
%d
11. UIViewController has several methods that get called at certain times...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
CGRect
for inheritance - adopting the superclasses implementation
pointer - class
12. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
Model Objects[Factory Worker]
(id)initWithFrame:(CGRect)aRect;
@interface ClassName:SuperClassName
Maintenance of state
13. 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 _.
position
ordered collection of objects - immutable
the instance variables
nil
14. We can use dot notation to reference...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
15. In any application with UINavigationController - the navigation controller...
Continue
ordered collection of objects - immutable
unordered collection of objects - objects must be unique
has one root view controller
16. 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
17. When an object is removed from an NSMutableArray - that object is sent the message release;...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
instance
the array relinquishes ownership of that object and no longer has a pointer to it
Instantiation from scratch
18. Designated initializer makes sure that every...
do so in viewDidLoad
UIViewController
Continue
instance variable of an object is valid
19. initWithFrame: the designated initializer for UIView gives the view
references to objects
size and position
nil
the array becomes an owner of that object and has a pointer to it.
20. After accessors have been defined in the header file...
values
the array relinquishes ownership of that object and no longer has a pointer to it
they need to be defined in the implementation file
receiver[message]
21. A UITableView usually needs three different pieces...
data source - delegate and view controller
pointer - class
instance variable of an object is valid
UIView
22. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
has one root view controller
designated initializer
Hash table - Look up objects using a key to get a value.
lowercase - uppercase
23. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
is called every time the event occurs
data source - delegate and view controller
class methods - initializers
24. A view represents a _ area
rectangular
view controller's initialization method
you always return the newly initialized object(return self)
upper
25. When making a tableView always...
instance variable of an object is valid
copy - retain
references to objects
reuse your cells
26. NSValue - class...
protocol
creating an initializer
Generic object wrapper for other non-object data types
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
27. Each _ has a 'designated' initializer method....
Anytime you call a method with new - alloc or copy. You own and must release that object.
super - self
class
position
28. NSArray - class...
methods
ordered collection of objects - immutable
protocol
the array becomes an owner of that object and has a pointer to it.
29. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
parentViewController
class methods - initializers
receiver
group of global functions already assigned to this class
30. Prefixing a character string with an @ symbol [specific - NSString class]...
creates an instance of NSString that holds the character string
methods for generating an instance
message
@interface ClassName:SuperClassName
31. 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
32. Reducing details to focus on the core concepts
Abstraction
has one root view controller
creating an initializer
type - name and value
33. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
Controller Objects[Managers]
@synthesize
for inheritance - adopting the superclasses implementation
receiver[message]
34. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
cannot be added to an array
method
view controller's initialization method
35. Instance Variables by default are called @protected meaning...
unordered collection of objects - objects must be unique
reuse your cells
only the class and subclasses can access
receiver
36. A message is always contained in square brackets - and has three parts
@synthesize
receiver - selector - arguments
its dataSource
self
37. Class methods do not operate on an _ or have any access to _ variables....
Object wrapper around primitive types like int - float - double - BOOl
selector[message]
instance
dealloc - is called on the object & the object's memory is returned to the heap
38. A responder is responsible for...
receiving and handling events that are associated with it
Functions
ready-made instances - instantiation from scratch - and nib based instantiation
Is a placeholder object
39. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
parentViewController
header files declare
is called every time the event occurs
Generic object wrapper for other non-object data types
40. 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
41. If the view has no subviews - create it programmatically; if it has subviews
@interface ClassName:SuperClassName
creating an initializer
selector[message]
create a XIB file
42. Also if you send the NSObject the _ message - you own that object.
pointer to an object
will be ignored
for inheritance - adopting the superclasses implementation
retain
43. Object Oriented based analogue to a function is called a...
collection of collections - NSArray of an NSArray
method
NSCoder
view controller's initialization method
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...
header files declare
setPossessionName
in the dealloc - or when a Controller's view is 'unloaded'
pointer to an object
45. Any individual object belonging to any class...
to give it someone else - or another object
instance variables
header files declare
is an instance of that class
46. NSArray - important methods...
safety - subclassability and makes code look more consistent with C structs
type - name and value
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
attributes - behavior
47. if you implemented both the setter and getter - the @synthesize method...
You take ownership for an object you want to keep a pointer to
will be ignored
instance variable of an object is valid
pointer to an object
48. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Object wrapper around primitive types like int - float - double - BOOl
rectangular
Ready-Made Instance
the message release to all its entries
49. How do I implement my drawRect?
the instance variables
(id)initWithFrame:(CGRect)aRect;
Core Graphics Framework
pointer - class
50. NSString objects are usually sent _ rather than _...
view controller's initialization method
methods
copy - retain
Functions