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. Center and frame are used to _ your view
Anytime you call a method with new - alloc or copy. You own and must release that object.
%d
methods for generating an instance
position
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.
data
view
You take ownership for an object you want to keep a pointer to
protocol
3. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
first responder
CGFloat
upper
4. NSString objects are usually sent _ rather than _...
copy - retain
Object wrapper around primitive types like int - float - double - BOOl
reuse your cells
parentViewController
5. 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.
implementation
ordered collection of objects - immutable
for inheritance - adopting the superclasses implementation
collection of collections - NSArray of an NSArray
6. initWithFrame: the designated initializer for UIView gives the view
size and position
message
C Functionn
calling code that does the instantiation for you
7. 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
8. Ready-made instances...
subview(s)
retain
calling code that does the instantiation for you
designated initializer
9. UITableViewController is a subclass of...
Object wrapper around primitive types like int - float - double - BOOl
cannot be added to an array
UIViewController
creating an initializer
10. NSValue - class...
the array becomes an owner of that object and has a pointer to it.
view
'getters' and 'setters'
Generic object wrapper for other non-object data types
11. Values to be supplied as the parameters to the method
arguments[message]
only the class and subclasses can access
create a XIB file
for inheritance - adopting the superclasses implementation
12. The only reason to temporarily own an object - is...
its dataSource
receiver - selector - arguments
to give it someone else - or another object
values
13. NSNumber - class...
Core Graphics Framework
lowercase - uppercase
Object wrapper around primitive types like int - float - double - BOOl
you always return the newly initialized object(return self)
14. UIViewController has several methods that get called at certain times...
will be ignored
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
class
'getters' and 'setters'
15. @property - is using methods...
CF - Ref
to get and set variables
its dataSource
the array becomes an owner of that object and has a pointer to it.
16. id is a...
super - self
instance variables
pointer to an object
initializers
17. Reducing details to focus on the core concepts
Model Objects[Factory Worker]
Abstraction
receiver[message]
Instantiation from scratch
18. NSDate - class...
declaration and initialization of a variable
message
has one root view controller
Used to find the time right now or to store past or future time/dates
19. NSDictionary...
rectangular
declaration and initialization of a variable
Continue
Hash table - Look up objects using a key to get a value.
20. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
Object wrapper around primitive types like int - float - double - BOOl
view controller's initialization method
@interface ClassName:SuperClassName
CGFloat
21. 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
22. A pointer to the object being asked to execute a method
receiver[message]
do so in viewDidLoad
parentViewController
calling code that does the instantiation for you
23. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
will be ignored
%d
Controller Objects[Managers]
arguments[message]
24. Each _ has a 'designated' initializer method....
instance variables
class
position
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
25. The class is responsible for what instance variables the instance has - but not the _ of those variables.
values
instance of UIView or one of its subclasses
CGRect bounds - GCPoint center - CGRect frame
Model Objects[Factory Worker]
26. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
NSCoder
define it in the implemenation file
object
you always return the newly initialized object(return self)
27. In a class method you cannot access...
data source - view controller and delegate
cannot be added to an array
the instance variables
view controller's initialization method
28. Prefixing a character string with an @ symbol [specific - NSString class]...
Data Encapsulation
superclass's
creates an instance of NSString that holds the character string
setPossessionName
29. Proceed through the loop - jump back to the top and check again
to give it someone else - or another object
Continue
a single-array can contain objects of different types
references to objects
30. When an NSMutableArray is deallocated - it sends...
the instance variables
to give it someone else - or another object
the message release to all its entries
storage
31. How do I implement my drawRect?
receiver - selector - arguments
an object's property
Core Graphics Framework
collection of collections - NSArray of an NSArray
32. Object Oriented based analogue to a function is called a...
method
you always return the newly initialized object(return self)
message
super - self
33. In general - class methods tend to be factory methods - that is...
CGRect bounds
methods for generating an instance
instance
Continue
34. A collection object - an ordered list of objects that can be accesed by an index
header files declare
array[class - NSMutableArray]
receiver - selector - arguments
attributes - behavior
35. 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
instance of UIView or one of its subclasses
instance variable of an object is valid
Functions
@interface ClassName:SuperClassName
36. Number one use of protocols in iOS...
is an instance of that class
causes the program to immediately exit from the loop it is executing - whether its for - while or do
delegates and dataSources
self
37. Why properties?
safety - subclassability and makes code look more consistent with C structs
NSBundle
pointers
calling code that does the instantiation for you
38. Just a floating point number - but we always use it for graphics.
CGFloat
CGRect bounds
Hash table - Look up objects using a key to get a value.
causes the program to immediately exit from the loop it is executing - whether its for - while or do
39. After accessors have been defined in the header file...
they need to be defined in the implementation file
define it in the implemenation file
creates an instance of NSString that holds the character string
NSBundle
40. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
Model Objects[Factory Worker]
Continue
declaration and initialization of a variable
41. Class methods typically either create
Functions
draw images
new instances of the class or retrieve some global property of the class.
method
42. If the view has no subviews - create it programmatically; if it has subviews
in the dealloc - or when a Controller's view is 'unloaded'
create a XIB file
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
alloc - singleton - informational utility method?
43. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
superclass's
self
CGRect
has one root view controller
44. The root view controller typically creates the next view controller - and the next _ creates the one after that
class methods - initializers
view controller
instance variable of an object is valid
callbacks
45. @property declares - and _ implements the setter and getter...
NSCoder
self
@synthesize
a mechanism to enable specific callbacks
46. Use of class methods - there are three...
alloc - singleton - informational utility method?
receiver[message]
size and position
accessors - individually we call them 'getters' and 'setters'
47. 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
selector[message]
parentViewController
Continue
type - name and value
48. Classes describe two things...
upper
declaration and initialization of a variable
a mechanism to enable specific callbacks
attributes - behavior
49. A view is an...
has one root view controller
CGRect bounds
instance of UIView or one of its subclasses
instance variables
50. 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