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 class inherits all _ from its superclass and can add as many as it wants for its own purposes....
you must import the header file of that class
initializers
viewWillDissapear: and viewWillAppear:
methods for generating an instance
2. 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....
to get and set variables
define it in the implemenation file
message
Instantiation from scratch
3. Each _ has a 'designated' initializer method....
class
initializer
the array becomes an owner of that object and has a pointer to it.
causes the program to immediately exit from the loop it is executing - whether its for - while or do
4. A responder is responsible for...
the array becomes an owner of that object and has a pointer to it.
receiving and handling events that are associated with it
view controller's initialization method
unordered collection of objects - objects must be unique
5. Center and frame are used to _ your view
method
size and position
position
@interface ClassName:SuperClassName
6. Ready-made instances...
arguments[message]
calling code that does the instantiation for you
class's
retain
7. 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
header files declare
self
ordered collection of objects - immutable
8. It's class is sent the message alloc - which creates an instance of that class and returns a pointer to it - and then that instance is sent the message init - which gives its instance variables initial values.
view
creating an initializer
%d
retain
9. Class methods typically either create
attributes - behavior
to get and set variables
new instances of the class or retrieve some global property of the class.
parentViewController
10. In general - class methods tend to be factory methods - that is...
nil
message
methods for generating an instance
self
11. The class is responsible for what instance variables the instance has - but not the _ of those variables.
superclass's
pointer - class
group of global functions already assigned to this class
values
12. What does autorelease mean?
view controller
storage
wait until the loop finishes processing the event - at the end release it
creating an initializer
13. Asking a class or object to execute a method
(id)initWithFrame:(CGRect)aRect;
unordered collection of objects - objects must be unique
message
Encapsulation of functionality
14. Values to be supplied as the parameters to the method
initializer
CGRect bounds - GCPoint center - CGRect frame
CGRect bounds
arguments[message]
15. NSSet...
a mechanism to enable specific callbacks
Functions
unordered collection of objects - objects must be unique
header files declare
16. Name of the method to be executed
subview(s)
implementation
selector[message]
retain
17. A command directed to an object is called an...
attributes - behavior
message
storage
data source - delegate and view controller
18. Use of class methods - there are three...
a single-array can contain objects of different types
Functions
a mechanism to enable specific callbacks
alloc - singleton - informational utility method?
19. 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
20. Execution of the break statement...
ready-made instances - instantiation from scratch - and nib based instantiation
setPossessionName
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Data Encapsulation
21. Why properties?
method
safety - subclassability and makes code look more consistent with C structs
you must import the header file of that class
selector[message]
22. if you implemented both the setter and getter - the @synthesize method...
will be ignored
references to objects
Used to find the time right now or to store past or future time/dates
receiver
23. A message is always contained in square brackets - and has three parts
view
instance variable of an object is valid
instance variables
receiver - selector - arguments
24. class methods...
creates an instance of NSString that holds the character string
pointer - class
group of global functions already assigned to this class
pointers
25. Also if you send the NSObject the _ message - you own that object.
storage
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.
retain
26. NSArray - important methods...
receiver - selector - arguments
class methods - initializers
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
a mechanism to enable specific callbacks
27. Whenever a UINavigationController is about to swap views - it sends out two messages
Model Objects[Factory Worker]
create a XIB file
Generic object wrapper for other non-object data types
viewWillDissapear: and viewWillAppear:
28. Object Oriented based analogue to a function is called a...
wait until the loop finishes processing the event - at the end release it
Is a placeholder object
has one root view controller
method
29. Prefixing a character string with an @ symbol [specific - NSString class]...
initializers
the array relinquishes ownership of that object and no longer has a pointer to it
in the dealloc - or when a Controller's view is 'unloaded'
creates an instance of NSString that holds the character string
30. Hold data and know nothing about the user interface
Encapsulation of functionality
the instance variables
CF - Ref
Model Objects[Factory Worker]
31. Files Owner...
C Functionn
alloc - singleton - informational utility method?
Is a placeholder object
Used to find the time right now or to store past or future time/dates
32. You use _ to implement the view
storage
will be ignored
CGRect bounds
its dataSource
33. A function in the objective c library that simply displays or logs it's argument
Maintenance of state
to give it someone else - or another object
NSLog routine
object
34. [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.
C Functionn
arguments[message]
values
data
35. 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
parentViewController
designated initializer
Maintenance of state
method
36. Three ways instances are created...
(id)initWithFrame:(CGRect)aRect;
Data Encapsulation
is called every time the event occurs
ready-made instances - instantiation from scratch - and nib based instantiation
37. The integer prefix is...
C Functionn
%d
methods for generating an instance
view
38. UIViewController has several methods that get called at certain times...
data source - delegate and view controller
data source - view controller and delegate
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Object wrapper around primitive types like int - float - double - BOOl
39. NSValue - class...
do so in viewDidLoad
initializers
superclass's
Generic object wrapper for other non-object data types
40. Only exists within the statement block there defined - outside of the block is fine
an object's property
instance
dealloc - is called on the object & the object's memory is returned to the heap
variable scope - if defined within a block
41. In any application with UINavigationController - the navigation controller...
has one root view controller
dealloc - is called on the object & the object's memory is returned to the heap
'getters' and 'setters'
causes the program to immediately exit from the loop it is executing - whether its for - while or do
42. In a class method you cannot access...
Functions
the instance variables
attributes - behavior
collection of collections - NSArray of an NSArray
43. Categories are an Objective C way to add _ to an existing class without subclassing
reuse your cells
is an instance of that class
methods
self
44. 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
Functions
'getters' and 'setters'
subview(s)
calling code that does the instantiation for you
45. 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 _.
nil
CGRect bounds
Object wrapper around primitive types like int - float - double - BOOl
rectangular
46. 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
47. A view is a subclass of _
UIView
array[class - NSMutableArray]
methods
type - name and value
48. If a break statement is executed from within a set of nested loops...
%d
Maintenance of state
only the innermost loop in which the break is executed is terminated
@interface ClassName:SuperClassName
49. To load a Xib file manually - you use _
NSBundle
create a XIB file
ordered collection of objects - immutable
values
50. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
UIView
first responder
You take ownership for an object you want to keep a pointer to
@interface ClassName:SuperClassName