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. 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.
create a XIB file
implementation
to get and set variables
class methods - initializers
2. When do you take ownership?...
arguments[message]
the array becomes an owner of that object and has a pointer to it.
do so in viewDidLoad
Anytime you call a method with new - alloc or copy. You own and must release that object.
3. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
NSCoder
type - name and value
super - self
methods for generating an instance
4. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
NSBundle
@interface ClassName:SuperClassName
parentViewController
5. Views have three properties related to their location and size: @property _ _;
Instantiation from scratch
CGRect bounds - GCPoint center - CGRect frame
NSLog routine
CGRect bounds
6. If the view has no subviews - create it programmatically; if it has subviews
attributes - behavior
create a XIB file
Abstraction
CGRect bounds - GCPoint center - CGRect frame
7. 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
8. A collection object - an ordered list of objects that can be accesed by an index
callbacks
array[class - NSMutableArray]
data source - view controller and delegate
is called every time the event occurs
9. Values to be supplied as the parameters to the method
calling code that does the instantiation for you
creating an initializer
arguments[message]
class
10. Use of class methods - there are three...
creates an instance of NSString that holds the character string
instance variables
alloc - singleton - informational utility method?
%d
11. Number one use of protocols in iOS...
collection of collections - NSArray of an NSArray
delegates and dataSources
position
data
12. To load a Xib file manually - you use _
NSBundle
collection of collections - NSArray of an NSArray
Abstraction
to give it someone else - or another object
13. A message is always contained in square brackets - and has three parts
Abstraction
receiver - selector - arguments
(id)initWithFrame:(CGRect)aRect;
CGRect bounds - GCPoint center - CGRect frame
14. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
view
collection of collections - NSArray of an NSArray
callbacks
15. 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 _.
NSLog routine
unordered collection of objects - objects must be unique
subview(s)
receiving and handling events that are associated with it
16. Also - because arrays only hold a pointer to an object...
methods for generating an instance
type - name and value
NSBundle
a single-array can contain objects of different types
17. Classes describe two things...
ready-made instances - instantiation from scratch - and nib based instantiation
the array relinquishes ownership of that object and no longer has a pointer to it
attributes - behavior
Encapsulation of functionality
18. 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
19. Class methods do not operate on an _ or have any access to _ variables....
viewWillDissapear: and viewWillAppear:
position
instance
first responder
20. Prefixing a character string with an @ symbol [specific - NSString class]...
ordered collection of objects - immutable
creates an instance of NSString that holds the character string
view controller's initialization method
CGFloat
21. A delegate is a pointer to an object with a set of methods the delegate-holder knows how to call. In other words - it's _ from a later created object
a mechanism to enable specific callbacks
type - name and value
header files declare
pointer - class
22. NSValue - class...
CGRect bounds
Generic object wrapper for other non-object data types
the array becomes an owner of that object and has a pointer to it.
parentViewController
23. Reducing details to focus on the core concepts
in the dealloc - or when a Controller's view is 'unloaded'
%d
Abstraction
parentViewController
24. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
methods for generating an instance
size and position
receiver[message]
CGRect
25. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
callbacks
view controller
size and position
26. Files Owner...
Used to find the time right now or to store past or future time/dates
Is a placeholder object
data
instance variable of an object is valid
27. initWithFrame: the designated initializer for UIView gives the view
size and position
causes the program to immediately exit from the loop it is executing - whether its for - while or do
method
unordered collection of objects - objects must be unique
28. Hold data and know nothing about the user interface
an object's property
Model Objects[Factory Worker]
Core Graphics Framework
references to objects
29. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
class
will be ignored
Generic object wrapper for other non-object data types
30. When an object is removed from an NSMutableArray - that object is sent the message release;...
the array relinquishes ownership of that object and no longer has a pointer to it
rectangular
collection of collections - NSArray of an NSArray
the instance variables
31. A pointer to the object being asked to execute a method
Model Objects[Factory Worker]
is called every time the event occurs
receiver[message]
receiving and handling events that are associated with it
32. Typically the designated initializer has parameters for the most important and frequently used _ of an object
create a XIB file
instance variables
ready-made instances - instantiation from scratch - and nib based instantiation
wait until the loop finishes processing the event - at the end release it
33. How do I implement my drawRect?
is called every time the event occurs
Core Graphics Framework
class
@interface ClassName:SuperClassName
34. The only reason to temporarily own an object - is...
to give it someone else - or another object
will be ignored
calling code that does the instantiation for you
receiver[message]
35. In the last line of an init method...
you always return the newly initialized object(return self)
Generic object wrapper for other non-object data types
Encapsulation of functionality
methods
36. 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
Maintenance of state
@synthesize
creating an initializer
receiver - selector - arguments
37. 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
callbacks
pointers
protocol
38. What does autorelease mean?
define it in the implemenation file
wait until the loop finishes processing the event - at the end release it
the instance variables
CGFloat
39. Any individual object belonging to any class...
Continue
has one root view controller
is an instance of that class
receiving and handling events that are associated with it
40. Execution of the break statement...
variable scope - if defined within a block
causes the program to immediately exit from the loop it is executing - whether its for - while or do
CGFloat
position
41. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
references to objects
callbacks
Ready-Made Instance
Data Encapsulation
42. A method in a _ is required unless its preceded by an @optional.
position
selector[message]
protocol
implementation
43. 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 _.
pointer - class
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
arguments[message]
upper
44. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
C Functionn
attributes - behavior
You take ownership for an object you want to keep a pointer to
receiver[message]
45. UIImageView is used to...
to give it someone else - or another object
draw images
UIView
Anytime you call a method with new - alloc or copy. You own and must release that object.
46. Each class picks one _ as it's designated initializer....
initializer
class's
delegates and dataSources
CF - Ref
47. A UITableViewController can fill all three roles of...
data source - view controller and delegate
instance variables
parentViewController
alloc - singleton - informational utility method?
48. If you have extra work you want to do on the view...
copy - retain
do so in viewDidLoad
NSLog routine
Controller Objects[Managers]
49. Ready-made instances...
do so in viewDidLoad
calling code that does the instantiation for you
view controller
define it in the implemenation file
50. 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