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. 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
2. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
Generic object wrapper for other non-object data types
receiver - selector - arguments
alloc - singleton - informational utility method?
3. NSSet...
unordered collection of objects - objects must be unique
setPossessionName
Encapsulation of functionality
NSBundle
4. Instance Variables by default are called @protected meaning...
Functions
only the class and subclasses can access
super - self
initializers
5. Categories are an Objective C way to add _ to an existing class without subclassing
methods
Object wrapper around primitive types like int - float - double - BOOl
data source - view controller and delegate
has one root view controller
6. 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
to get and set variables
Encapsulation of functionality
Core Graphics Framework
position
7. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
lowercase - uppercase
is an instance of that class
class
self
8. A callback is a function that is supplied in advance of an event - and...
Anytime you call a method with new - alloc or copy. You own and must release that object.
is called every time the event occurs
pointer - class
instance variables
9. 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
parentViewController
array[class - NSMutableArray]
the instance variables
receiving and handling events that are associated with it
10. To load a Xib file manually - you use _
super - self
NSBundle
CGRect bounds
to get and set variables
11. 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
12. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
class methods - initializers
new instances of the class or retrieve some global property of the class.
only the class and subclasses can access
13. Defining variables - three parts...
viewWillDissapear: and viewWillAppear:
superclass's
has one root view controller
type - name and value
14. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
view controller
designated initializer
message
creating an initializer
15. 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
16. Also if you send the NSObject the _ message - you own that object.
Continue
selector[message]
retain
method
17. A command directed to an object is called an...
Data Encapsulation
causes the program to immediately exit from the loop it is executing - whether its for - while or do
%d
message
18. initWithFrame: the designated initializer for UIView gives the view
size and position
CGFloat
ready-made instances - instantiation from scratch - and nib based instantiation
object
19. NSValue - class...
instance variables
group of global functions already assigned to this class
Generic object wrapper for other non-object data types
Abstraction
20. Why properties?
references to objects
safety - subclassability and makes code look more consistent with C structs
initializers
class's
21. The only reason to temporarily own an object - is...
to give it someone else - or another object
Functions
methods
(id)initWithFrame:(CGRect)aRect;
22. NSNumber - class...
is an instance of that class
its dataSource
Object wrapper around primitive types like int - float - double - BOOl
selector[message]
23. A view is an...
nil
pointer - class
instance of UIView or one of its subclasses
a mechanism to enable specific callbacks
24. The notion that the data for an object is stored in it's instance variables and is accessed only by the objects methods. This maintains the integrity of the data.
draw images
dealloc - is called on the object & the object's memory is returned to the heap
Data Encapsulation
%d
25. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
NSCoder
define it in the implemenation file
setPossessionName
group of global functions already assigned to this class
26. Class methods typically either create
Used to find the time right now or to store past or future time/dates
new instances of the class or retrieve some global property of the class.
message
attributes - behavior
27. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
pointer to an object
selector[message]
the instance variables
28. If the view has no subviews - create it programmatically; if it has subviews
create a XIB file
message
object
superclass's
29. Just a floating point number - but we always use it for graphics.
storage
designated initializer
Anytime you call a method with new - alloc or copy. You own and must release that object.
CGFloat
30. id is a...
Anytime you call a method with new - alloc or copy. You own and must release that object.
pointer to an object
upper
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
31. Dynamic binding means that when we call a certain object's method - and there are several _ of that method - the right one is figured out at runtime.
selector[message]
designated initializer
implementation
create a XIB file
32. A view is a subclass of _
position
superclass's
receiver[message]
UIView
33. NSDate - class...
Used to find the time right now or to store past or future time/dates
the instance variables
receiver[message]
methods for generating an instance
34. Reducing details to focus on the core concepts
CGRect bounds
they need to be defined in the implementation file
Abstraction
(id)initWithFrame:(CGRect)aRect;
35. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
CGFloat
'getters' and 'setters'
receiver
receiver[message]
36. Classes describe two things...
to give it someone else - or another object
method
attributes - behavior
ready-made instances - instantiation from scratch - and nib based instantiation
37. A view represents a _ area
UIView
@interface ClassName:SuperClassName
ready-made instances - instantiation from scratch - and nib based instantiation
rectangular
38. How do I implement my drawRect?
Core Graphics Framework
Hash table - Look up objects using a key to get a value.
rectangular
@interface ClassName:SuperClassName
39. Prefixing a character string with an @ symbol [specific - NSString class]...
designated initializer
safety - subclassability and makes code look more consistent with C structs
CGFloat
creates an instance of NSString that holds the character string
40. Execution of the break statement...
selector[message]
instance of UIView or one of its subclasses
setPossessionName
causes the program to immediately exit from the loop it is executing - whether its for - while or do
41. 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
42. Each class picks one _ as it's designated initializer....
receiving and handling events that are associated with it
CGRect
initializer
accessors - individually we call them 'getters' and 'setters'
43. UIViewController has several methods that get called at certain times...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
causes the program to immediately exit from the loop it is executing - whether its for - while or do
callbacks
Is a placeholder object
44. 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
45. The integer prefix is...
upper
%d
the array becomes an owner of that object and has a pointer to it.
initializers
46. Name of the method to be executed
collection of collections - NSArray of an NSArray
Ready-Made Instance
selector[message]
pointer to an object
47. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
CGRect bounds
object
instance variables
48. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
implementation
Instantiation from scratch
Anytime you call a method with new - alloc or copy. You own and must release that object.
UIView
49. Number one use of protocols in iOS...
methods
@synthesize
delegates and dataSources
wait until the loop finishes processing the event - at the end release it
50. Hold data and know nothing about the user interface
accessors - individually we call them 'getters' and 'setters'
Model Objects[Factory Worker]
cannot be added to an array
create a XIB file