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. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
selector[message]
creating an initializer
values
header files declare
2. Proceed through the loop - jump back to the top and check again
CGFloat
retain
Continue
do so in viewDidLoad
3. Whenever a UINavigationController is about to swap views - it sends out two messages
viewWillDissapear: and viewWillAppear:
NSBundle
Model Objects[Factory Worker]
to give it someone else - or another object
4. Each class picks one _ as it's designated initializer....
@synthesize
only the class and subclasses can access
super - self
initializer
5. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
receiver
you must import the header file of that class
data source - view controller and delegate
designated initializer
6. Categories are an Objective C way to add _ to an existing class without subclassing
CF - Ref
methods
the array relinquishes ownership of that object and no longer has a pointer to it
class
7. initWithFrame: the designated initializer for UIView gives the view
size and position
self
the instance variables
method
8. if you implemented both the setter and getter - the @synthesize method...
Ready-Made Instance
will be ignored
view
nil
9. Center and frame are used to _ your view
ordered collection of objects - immutable
position
Functions
view controller
10. If a break statement is executed from within a set of nested loops...
to get and set variables
view controller's initialization method
retain
only the innermost loop in which the break is executed is terminated
11. 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
to get and set variables
Object wrapper around primitive types like int - float - double - BOOl
parentViewController
will be ignored
12. Any individual object belonging to any class...
is an instance of that class
will be ignored
@interface ClassName:SuperClassName
size and position
13. When do you take ownership?...
copy - retain
Anytime you call a method with new - alloc or copy. You own and must release that object.
class's
creates an instance of NSString that holds the character string
14. The root view controller typically creates the next view controller - and the next _ creates the one after that
its dataSource
pointers
view controller
Anytime you call a method with new - alloc or copy. You own and must release that object.
15. Each individual instance is a bundle of data that it maintains. Typically that data is private - which means that it's encapsulated as well; no other object knows what that data is or in what form it is kept. The only way to discover from outside wha
CF - Ref
superclass's
Maintenance of state
selector[message]
16. A function in the objective c library that simply displays or logs it's argument
only the class and subclasses can access
pointer to an object
NSLog routine
the array relinquishes ownership of that object and no longer has a pointer to it
17. 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
values
copy - retain
receiver[message]
18. Defining variables - three parts...
type - name and value
draw images
@interface ClassName:SuperClassName
calling code that does the instantiation for you
19. Classes describe two things...
lowercase - uppercase
they need to be defined in the implementation file
superclass's
attributes - behavior
20. In any application with UINavigationController - the navigation controller...
arguments[message]
has one root view controller
Anytime you call a method with new - alloc or copy. You own and must release that object.
variable scope - if defined within a block
21. id is a...
pointer to an object
setPossessionName
Anytime you call a method with new - alloc or copy. You own and must release that object.
the message release to all its entries
22. 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 _.
(id)initWithFrame:(CGRect)aRect;
pointer - class
instance
UIViewController
23. Values to be supplied as the parameters to the method
@synthesize
arguments[message]
CF - Ref
header files declare
24. NSValue - class...
Encapsulation of functionality
Generic object wrapper for other non-object data types
view
NSCoder
25. An instance is a device for maintaining state. It's a box for _ of data.
size and position
message
instance variables
storage
26. Hold data and know nothing about the user interface
data
arguments[message]
the instance variables
Model Objects[Factory Worker]
27. A message is always contained in square brackets - and has three parts
view controller's initialization method
alloc - singleton - informational utility method?
data source - delegate and view controller
receiver - selector - arguments
28. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
CGRect
super - self
the array becomes an owner of that object and has a pointer to it.
CF - Ref
29. 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.
instance variables
methods
the array relinquishes ownership of that object and no longer has a pointer to it
You take ownership for an object you want to keep a pointer to
30. 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 _.
values
nil
pointer - class
instance of UIView or one of its subclasses
31. A UITableView usually needs three different pieces...
data source - delegate and view controller
has one root view controller
'getters' and 'setters'
CF - Ref
32. A pointer to the object being asked to execute a method
Used to find the time right now or to store past or future time/dates
rectangular
receiver[message]
self
33. Ready-made instances...
class
copy - retain
calling code that does the instantiation for you
the array relinquishes ownership of that object and no longer has a pointer to it
34. The only reason to temporarily own an object - is...
creating an initializer
position
Abstraction
to give it someone else - or another object
35. Primitives and C Structures...
lowercase - uppercase
has one root view controller
cannot be added to an array
CGFloat
36. To load a Xib file manually - you use _
designated initializer
NSBundle
the array relinquishes ownership of that object and no longer has a pointer to it
receiver
37. Asking a class or object to execute a method
implementation
message
viewWillDissapear: and viewWillAppear:
receiver - selector - arguments
38. If you have extra work you want to do on the view...
group of global functions already assigned to this class
do so in viewDidLoad
view controller
self
39. A callback is a function that is supplied in advance of an event - and...
message
is called every time the event occurs
accessors - individually we call them 'getters' and 'setters'
size and position
40. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
NSCoder
receiver
calling code that does the instantiation for you
implementation
41. In Objective C arrays can hold only...
references to objects
do so in viewDidLoad
to get and set variables
instance variables
42. Views have three properties related to their location and size: @property _ _;
data source - view controller and delegate
CGRect bounds - GCPoint center - CGRect frame
NSLog routine
viewWillDissapear: and viewWillAppear:
43. 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
44. Only exists within the statement block there defined - outside of the block is fine
define it in the implemenation file
methods for generating an instance
data source - delegate and view controller
variable scope - if defined within a block
45. A UITableViewController can fill all three roles of...
data source - view controller and delegate
to get and set variables
do so in viewDidLoad
superclass's
46. Also - because arrays only hold a pointer to an object...
setPossessionName
a single-array can contain objects of different types
%d
viewWillDissapear: and viewWillAppear:
47. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
instance
header files declare
storage
48. Class methods do not operate on an _ or have any access to _ variables....
callbacks
method
variable scope - if defined within a block
instance
49. After accessors have been defined in the header file...
an object's property
do so in viewDidLoad
Functions
they need to be defined in the implementation file
50. When an NSMutableArray is deallocated - it sends...
Generic object wrapper for other non-object data types
self
is called every time the event occurs
the message release to all its entries