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. 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
2. Number one use of protocols in iOS...
delegates and dataSources
instance variable of an object is valid
retain
collection of collections - NSArray of an NSArray
3. Defining variables - three parts...
Generic object wrapper for other non-object data types
calling code that does the instantiation for you
type - name and value
a single-array can contain objects of different types
4. Origin of a view's coordinate system is _ left
collection of collections - NSArray of an NSArray
nil
upper
creating an initializer
5. UITableViewController is a subclass of...
UIViewController
for inheritance - adopting the superclasses implementation
rectangular
Hash table - Look up objects using a key to get a value.
6. Each _ has a 'designated' initializer method....
data source - delegate and view controller
class
safety - subclassability and makes code look more consistent with C structs
NSCoder
7. Only exists within the statement block there defined - outside of the block is fine
Is a placeholder object
upper
variable scope - if defined within a block
you always return the newly initialized object(return self)
8. Name of the method to be executed
selector[message]
receiver[message]
Hash table - Look up objects using a key to get a value.
Data Encapsulation
9. @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.
unordered collection of objects - objects must be unique
@synthesize
storage
10. In any application with UINavigationController - the navigation controller...
Used to find the time right now or to store past or future time/dates
Maintenance of state
has one root view controller
Abstraction
11. A function in the objective c library that simply displays or logs it's argument
selector[message]
NSLog routine
@synthesize
pointer to an object
12. A responder is responsible for...
attributes - behavior
a mechanism to enable specific callbacks
Instantiation from scratch
receiving and handling events that are associated with it
13. Primitives and C Structures...
creating an initializer
NSLog routine
delegates and dataSources
cannot be added to an array
14. initWithFrame: the designated initializer for UIView gives the view
size and position
callbacks
in the dealloc - or when a Controller's view is 'unloaded'
wait until the loop finishes processing the event - at the end release it
15. Three ways instances are created...
to give it someone else - or another object
an object's property
ready-made instances - instantiation from scratch - and nib based instantiation
define it in the implemenation file
16. NSString objects are usually sent _ rather than _...
(id)initWithFrame:(CGRect)aRect;
designated initializer
%d
copy - retain
17. A UITableViewController can fill all three roles of...
data source - view controller and delegate
parentViewController
Is a placeholder object
class
18. You use _ to implement the view
Hash table - Look up objects using a key to get a value.
the message release to all its entries
storage
CGRect bounds
19. Each class picks one _ as it's designated initializer....
attributes - behavior
designated initializer
Model Objects[Factory Worker]
initializer
20. [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.
causes the program to immediately exit from the loop it is executing - whether its for - while or do
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
data
first responder
21. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
you must import the header file of that class
class methods - initializers
lowercase - uppercase
data
22. After accessors have been defined in the header file...
they need to be defined in the implementation file
instance variables
an object's property
delegates and dataSources
23. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
protocol
Controller Objects[Managers]
do so in viewDidLoad
message
24. Object Oriented based analogue to a function is called a...
variable scope - if defined within a block
ready-made instances - instantiation from scratch - and nib based instantiation
method
arguments[message]
25. When an NSMutableArray is deallocated - it sends...
designated initializer
CGRect bounds - GCPoint center - CGRect frame
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
the message release to all its entries
26. Proceed through the loop - jump back to the top and check again
UIViewController
initializers
Continue
alloc - singleton - informational utility method?
27. A command directed to an object is called an...
view controller
message
the array relinquishes ownership of that object and no longer has a pointer to it
view controller's initialization method
28. Classes describe two things...
attributes - behavior
the instance variables
parentViewController
pointer - class
29. The only reason to temporarily own an object - is...
its dataSource
instance
to give it someone else - or another object
UIViewController
30. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
its dataSource
viewWillDissapear: and viewWillAppear:
nil
initializers
31. Just a floating point number - but we always use it for graphics.
view controller
%d
CGFloat
declaration and initialization of a variable
32. Execution of the break statement...
upper
causes the program to immediately exit from the loop it is executing - whether its for - while or do
UIViewController
viewWillDissapear: and viewWillAppear:
33. 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
34. 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
35. Why properties?
rectangular
calling code that does the instantiation for you
designated initializer
safety - subclassability and makes code look more consistent with C structs
36. A callback is a function that is supplied in advance of an event - and...
Functions
instance variables
is called every time the event occurs
receiver - selector - arguments
37. 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.
rectangular
C Functionn
first responder
type - name and value
38. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
instance of UIView or one of its subclasses
protocol
NSLog routine
39. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
instance of UIView or one of its subclasses
data
arguments[message]
self
40. What does autorelease mean?
methods
receiver[message]
view controller's initialization method
wait until the loop finishes processing the event - at the end release it
41. 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
42. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
NSBundle
Instantiation from scratch
delegates and dataSources
UIViewController
43. 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
receiver - selector - arguments
Functions
receiver
data
44. A _ handles touch events.
view
an object's property
Anytime you call a method with new - alloc or copy. You own and must release that object.
class's
45. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
C Functionn
callbacks
define it in the implemenation file
NSCoder
46. Whenever a UINavigationController is about to swap views - it sends out two messages
selector[message]
C Functionn
methods for generating an instance
viewWillDissapear: and viewWillAppear:
47. At the top of any implementation file...
you must import the header file of that class
methods
view
CGRect
48. A view represents a _ area
Abstraction
to get and set variables
rectangular
copy - retain
49. In the last line of an init method...
receiver
implementation
you always return the newly initialized object(return self)
Object wrapper around primitive types like int - float - double - BOOl
50. 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