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. How do I implement my drawRect?
self
class methods - initializers
class's
Core Graphics Framework
2. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
super - self
C Functionn
attributes - behavior
lowercase - uppercase
3. NSString *s = @'Hello - World'; is an example of...
Controller Objects[Managers]
class
declaration and initialization of a variable
callbacks
4. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
to give it someone else - or another object
superclass's
@interface ClassName:SuperClassName
creating an initializer
5. 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
self
group of global functions already assigned to this class
Maintenance of state
only the class and subclasses can access
6. Class methods typically either create
NSLog routine
Is a placeholder object
do so in viewDidLoad
new instances of the class or retrieve some global property of the class.
7. 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
@interface ClassName:SuperClassName
Encapsulation of functionality
designated initializer
for inheritance - adopting the superclasses implementation
8. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
a single-array can contain objects of different types
group of global functions already assigned to this class
CGRect
Encapsulation of functionality
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
wait until the loop finishes processing the event - at the end release it
will be ignored
parentViewController
view controller
10. What does autorelease mean?
wait until the loop finishes processing the event - at the end release it
methods
for inheritance - adopting the superclasses implementation
selector[message]
11. UITableViewController is a subclass of...
values
@interface ClassName:SuperClassName
an object's property
UIViewController
12. In Objective C - the name of a setter method is set plus the name of the instance variable it is changing - for example PossessionName would be...
the instance variables
setPossessionName
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
rectangular
13. class methods...
the array becomes an owner of that object and has a pointer to it.
copy - retain
group of global functions already assigned to this class
message
14. When an object is added to a NSMutableArray - that object is sent the message to retain;...
CGRect bounds - GCPoint center - CGRect frame
the array becomes an owner of that object and has a pointer to it.
message
receiver[message]
15. For view controllers that are closely related - like a table view controller and its detail view controller - you can simply give them _ that point to each other.
array[class - NSMutableArray]
instance variables
Hash table - Look up objects using a key to get a value.
You take ownership for an object you want to keep a pointer to
16. Just a floating point number - but we always use it for graphics.
only the class and subclasses can access
Encapsulation of functionality
subview(s)
CGFloat
17. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
receiver
CF - Ref
in the dealloc - or when a Controller's view is 'unloaded'
Used to find the time right now or to store past or future time/dates
18. Use of class methods - there are three...
values
size and position
alloc - singleton - informational utility method?
initializer
19. 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.
Hash table - Look up objects using a key to get a value.
ready-made instances - instantiation from scratch - and nib based instantiation
creating an initializer
implementation
20. What happens when the last owner calls release?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
21. Delegation is an object oriented approach to
instance of UIView or one of its subclasses
new instances of the class or retrieve some global property of the class.
retain
callbacks
22. When do we need to release our outlets?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
23. A function in the objective c library that simply displays or logs it's argument
NSLog routine
pointers
Data Encapsulation
You take ownership for an object you want to keep a pointer to
24. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
wait until the loop finishes processing the event - at the end release it
Hash table - Look up objects using a key to get a value.
header files declare
class methods - initializers
25. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
@synthesize
object
Anytime you call a method with new - alloc or copy. You own and must release that object.
you must import the header file of that class
26. If the view has no subviews - create it programmatically; if it has subviews
receiver
Core Graphics Framework
create a XIB file
rectangular
27. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
Hash table - Look up objects using a key to get a value.
initializers
its dataSource
receiver
28. 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
Generic object wrapper for other non-object data types
subview(s)
@synthesize
Functions
29. Each _ has a 'designated' initializer method....
class
initializer
Generic object wrapper for other non-object data types
protocol
30. Hold data and know nothing about the user interface
Hash table - Look up objects using a key to get a value.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
arguments[message]
Model Objects[Factory Worker]
31. A view is an...
instance variables
class
instance of UIView or one of its subclasses
calling code that does the instantiation for you
32. When an object is removed from an NSMutableArray - that object is sent the message release;...
rectangular
You take ownership for an object you want to keep a pointer to
the array relinquishes ownership of that object and no longer has a pointer to it
super - self
33. Asking a class or object to execute a method
is an instance of that class
cannot be added to an array
message
class's
34. When the message endEditing: is sent to a view - if it or any of its subviews or currently the _ - it will resign its first responder statues - and the keyboard will be dismissed.
method
first responder
'getters' and 'setters'
variable scope - if defined within a block
35. Defining variables - three parts...
is an instance of that class
type - name and value
new instances of the class or retrieve some global property of the class.
arguments[message]
36. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
protocol
NSLog routine
instance variables
super - self
37. Ready-made instances...
in the dealloc - or when a Controller's view is 'unloaded'
calling code that does the instantiation for you
is called every time the event occurs
dealloc - is called on the object & the object's memory is returned to the heap
38. NSArray - class...
a mechanism to enable specific callbacks
ordered collection of objects - immutable
you always return the newly initialized object(return self)
NSCoder
39. Primitives and C Structures...
object
wait until the loop finishes processing the event - at the end release it
cannot be added to an array
message
40. A view exists within a hierarchy. The window (an instance of UIWindow) is a view and the root of the hierarchy. It has _ (that appear on the window). Those views can also have _.
Generic object wrapper for other non-object data types
variable scope - if defined within a block
(id)initWithFrame:(CGRect)aRect;
subview(s)
41. Classes describe two things...
unordered collection of objects - objects must be unique
(id)initWithFrame:(CGRect)aRect;
protocol
attributes - behavior
42. Name of the method to be executed
You take ownership for an object you want to keep a pointer to
Ready-Made Instance
instance
selector[message]
43. 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
44. All objects are accessed using...
pointers
pointer - class
the array relinquishes ownership of that object and no longer has a pointer to it
for inheritance - adopting the superclasses implementation
45. NSDictionary...
Anytime you call a method with new - alloc or copy. You own and must release that object.
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
creates an instance of NSString that holds the character string
46. 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
Core Graphics Framework
in the dealloc - or when a Controller's view is 'unloaded'
array[class - NSMutableArray]
a mechanism to enable specific callbacks
47. Designated initializer makes sure that every...
a single-array can contain objects of different types
do so in viewDidLoad
instance variable of an object is valid
only the class and subclasses can access
48. Files Owner...
define it in the implemenation file
new instances of the class or retrieve some global property of the class.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Is a placeholder object
49. UIViewController has several methods that get called at certain times...
receiver - selector - arguments
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
object
self
50. NSSet...
calling code that does the instantiation for you
array[class - NSMutableArray]
unordered collection of objects - objects must be unique
Data Encapsulation