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. [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.
data
Generic object wrapper for other non-object data types
instance variables
rectangular
2. id is a...
pointer to an object
attributes - behavior
you always return the newly initialized object(return self)
pointers
3. 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 _.
new instances of the class or retrieve some global property of the class.
method
nil
a mechanism to enable specific callbacks
4. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
instance variables
class methods - initializers
designated initializer
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
5. 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
6. NSNumber - class...
upper
Object wrapper around primitive types like int - float - double - BOOl
data source - view controller and delegate
CGRect bounds - GCPoint center - CGRect frame
7. A pointer to the object being asked to execute a method
class methods - initializers
receiver[message]
protocol
super - self
8. UITableViewController is a subclass of...
Instantiation from scratch
to get and set variables
values
UIViewController
9. UIView - designated initializer...
Used to find the time right now or to store past or future time/dates
delegates and dataSources
(id)initWithFrame:(CGRect)aRect;
declaration and initialization of a variable
10. The only reason to temporarily own an object - is...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
in the dealloc - or when a Controller's view is 'unloaded'
accessors - individually we call them 'getters' and 'setters'
to give it someone else - or another object
11. Classes describe two things...
the array becomes an owner of that object and has a pointer to it.
you must import the header file of that class
for inheritance - adopting the superclasses implementation
attributes - behavior
12. NSValue - class...
CGRect bounds - GCPoint center - CGRect frame
calling code that does the instantiation for you
Generic object wrapper for other non-object data types
new instances of the class or retrieve some global property of the class.
13. A view is a subclass of _
implementation
UIView
NSCoder
arguments[message]
14. After accessors have been defined in the header file...
they need to be defined in the implementation file
first responder
selector[message]
Encapsulation of functionality
15. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
is an instance of that class
Maintenance of state
data source - delegate and view controller
16. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
Is a placeholder object
initializers
viewWillDissapear: and viewWillAppear:
only the class and subclasses can access
17. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
instance variables
NSBundle
%d
lowercase - uppercase
18. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
designated initializer
creates an instance of NSString that holds the character string
class methods - initializers
a single-array can contain objects of different types
19. In Cocoa Touch - the table view asks another object _ what it should display...
attributes - behavior
pointer to an object
lowercase - uppercase
its dataSource
20. A view represents a _ area
Ready-Made Instance
rectangular
draw images
object
21. What does autorelease mean?
wait until the loop finishes processing the event - at the end release it
collection of collections - NSArray of an NSArray
pointer to an object
class's
22. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
CGRect
selector[message]
viewWillDissapear: and viewWillAppear:
storage
23. 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
receiver[message]
parentViewController
variable scope - if defined within a block
position
24. Class methods do not operate on an _ or have any access to _ variables....
instance
lowercase - uppercase
view
Core Graphics Framework
25. Three ways instances are created...
ready-made instances - instantiation from scratch - and nib based instantiation
Encapsulation of functionality
creates an instance of NSString that holds the character string
instance variable of an object is valid
26. In the last line of an init method...
instance variables
you always return the newly initialized object(return self)
for inheritance - adopting the superclasses implementation
draw images
27. Each class picks one _ as it's designated initializer....
CF - Ref
CGRect bounds
instance variables
initializer
28. Categories are an Objective C way to add _ to an existing class without subclassing
view controller
methods
CGRect bounds - GCPoint center - CGRect frame
you always return the newly initialized object(return self)
29. 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
30. UIImageView is used to...
draw images
view
array[class - NSMutableArray]
a single-array can contain objects of different types
31. Defining variables - three parts...
implementation
type - name and value
has one root view controller
callbacks
32. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
%d
super - self
a mechanism to enable specific callbacks
Controller Objects[Managers]
33. Reference Counting...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
creating an initializer
You take ownership for an object you want to keep a pointer to
create a XIB file
34. 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
35. When an NSMutableArray is deallocated - it sends...
calling code that does the instantiation for you
the message release to all its entries
Encapsulation of functionality
class methods - initializers
36. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Used to find the time right now or to store past or future time/dates
its dataSource
@interface ClassName:SuperClassName
Ready-Made Instance
37. Origin of a view's coordinate system is _ left
Abstraction
parentViewController
array[class - NSMutableArray]
upper
38. 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
a mechanism to enable specific callbacks
Functions
Model Objects[Factory Worker]
rectangular
39. @property - is using methods...
cannot be added to an array
the array relinquishes ownership of that object and no longer has a pointer to it
will be ignored
to get and set variables
40. @property declares - and _ implements the setter and getter...
will be ignored
@synthesize
CF - Ref
in the dealloc - or when a Controller's view is 'unloaded'
41. When making a tableView always...
creating an initializer
reuse your cells
variable scope - if defined within a block
arguments[message]
42. The root view controller typically creates the next view controller - and the next _ creates the one after that
view controller
method
CF - Ref
CGFloat
43. Hold data and know nothing about the user interface
wait until the loop finishes processing the event - at the end release it
class
Model Objects[Factory Worker]
you always return the newly initialized object(return self)
44. A _ handles touch events.
view
for inheritance - adopting the superclasses implementation
to give it someone else - or another object
Is a placeholder object
45. How do I implement my drawRect?
do so in viewDidLoad
Ready-Made Instance
rectangular
Core Graphics Framework
46. Delegation is an object oriented approach to
Maintenance of state
callbacks
position
you always return the newly initialized object(return self)
47. Why properties?
retain
safety - subclassability and makes code look more consistent with C structs
Anytime you call a method with new - alloc or copy. You own and must release that object.
view controller
48. Prefixing a character string with an @ symbol [specific - NSString class]...
instance variables
message
receiver - selector - arguments
creates an instance of NSString that holds the character string
49. A command directed to an object is called an...
%d
collection of collections - NSArray of an NSArray
CGFloat
message
50. 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.
will be ignored
Data Encapsulation
arguments[message]
CGFloat