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. If the view has no subviews - create it programmatically; if it has subviews
you must import the header file of that class
create a XIB file
type - name and value
Hash table - Look up objects using a key to get a value.
2. 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
3. NSNumber - class...
CGRect bounds - GCPoint center - CGRect frame
view
Object wrapper around primitive types like int - float - double - BOOl
Is a placeholder object
4. 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
5. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
@synthesize
Instantiation from scratch
receiver
they need to be defined in the implementation file
6. @property - is using methods...
@synthesize
to get and set variables
wait until the loop finishes processing the event - at the end release it
view
7. id is a...
instance variables
pointer to an object
an object's property
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
8. A callback is a function that is supplied in advance of an event - and...
parentViewController
is called every time the event occurs
CGRect
(id)initWithFrame:(CGRect)aRect;
9. UIViewController has several methods that get called at certain times...
define it in the implemenation file
Maintenance of state
arguments[message]
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
10. The integer prefix is...
first responder
%d
ready-made instances - instantiation from scratch - and nib based instantiation
has one root view controller
11. 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 _.
instance variables
instance of UIView or one of its subclasses
header files declare
subview(s)
12. In Cocoa Touch - the table view asks another object _ what it should display...
NSLog routine
methods for generating an instance
Continue
its dataSource
13. Views have three properties related to their location and size: @property _ _;
collection of collections - NSArray of an NSArray
declaration and initialization of a variable
new instances of the class or retrieve some global property of the class.
CGRect bounds - GCPoint center - CGRect frame
14. 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
15. Origin of a view's coordinate system is _ left
rectangular
create a XIB file
calling code that does the instantiation for you
upper
16. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
a mechanism to enable specific callbacks
Ready-Made Instance
the array becomes an owner of that object and has a pointer to it.
its dataSource
17. In general - class methods tend to be factory methods - that is...
receiver[message]
view controller's initialization method
methods for generating an instance
parentViewController
18. Three ways instances are created...
data source - view controller and delegate
Instantiation from scratch
ready-made instances - instantiation from scratch - and nib based instantiation
instance of UIView or one of its subclasses
19. Delegation is an object oriented approach to
Core Graphics Framework
callbacks
copy - retain
Is a placeholder object
20. Object Oriented based analogue to a function is called a...
has one root view controller
pointers
Generic object wrapper for other non-object data types
method
21. Typically the designated initializer has parameters for the most important and frequently used _ of an object
Maintenance of state
selector[message]
position
instance variables
22. A _ handles touch events.
NSLog routine
view
type - name and value
super - self
23. Only exists within the statement block there defined - outside of the block is fine
declaration and initialization of a variable
delegates and dataSources
alloc - singleton - informational utility method?
variable scope - if defined within a block
24. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
message
only the innermost loop in which the break is executed is terminated
CGRect
viewWillDissapear: and viewWillAppear:
25. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
Controller Objects[Managers]
view
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Anytime you call a method with new - alloc or copy. You own and must release that object.
26. 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
27. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
Generic object wrapper for other non-object data types
pointer to an object
instance of UIView or one of its subclasses
header files declare
28. Also - because arrays only hold a pointer to an object...
ordered collection of objects - immutable
a single-array can contain objects of different types
Object wrapper around primitive types like int - float - double - BOOl
group of global functions already assigned to this class
29. Asking a class or object to execute a method
NSCoder
new instances of the class or retrieve some global property of the class.
self
message
30. Center and frame are used to _ your view
is an instance of that class
lowercase - uppercase
CGFloat
position
31. NSString *s = @'Hello - World'; is an example of...
the instance variables
UIView
protocol
declaration and initialization of a variable
32. Proceed through the loop - jump back to the top and check again
copy - retain
nil
Continue
designated initializer
33. An instance is a device for maintaining state. It's a box for _ of data.
view controller
dealloc - is called on the object & the object's memory is returned to the heap
storage
retain
34. 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 mechanism to enable specific callbacks
position
instance variables
implementation
35. Instance Variables by default are called @protected meaning...
only the class and subclasses can access
methods
the instance variables
(id)initWithFrame:(CGRect)aRect;
36. 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
Encapsulation of functionality
will be ignored
Anytime you call a method with new - alloc or copy. You own and must release that object.
an object's property
37. A UITableView usually needs three different pieces...
instance
data source - delegate and view controller
creating an initializer
the array relinquishes ownership of that object and no longer has a pointer to it
38. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
data
receiver[message]
class methods - initializers
attributes - behavior
39. 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
lowercase - uppercase
parentViewController
the instance variables
the array relinquishes ownership of that object and no longer has a pointer to it
40. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
is an instance of that class
Maintenance of state
the array relinquishes ownership of that object and no longer has a pointer to it
super - self
41. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
copy - retain
Hash table - Look up objects using a key to get a value.
data source - view controller and delegate
42. All objects are accessed using...
a mechanism to enable specific callbacks
the message release to all its entries
pointers
CGFloat
43. After accessors have been defined in the header file...
collection of collections - NSArray of an NSArray
arguments[message]
they need to be defined in the implementation file
rectangular
44. If a break statement is executed from within a set of nested loops...
is called every time the event occurs
only the innermost loop in which the break is executed is terminated
for inheritance - adopting the superclasses implementation
class's
45. The root view controller typically creates the next view controller - and the next _ creates the one after that
view controller
Functions
data source - delegate and view controller
rectangular
46. Ready-made instances...
Used to find the time right now or to store past or future time/dates
calling code that does the instantiation for you
%d
is an instance of that class
47. NSArray - important methods...
references to objects
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
will be ignored
viewWillDissapear: and viewWillAppear:
48. UIView - designated initializer...
(id)initWithFrame:(CGRect)aRect;
class
data source - delegate and view controller
Is a placeholder object
49. 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
the array becomes an owner of that object and has a pointer to it.
size and position
declaration and initialization of a variable
50. Prefixing a character string with an @ symbol [specific - NSString class]...
creates an instance of NSString that holds the character string
selector[message]
NSLog routine
initializer