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 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
2. Designated initializer makes sure that every...
instance variable of an object is valid
initializer
the array becomes an owner of that object and has a pointer to it.
Object wrapper around primitive types like int - float - double - BOOl
3. 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 _.
will be ignored
Model Objects[Factory Worker]
nil
viewWillDissapear: and viewWillAppear:
4. An instance is a device for maintaining state. It's a box for _ of data.
creating an initializer
copy - retain
Continue
storage
5. A _ handles touch events.
new instances of the class or retrieve some global property of the class.
is called every time the event occurs
an object's property
view
6. A pointer to the object being asked to execute a method
receiver[message]
NSCoder
receiving and handling events that are associated with it
C Functionn
7. Values to be supplied as the parameters to the method
C Functionn
CGFloat
data
arguments[message]
8. In Cocoa Touch - the table view asks another object _ what it should display...
Core Graphics Framework
its dataSource
data source - delegate and view controller
subview(s)
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
rectangular
parentViewController
create a XIB file
initializer
10. If you have extra work you want to do on the view...
upper
you must import the header file of that class
do so in viewDidLoad
viewWillDissapear: and viewWillAppear:
11. UITableViewController is a subclass of...
creating an initializer
UIViewController
do so in viewDidLoad
class
12. NSValue - class...
%d
an object's property
Generic object wrapper for other non-object data types
the array relinquishes ownership of that object and no longer has a pointer to it
13. 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
14. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
type - name and value
retain
object
instance variables
15. @property declares - and _ implements the setter and getter...
Anytime you call a method with new - alloc or copy. You own and must release that object.
@synthesize
a mechanism to enable specific callbacks
CF - Ref
16. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
wait until the loop finishes processing the event - at the end release it
self
draw images
Anytime you call a method with new - alloc or copy. You own and must release that object.
17. Views have three properties related to their location and size: @property _ _;
storage
CGRect bounds - GCPoint center - CGRect frame
%d
rectangular
18. NSArray - important methods...
CF - Ref
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
they need to be defined in the implementation file
%d
19. Number one use of protocols in iOS...
delegates and dataSources
a mechanism to enable specific callbacks
You take ownership for an object you want to keep a pointer to
NSBundle
20. 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.
unordered collection of objects - objects must be unique
@synthesize
instance variables
self
21. The class is responsible for what instance variables the instance has - but not the _ of those variables.
message
values
calling code that does the instantiation for you
methods for generating an instance
22. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
instance
a mechanism to enable specific callbacks
super - self
23. 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
NSCoder
Functions
in the dealloc - or when a Controller's view is 'unloaded'
arguments[message]
24. class methods...
group of global functions already assigned to this class
Maintenance of state
to give it someone else - or another object
Anytime you call a method with new - alloc or copy. You own and must release that object.
25. When do you take ownership?...
Anytime you call a method with new - alloc or copy. You own and must release that object.
arguments[message]
instance
wait until the loop finishes processing the event - at the end release it
26. NSSet...
unordered collection of objects - objects must be unique
pointer - class
(id)initWithFrame:(CGRect)aRect;
delegates and dataSources
27. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
Encapsulation of functionality
Hash table - Look up objects using a key to get a value.
type - name and value
class methods - initializers
28. 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
instance variables
Maintenance of state
@interface ClassName:SuperClassName
attributes - behavior
29. 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
30. At the top of any implementation file...
wait until the loop finishes processing the event - at the end release it
you must import the header file of that class
define it in the implemenation file
setPossessionName
31. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
Data Encapsulation
only the innermost loop in which the break is executed is terminated
draw images
NSCoder
32. When an object is removed from an NSMutableArray - that object is sent the message release;...
the array relinquishes ownership of that object and no longer has a pointer to it
CF - Ref
receiver
super - self
33. A UITableViewController can fill all three roles of...
protocol
data source - view controller and delegate
CGRect
data source - delegate and view controller
34. When an object is added to a NSMutableArray - that object is sent the message to retain;...
methods
will be ignored
is called every time the event occurs
the array becomes an owner of that object and has a pointer to it.
35. Name of the method to be executed
selector[message]
object
instance variable of an object is valid
declaration and initialization of a variable
36. NSDate - class...
Encapsulation of functionality
Used to find the time right now or to store past or future time/dates
initializer
receiving and handling events that are associated with it
37. How do I implement my drawRect?
Core Graphics Framework
instance variables
designated initializer
Is a placeholder object
38. 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 _.
class's
array[class - NSMutableArray]
subview(s)
super - self
39. Whenever a UINavigationController is about to swap views - it sends out two messages
Core Graphics Framework
ready-made instances - instantiation from scratch - and nib based instantiation
class
viewWillDissapear: and viewWillAppear:
40. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
the message release to all its entries
view controller
CGRect
an object's property
41. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
Model Objects[Factory Worker]
Controller Objects[Managers]
super - self
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
42. UIViewController has several methods that get called at certain times...
selector[message]
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
message
attributes - behavior
43. A function in the objective c library that simply displays or logs it's argument
NSLog routine
Functions
subview(s)
CGRect bounds - GCPoint center - CGRect frame
44. In any application with UINavigationController - the navigation controller...
data
callbacks
has one root view controller
variable scope - if defined within a block
45. UIView - designated initializer...
(id)initWithFrame:(CGRect)aRect;
designated initializer
cannot be added to an array
Functions
46. Three ways instances are created...
NSBundle
ready-made instances - instantiation from scratch - and nib based instantiation
attributes - behavior
method
47. Primitives and C Structures...
C Functionn
cannot be added to an array
object
group of global functions already assigned to this class
48. Each _ has a 'designated' initializer method....
an object's property
first responder
only the innermost loop in which the break is executed is terminated
class
49. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
designated initializer
calling code that does the instantiation for you
view controller
Is a placeholder object
50. NSString *s = @'Hello - World'; is an example of...
the instance variables
declaration and initialization of a variable
array[class - NSMutableArray]
Functions