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. NSString objects are usually sent _ rather than _...
only the innermost loop in which the break is executed is terminated
type - name and value
superclass's
copy - retain
2. A command directed to an object is called an...
pointers
selector[message]
message
Object wrapper around primitive types like int - float - double - BOOl
3. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
parentViewController
class methods - initializers
type - name and value
is called every time the event occurs
4. The class is responsible for what instance variables the instance has - but not the _ of those variables.
Ready-Made Instance
values
delegates and dataSources
to get and set variables
5. class methods...
group of global functions already assigned to this class
size and position
to give it someone else - or another object
create a XIB file
6. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
@synthesize
receiver
Ready-Made Instance
size and position
7. In a class method you cannot access...
the instance variables
(id)initWithFrame:(CGRect)aRect;
reuse your cells
view
8. To load a Xib file manually - you use _
lowercase - uppercase
creating an initializer
values
NSBundle
9. Delegation is an object oriented approach to
callbacks
you must import the header file of that class
is called every time the event occurs
the message release to all its entries
10. Reference Counting...
ordered collection of objects - immutable
You take ownership for an object you want to keep a pointer to
Object wrapper around primitive types like int - float - double - BOOl
NSBundle
11. 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
instance of UIView or one of its subclasses
Encapsulation of functionality
accessors - individually we call them 'getters' and 'setters'
the message release to all its entries
12. 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
Functions
group of global functions already assigned to this class
new instances of the class or retrieve some global property of the class.
Anytime you call a method with new - alloc or copy. You own and must release that object.
13. 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
14. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
instance variable of an object is valid
@interface ClassName:SuperClassName
for inheritance - adopting the superclasses implementation
view
15. Name of the method to be executed
receiving and handling events that are associated with it
Instantiation from scratch
selector[message]
Data Encapsulation
16. 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.
position
pointers
implementation
object
17. Files Owner...
protocol
UIViewController
Is a placeholder object
accessors - individually we call them 'getters' and 'setters'
18. When an NSMutableArray is deallocated - it sends...
Hash table - Look up objects using a key to get a value.
class's
CGRect
the message release to all its entries
19. 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
20. [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.
creates an instance of NSString that holds the character string
data source - delegate and view controller
lowercase - uppercase
data
21. Proceed through the loop - jump back to the top and check again
superclass's
unordered collection of objects - objects must be unique
class
Continue
22. Class methods typically either create
is called every time the event occurs
CGRect bounds - GCPoint center - CGRect frame
lowercase - uppercase
new instances of the class or retrieve some global property of the class.
23. Ready-made instances...
calling code that does the instantiation for you
C Functionn
(id)initWithFrame:(CGRect)aRect;
causes the program to immediately exit from the loop it is executing - whether its for - while or do
24. UIView - designated initializer...
object
superclass's
protocol
(id)initWithFrame:(CGRect)aRect;
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
data source - view controller and delegate
cannot be added to an array
storage
26. 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.
NSBundle
Data Encapsulation
instance
method
27. 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
values
lowercase - uppercase
group of global functions already assigned to this class
Maintenance of state
28. Number one use of protocols in iOS...
Anytime you call a method with new - alloc or copy. You own and must release that object.
delegates and dataSources
the array relinquishes ownership of that object and no longer has a pointer to it
viewWillDissapear: and viewWillAppear:
29. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
receiving and handling events that are associated with it
designated initializer
draw images
the instance variables
30. You use _ to implement the view
CGRect bounds - GCPoint center - CGRect frame
Core Graphics Framework
only the innermost loop in which the break is executed is terminated
CGRect bounds
31. 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.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
creating an initializer
position
'getters' and 'setters'
32. initWithFrame: the designated initializer for UIView gives the view
size and position
pointers
setPossessionName
'getters' and 'setters'
33. Object Oriented based analogue to a function is called a...
method
view controller's initialization method
You take ownership for an object you want to keep a pointer to
they need to be defined in the implementation file
34. When an object is added to a NSMutableArray - that object is sent the message to retain;...
the array becomes an owner of that object and has a pointer to it.
they need to be defined in the implementation file
methods for generating an instance
Instantiation from scratch
35. All objects are accessed using...
draw images
rectangular
header files declare
pointers
36. A function in the objective c library that simply displays or logs it's argument
(id)initWithFrame:(CGRect)aRect;
NSLog routine
message
selector[message]
37. A view represents a _ area
setPossessionName
rectangular
Is a placeholder object
position
38. At the top of any implementation file...
NSCoder
creates an instance of NSString that holds the character string
you must import the header file of that class
reuse your cells
39. Prefixing a character string with an @ symbol [specific - NSString class]...
creates an instance of NSString that holds the character string
the instance variables
class methods - initializers
You take ownership for an object you want to keep a pointer to
40. 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
41. A pointer to the object being asked to execute a method
UIView
do so in viewDidLoad
receiver[message]
CGRect bounds
42. In any application with UINavigationController - the navigation controller...
CGFloat
has one root view controller
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
(id)initWithFrame:(CGRect)aRect;
43. Only exists within the statement block there defined - outside of the block is fine
dealloc - is called on the object & the object's memory is returned to the heap
declaration and initialization of a variable
variable scope - if defined within a block
receiver[message]
44. Each class picks one _ as it's designated initializer....
Controller Objects[Managers]
in the dealloc - or when a Controller's view is 'unloaded'
NSCoder
initializer
45. NSArray - important methods...
Anytime you call a method with new - alloc or copy. You own and must release that object.
data source - delegate and view controller
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Core Graphics Framework
46. Primitives and C Structures...
NSCoder
cannot be added to an array
for inheritance - adopting the superclasses implementation
CGFloat
47. The only reason to temporarily own an object - is...
message
to give it someone else - or another object
view controller
(id)initWithFrame:(CGRect)aRect;
48. In Cocoa Touch - the table view asks another object _ what it should display...
Hash table - Look up objects using a key to get a value.
superclass's
its dataSource
callbacks
49. NSArray - class...
to give it someone else - or another object
group of global functions already assigned to this class
@interface ClassName:SuperClassName
ordered collection of objects - immutable
50. Values to be supplied as the parameters to the method
new instances of the class or retrieve some global property of the class.
receiver
variable scope - if defined within a block
arguments[message]