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. 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 _.
storage
values
subview(s)
Is a placeholder object
2. Typically the designated initializer has parameters for the most important and frequently used _ of an object
ready-made instances - instantiation from scratch - and nib based instantiation
data source - view controller and delegate
cannot be added to an array
instance variables
3. 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
4. Property List...
Maintenance of state
collection of collections - NSArray of an NSArray
arguments[message]
message
5. NSString *s = @'Hello - World'; is an example of...
group of global functions already assigned to this class
NSLog routine
declaration and initialization of a variable
Generic object wrapper for other non-object data types
6. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
Generic object wrapper for other non-object data types
callbacks
methods for generating an instance
@interface ClassName:SuperClassName
7. [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.
wait until the loop finishes processing the event - at the end release it
data
the message release to all its entries
alloc - singleton - informational utility method?
8. Reference Counting...
the message release to all its entries
an object's property
wait until the loop finishes processing the event - at the end release it
You take ownership for an object you want to keep a pointer to
9. A pointer to the object being asked to execute a method
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
receiver[message]
subview(s)
unordered collection of objects - objects must be unique
10. super - is used...
Used to find the time right now or to store past or future time/dates
Abstraction
'getters' and 'setters'
for inheritance - adopting the superclasses implementation
11. A _ handles touch events.
view
Abstraction
upper
size and position
12. A view is a subclass of _
instance variables
UIView
class
arguments[message]
13. Files Owner...
to get and set variables
view
Is a placeholder object
collection of collections - NSArray of an NSArray
14. Each _ has a 'designated' initializer method....
class
draw images
callbacks
UIView
15. Just a floating point number - but we always use it for graphics.
CGFloat
selector[message]
they need to be defined in the implementation file
create a XIB file
16. Object Oriented based analogue to a function is called a...
creating an initializer
method
Anytime you call a method with new - alloc or copy. You own and must release that object.
class
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
pointer to an object
lowercase - uppercase
delegates and dataSources
18. In Cocoa Touch - the table view asks another object _ what it should display...
CGRect
its dataSource
group of global functions already assigned to this class
initializers
19. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
receiving and handling events that are associated with it
Generic object wrapper for other non-object data types
will be ignored
20. Any individual object belonging to any class...
calling code that does the instantiation for you
to get and set variables
is an instance of that class
draw images
21. 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 _.
Instantiation from scratch
nil
the instance variables
do so in viewDidLoad
22. NSArray - class...
ordered collection of objects - immutable
they need to be defined in the implementation file
implementation
C Functionn
23. An instance is a device for maintaining state. It's a box for _ of data.
unordered collection of objects - objects must be unique
storage
safety - subclassability and makes code look more consistent with C structs
array[class - NSMutableArray]
24. Designated initializer makes sure that every...
instance variable of an object is valid
to get and set variables
position
attributes - behavior
25. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
selector[message]
C Functionn
NSBundle
26. Asking a class or object to execute a method
message
variable scope - if defined within a block
Ready-Made Instance
alloc - singleton - informational utility method?
27. NSDate - class...
upper
instance variable of an object is valid
(id)initWithFrame:(CGRect)aRect;
Used to find the time right now or to store past or future time/dates
28. NSArray - important methods...
@interface ClassName:SuperClassName
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
implementation
cannot be added to an array
29. Name of the method to be executed
selector[message]
array[class - NSMutableArray]
Functions
subview(s)
30. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
receiver
@interface ClassName:SuperClassName
rectangular
31. 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
32. 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....
define it in the implemenation file
pointer - class
Instantiation from scratch
alloc - singleton - informational utility method?
33. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
protocol
Instantiation from scratch
instance variable of an object is valid
message
34. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
super - self
message
C Functionn
data source - delegate and view controller
35. 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.
type - name and value
Ready-Made Instance
in the dealloc - or when a Controller's view is 'unloaded'
instance variables
36. A function in the objective c library that simply displays or logs it's argument
NSLog routine
object
values
data source - view controller and delegate
37. A method in a _ is required unless its preceded by an @optional.
declaration and initialization of a variable
view
CGRect bounds
protocol
38. Whenever a UINavigationController is about to swap views - it sends out two messages
viewWillDissapear: and viewWillAppear:
message
CGFloat
declaration and initialization of a variable
39. Center and frame are used to _ your view
pointers
position
instance variables
wait until the loop finishes processing the event - at the end release it
40. 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.
a single-array can contain objects of different types
safety - subclassability and makes code look more consistent with C structs
implementation
Data Encapsulation
41. UIImageView is used to...
dealloc - is called on the object & the object's memory is returned to the heap
methods for generating an instance
draw images
you must import the header file of that class
42. When making a tableView always...
you must import the header file of that class
you always return the newly initialized object(return self)
pointers
reuse your cells
43. 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
for inheritance - adopting the superclasses implementation
group of global functions already assigned to this class
a mechanism to enable specific callbacks
instance variable of an object is valid
44. Only exists within the statement block there defined - outside of the block is fine
pointer to an object
instance of UIView or one of its subclasses
variable scope - if defined within a block
creates an instance of NSString that holds the character string
45. UITableViewController is a subclass of...
UIViewController
self
the array relinquishes ownership of that object and no longer has a pointer to it
rectangular
46. A view is an...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
dealloc - is called on the object & the object's memory is returned to the heap
instance variables
instance of UIView or one of its subclasses
47. Each class picks one _ as it's designated initializer....
initializer
CGRect
reuse your cells
arguments[message]
48. A UITableView usually needs three different pieces...
data source - delegate and view controller
Anytime you call a method with new - alloc or copy. You own and must release that object.
the instance variables
UIViewController
49. At the top of any implementation file...
alloc - singleton - informational utility method?
view controller
you must import the header file of that class
data
50. Three ways instances are created...
viewWillDissapear: and viewWillAppear:
Anytime you call a method with new - alloc or copy. You own and must release that object.
Functions
ready-made instances - instantiation from scratch - and nib based instantiation