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. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
group of global functions already assigned to this class
you always return the newly initialized object(return self)
self
receiver
2. Origin of a view's coordinate system is _ left
variable scope - if defined within a block
upper
setPossessionName
pointer - class
3. 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
4. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
values
Continue
upper
5. A message is always contained in square brackets - and has three parts
a single-array can contain objects of different types
the array becomes an owner of that object and has a pointer to it.
receiver - selector - arguments
collection of collections - NSArray of an NSArray
6. Primitives and C Structures...
Core Graphics Framework
Anytime you call a method with new - alloc or copy. You own and must release that object.
cannot be added to an array
subview(s)
7. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
designated initializer
ready-made instances - instantiation from scratch - and nib based instantiation
CGRect bounds - GCPoint center - CGRect frame
@interface ClassName:SuperClassName
8. A function in the objective c library that simply displays or logs it's argument
they need to be defined in the implementation file
designated initializer
nil
NSLog routine
9. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
receiver
superclass's
instance variables
pointer to an object
10. To load a Xib file manually - you use _
Model Objects[Factory Worker]
alloc - singleton - informational utility method?
first responder
NSBundle
11. Use of class methods - there are three...
NSBundle
in the dealloc - or when a Controller's view is 'unloaded'
is called every time the event occurs
alloc - singleton - informational utility method?
12. In Objective C arrays can hold only...
will be ignored
You take ownership for an object you want to keep a pointer to
cannot be added to an array
references to objects
13. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
to give it someone else - or another object
Is a placeholder object
lowercase - uppercase
ready-made instances - instantiation from scratch - and nib based instantiation
14. Object Oriented based analogue to a function is called a...
selector[message]
method
calling code that does the instantiation for you
array[class - NSMutableArray]
15. 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
delegates and dataSources
Generic object wrapper for other non-object data types
the array relinquishes ownership of that object and no longer has a pointer to it
16. NSArray - class...
@synthesize
receiver
ordered collection of objects - immutable
You take ownership for an object you want to keep a pointer to
17. How do I implement my drawRect?
CGRect
Is a placeholder object
references to objects
Core Graphics Framework
18. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
Abstraction
superclass's
CGFloat
19. A delegate is a pointer to an object with a set of methods the delegate-holder knows how to call. In other words - it's _ from a later created object
creating an initializer
a mechanism to enable specific callbacks
Functions
safety - subclassability and makes code look more consistent with C structs
20. UITableViewController is a subclass of...
message
pointers
UIViewController
values
21. Why properties?
safety - subclassability and makes code look more consistent with C structs
lowercase - uppercase
data source - delegate and view controller
will be ignored
22. A UITableViewController can fill all three roles of...
%d
data source - view controller and delegate
object
Is a placeholder object
23. Files Owner...
Is a placeholder object
rectangular
CGFloat
data source - delegate and view controller
24. The class is responsible for what instance variables the instance has - but not the _ of those variables.
dealloc - is called on the object & the object's memory is returned to the heap
values
class's
size and position
25. A pointer to the object being asked to execute a method
receiver[message]
is an instance of that class
UIViewController
storage
26. When an NSMutableArray is deallocated - it sends...
reuse your cells
Generic object wrapper for other non-object data types
the message release to all its entries
the array relinquishes ownership of that object and no longer has a pointer to it
27. Classes describe two things...
cannot be added to an array
Hash table - Look up objects using a key to get a value.
attributes - behavior
type - name and value
28. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
C Functionn
instance variables
pointer - class
retain
29. super - is used...
message
for inheritance - adopting the superclasses implementation
methods for generating an instance
group of global functions already assigned to this class
30. Reducing details to focus on the core concepts
group of global functions already assigned to this class
Abstraction
is called every time the event occurs
arguments[message]
31. initWithFrame: the designated initializer for UIView gives the view
in the dealloc - or when a Controller's view is 'unloaded'
CGFloat
size and position
values
32. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
delegates and dataSources
Instantiation from scratch
cannot be added to an array
variable scope - if defined within a block
33. Delegation is an object oriented approach to
you always return the newly initialized object(return self)
Encapsulation of functionality
message
callbacks
34. 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
define it in the implemenation file
the instance variables
upper
35. What does autorelease mean?
wait until the loop finishes processing the event - at the end release it
'getters' and 'setters'
Functions
accessors - individually we call them 'getters' and 'setters'
36. NSDictionary...
view
subview(s)
Encapsulation of functionality
Hash table - Look up objects using a key to get a value.
37. Class methods do not operate on an _ or have any access to _ variables....
instance of UIView or one of its subclasses
collection of collections - NSArray of an NSArray
instance
the instance variables
38. 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 _.
nil
class's
only the class and subclasses can access
receiver
39. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
safety - subclassability and makes code look more consistent with C structs
receiver
class methods - initializers
instance of UIView or one of its subclasses
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
parentViewController
type - name and value
Data Encapsulation
message
41. NSArray - important methods...
class methods - initializers
rectangular
creates an instance of NSString that holds the character string
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
42. Prefixing a character string with an @ symbol [specific - NSString class]...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
initializers
creates an instance of NSString that holds the character string
instance variable of an object is valid
43. The only reason to temporarily own an object - is...
array[class - NSMutableArray]
to give it someone else - or another object
NSBundle
Is a placeholder object
44. 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
only the innermost loop in which the break is executed is terminated
Functions
to get and set variables
the message release to all its entries
45. NSValue - class...
dealloc - is called on the object & the object's memory is returned to the heap
Generic object wrapper for other non-object data types
pointer to an object
implementation
46. Reference Counting...
view controller's initialization method
You take ownership for an object you want to keep a pointer to
ready-made instances - instantiation from scratch - and nib based instantiation
Model Objects[Factory Worker]
47. The integer prefix is...
implementation
Used to find the time right now or to store past or future time/dates
%d
initializer
48. Core foundation classes are prefixed with _ and suffixed with _
variable scope - if defined within a block
instance of UIView or one of its subclasses
Used to find the time right now or to store past or future time/dates
CF - Ref
49. It's class is sent the message alloc - which creates an instance of that class and returns a pointer to it - and then that instance is sent the message init - which gives its instance variables initial values.
ready-made instances - instantiation from scratch - and nib based instantiation
CF - Ref
creating an initializer
for inheritance - adopting the superclasses implementation
50. When an object is added to a NSMutableArray - that object is sent the message to retain;...
method
you always return the newly initialized object(return self)
view controller
the array becomes an owner of that object and has a pointer to it.