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. In Objective C arrays can hold only...
Hash table - Look up objects using a key to get a value.
CGRect bounds
C Functionn
references to objects
2. Also if you send the NSObject the _ message - you own that object.
retain
is called every time the event occurs
methods for generating an instance
upper
3. 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
4. Proceed through the loop - jump back to the top and check again
Continue
receiver - selector - arguments
you always return the newly initialized object(return self)
instance variables
5. NSSet...
unordered collection of objects - objects must be unique
first responder
data
self
6. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
define it in the implemenation file
Object wrapper around primitive types like int - float - double - BOOl
object
only the class and subclasses can access
7. 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.
class
creating an initializer
Ready-Made Instance
is an instance of that class
8. NSNumber - class...
Hash table - Look up objects using a key to get a value.
type - name and value
safety - subclassability and makes code look more consistent with C structs
Object wrapper around primitive types like int - float - double - BOOl
9. Defining variables - three parts...
variable scope - if defined within a block
implementation
array[class - NSMutableArray]
type - name and value
10. Each _ has a 'designated' initializer method....
@synthesize
CGFloat
object
class
11. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
message
position
is called every time the event occurs
12. NSArray - important methods...
a single-array can contain objects of different types
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
declaration and initialization of a variable
define it in the implemenation file
13. UIViewController has several methods that get called at certain times...
viewWillDissapear: and viewWillAppear:
upper
CGFloat
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
14. 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
15. Instance Variables by default are called @protected meaning...
Core Graphics Framework
an object's property
Model Objects[Factory Worker]
only the class and subclasses can access
16. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
data source - view controller and delegate
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Instantiation from scratch
creating an initializer
17. The only reason to temporarily own an object - is...
to give it someone else - or another object
lowercase - uppercase
only the innermost loop in which the break is executed is terminated
designated initializer
18. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
receiver
will be ignored
header files declare
super - self
19. After accessors have been defined in the header file...
first responder
in the dealloc - or when a Controller's view is 'unloaded'
they need to be defined in the implementation file
pointer - class
20. Reducing details to focus on the core concepts
You take ownership for an object you want to keep a pointer to
class methods - initializers
Abstraction
unordered collection of objects - objects must be unique
21. 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
22. A callback is a function that is supplied in advance of an event - and...
variable scope - if defined within a block
is called every time the event occurs
Hash table - Look up objects using a key to get a value.
instance variables
23. 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
Maintenance of state
pointer to an object
its dataSource
Used to find the time right now or to store past or future time/dates
24. Whenever a UINavigationController is about to swap views - it sends out two messages
viewWillDissapear: and viewWillAppear:
NSBundle
parentViewController
define it in the implemenation file
25. To load a Xib file manually - you use _
You take ownership for an object you want to keep a pointer to
initializers
declaration and initialization of a variable
NSBundle
26. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
Maintenance of state
pointer to an object
the array relinquishes ownership of that object and no longer has a pointer to it
27. All objects are accessed using...
pointers
self
draw images
Data Encapsulation
28. In general - class methods tend to be factory methods - that is...
UIView
Generic object wrapper for other non-object data types
they need to be defined in the implementation file
methods for generating an instance
29. The class is responsible for what instance variables the instance has - but not the _ of those variables.
Used to find the time right now or to store past or future time/dates
Abstraction
values
create a XIB file
30. Prefixing a character string with an @ symbol [specific - NSString class]...
UIViewController
You take ownership for an object you want to keep a pointer to
creates an instance of NSString that holds the character string
class's
31. 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
32. In the last line of an init method...
ready-made instances - instantiation from scratch - and nib based instantiation
instance of UIView or one of its subclasses
you always return the newly initialized object(return self)
message
33. A pointer to the object being asked to execute a method
receiver[message]
callbacks
safety - subclassability and makes code look more consistent with C structs
NSCoder
34. Use of class methods - there are three...
selector[message]
alloc - singleton - informational utility method?
the message release to all its entries
data source - delegate and view controller
35. If a break statement is executed from within a set of nested loops...
will be ignored
nil
array[class - NSMutableArray]
only the innermost loop in which the break is executed is terminated
36. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
CGRect
instance
creating an initializer
@interface ClassName:SuperClassName
37. A method in a _ is required unless its preceded by an @optional.
protocol
message
viewWillDissapear: and viewWillAppear:
accessors - individually we call them 'getters' and 'setters'
38. 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
Hash table - Look up objects using a key to get a value.
initializer
lowercase - uppercase
39. You use _ to implement the view
safety - subclassability and makes code look more consistent with C structs
CGRect bounds
NSCoder
instance variables
40. In any application with UINavigationController - the navigation controller...
CGRect
has one root view controller
NSBundle
object
41. A _ handles touch events.
storage
alloc - singleton - informational utility method?
only the class and subclasses can access
view
42. A message is always contained in square brackets - and has three parts
delegates and dataSources
receiver - selector - arguments
receiver[message]
superclass's
43. Origin of a view's coordinate system is _ left
upper
Is a placeholder object
view
protocol
44. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
class methods - initializers
variable scope - if defined within a block
message
is an instance of that class
45. Name of the method to be executed
wait until the loop finishes processing the event - at the end release it
message
parentViewController
selector[message]
46. How do I implement my drawRect?
attributes - behavior
Continue
will be ignored
Core Graphics Framework
47. When an object is removed from an NSMutableArray - that object is sent the message release;...
receiver
copy - retain
self
the array relinquishes ownership of that object and no longer has a pointer to it
48. Also - because arrays only hold a pointer to an object...
dealloc - is called on the object & the object's memory is returned to the heap
Instantiation from scratch
instance of UIView or one of its subclasses
a single-array can contain objects of different types
49. 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
50. 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
receiver
Encapsulation of functionality
super - self
pointer to an object