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 Cocoa Touch - the table view asks another object _ what it should display...
its dataSource
create a XIB file
an object's property
methods
2. The notion that the data for an object is stored in it's instance variables and is accessed only by the objects methods. This maintains the integrity of the data.
receiver[message]
size and position
Data Encapsulation
only the class and subclasses can access
3. NSArray - class...
ordered collection of objects - immutable
values
receiving and handling events that are associated with it
NSBundle
4. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
variable scope - if defined within a block
collection of collections - NSArray of an NSArray
header files declare
designated initializer
5. 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.
calling code that does the instantiation for you
nil
new instances of the class or retrieve some global property of the class.
creating an initializer
6. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
methods
Hash table - Look up objects using a key to get a value.
array[class - NSMutableArray]
7. initWithFrame: the designated initializer for UIView gives the view
designated initializer
size and position
Maintenance of state
receiver
8. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
the instance variables
Hash table - Look up objects using a key to get a value.
self
is an instance of that class
9. Typically the designated initializer has parameters for the most important and frequently used _ of an object
parentViewController
declaration and initialization of a variable
instance variables
UIViewController
10. When an NSMutableArray is deallocated - it sends...
position
parentViewController
values
the message release to all its entries
11. Proceed through the loop - jump back to the top and check again
class's
C Functionn
Continue
the message release to all its entries
12. 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
the message release to all its entries
wait until the loop finishes processing the event - at the end release it
parentViewController
Is a placeholder object
13. How do I implement my drawRect?
UIView
protocol
Core Graphics Framework
Model Objects[Factory Worker]
14. Any individual object belonging to any class...
only the class and subclasses can access
view
retain
is an instance of that class
15. Files Owner...
Is a placeholder object
Functions
reuse your cells
dealloc - is called on the object & the object's memory is returned to the heap
16. An instance is a device for maintaining state. It's a box for _ of data.
Hash table - Look up objects using a key to get a value.
receiver
CGRect bounds
storage
17. Classes describe two things...
protocol
group of global functions already assigned to this class
attributes - behavior
a single-array can contain objects of different types
18. Designated initializer makes sure that every...
Ready-Made Instance
CF - Ref
instance variable of an object is valid
has one root view controller
19. In object oriented languages - we call methods that get and set instance variables
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
20. Each _ has a 'designated' initializer method....
class
is called every time the event occurs
Object wrapper around primitive types like int - float - double - BOOl
creating an initializer
21. If the view has no subviews - create it programmatically; if it has subviews
create a XIB file
you must import the header file of that class
receiver - selector - arguments
copy - retain
22. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
the array becomes an owner of that object and has a pointer to it.
class methods - initializers
object
CGRect bounds - GCPoint center - CGRect frame
23. All objects are accessed using...
pointer - class
pointers
delegates and dataSources
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
24. UIViewController has several methods that get called at certain times...
delegates and dataSources
pointer - class
has one root view controller
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
25. What does autorelease mean?
a single-array can contain objects of different types
an object's property
wait until the loop finishes processing the event - at the end release it
Maintenance of state
26. After accessors have been defined in the header file...
they need to be defined in the implementation file
retain
receiver
class methods - initializers
27. A UITableView usually needs three different pieces...
parentViewController
data source - delegate and view controller
the message release to all its entries
NSCoder
28. Reference Counting...
instance
NSBundle
Core Graphics Framework
You take ownership for an object you want to keep a pointer to
29. A callback is a function that is supplied in advance of an event - and...
%d
is called every time the event occurs
CF - Ref
declaration and initialization of a variable
30. In general - in Objective-C - a reference to an instance is a _ - and the name of the data type of what's at the far end of that pointer is the name of the instances's _.
new instances of the class or retrieve some global property of the class.
calling code that does the instantiation for you
Object wrapper around primitive types like int - float - double - BOOl
pointer - class
31. Asking a class or object to execute a method
creates an instance of NSString that holds the character string
the array becomes an owner of that object and has a pointer to it.
calling code that does the instantiation for you
message
32. 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
33. @property - is using methods...
to get and set variables
calling code that does the instantiation for you
receiver
accessors - individually we call them 'getters' and 'setters'
34. Ready-made instances...
CF - Ref
pointers
calling code that does the instantiation for you
UIViewController
35. id is a...
has one root view controller
pointer to an object
class
self
36. When do you take ownership?...
receiving and handling events that are associated with it
rectangular
data
Anytime you call a method with new - alloc or copy. You own and must release that object.
37. Just a floating point number - but we always use it for graphics.
Instantiation from scratch
CGFloat
You take ownership for an object you want to keep a pointer to
alloc - singleton - informational utility method?
38. A command directed to an object is called an...
instance variable of an object is valid
message
delegates and dataSources
creates an instance of NSString that holds the character string
39. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
%d
lowercase - uppercase
causes the program to immediately exit from the loop it is executing - whether its for - while or do
CGFloat
40. Object Oriented based analogue to a function is called a...
method
subview(s)
implementation
the message release to all its entries
41. A message is always contained in square brackets - and has three parts
UIViewController
will be ignored
the array becomes an owner of that object and has a pointer to it.
receiver - selector - arguments
42. In Objective C arrays can hold only...
references to objects
a single-array can contain objects of different types
group of global functions already assigned to this class
upper
43. When making a tableView always...
data source - view controller and delegate
reuse your cells
class methods - initializers
view
44. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
C Functionn
Continue
CGRect
array[class - NSMutableArray]
45. 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]
C Functionn
storage
type - name and value
46. 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.
the message release to all its entries
Ready-Made Instance
type - name and value
instance variables
47. 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
48. Hold data and know nothing about the user interface
class methods - initializers
data source - view controller and delegate
Model Objects[Factory Worker]
instance of UIView or one of its subclasses
49. A view is a subclass of _
Anytime you call a method with new - alloc or copy. You own and must release that object.
is called every time the event occurs
UIView
CGRect
50. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
attributes - behavior
C Functionn
is called every time the event occurs
creates an instance of NSString that holds the character string