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. If the view has no subviews - create it programmatically; if it has subviews
create a XIB file
You take ownership for an object you want to keep a pointer to
for inheritance - adopting the superclasses implementation
C Functionn
2. In Objective C - the name of a setter method is set plus the name of the instance variable it is changing - for example PossessionName would be...
Is a placeholder object
causes the program to immediately exit from the loop it is executing - whether its for - while or do
setPossessionName
you must import the header file of that class
3. NSValue - class...
variable scope - if defined within a block
header files declare
Generic object wrapper for other non-object data types
first responder
4. Asking a class or object to execute a method
nil
causes the program to immediately exit from the loop it is executing - whether its for - while or do
CGRect bounds - GCPoint center - CGRect frame
message
5. UITableViewController is a subclass of...
you must import the header file of that class
the instance variables
UIViewController
Hash table - Look up objects using a key to get a value.
6. An instance is a device for maintaining state. It's a box for _ of data.
the message release to all its entries
storage
view controller
Generic object wrapper for other non-object data types
7. A collection object - an ordered list of objects that can be accesed by an index
upper
array[class - NSMutableArray]
object
UIView
8. If you have extra work you want to do on the view...
Object wrapper around primitive types like int - float - double - BOOl
do so in viewDidLoad
lowercase - uppercase
instance
9. Core foundation classes are prefixed with _ and suffixed with _
alloc - singleton - informational utility method?
CF - Ref
the message release to all its entries
viewWillDissapear: and viewWillAppear:
10. The root view controller typically creates the next view controller - and the next _ creates the one after that
view controller
instance
cannot be added to an array
message
11. NSString objects are usually sent _ rather than _...
You take ownership for an object you want to keep a pointer to
copy - retain
C Functionn
receiver
12. Class methods do not operate on an _ or have any access to _ variables....
its dataSource
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Ready-Made Instance
instance
13. Delegation is an object oriented approach to
callbacks
message
C Functionn
ordered collection of objects - immutable
14. class methods...
accessors - individually we call them 'getters' and 'setters'
message
group of global functions already assigned to this class
Hash table - Look up objects using a key to get a value.
15. Ready-made instances...
accessors - individually we call them 'getters' and 'setters'
receiver - selector - arguments
calling code that does the instantiation for you
creates an instance of NSString that holds the character string
16. In the last line of an init method...
you always return the newly initialized object(return self)
You take ownership for an object you want to keep a pointer to
to give it someone else - or another object
define it in the implemenation file
17. 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.
selector[message]
Data Encapsulation
instance variables
Abstraction
18. 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.
instance variables
accessors - individually we call them 'getters' and 'setters'
creating an initializer
arguments[message]
19. A method in a _ is required unless its preceded by an @optional.
protocol
UIViewController
creates an instance of NSString that holds the character string
super - self
20. The class is responsible for what instance variables the instance has - but not the _ of those variables.
ordered collection of objects - immutable
define it in the implemenation file
You take ownership for an object you want to keep a pointer to
values
21. 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....
define it in the implemenation file
receiver - selector - arguments
they need to be defined in the implementation file
pointers
22. A view is an...
Used to find the time right now or to store past or future time/dates
retain
instance of UIView or one of its subclasses
methods for generating an instance
23. Files Owner...
Is a placeholder object
%d
Data Encapsulation
self
24. In any application with UINavigationController - the navigation controller...
Hash table - Look up objects using a key to get a value.
has one root view controller
designated initializer
first responder
25. initWithFrame: the designated initializer for UIView gives the view
Maintenance of state
size and position
subview(s)
receiver
26. Class methods typically either create
new instances of the class or retrieve some global property of the class.
upper
for inheritance - adopting the superclasses implementation
nil
27. Object Oriented based analogue to a function is called a...
data source - view controller and delegate
Hash table - Look up objects using a key to get a value.
the array becomes an owner of that object and has a pointer to it.
method
28. Also - because arrays only hold a pointer to an object...
Model Objects[Factory Worker]
dealloc - is called on the object & the object's memory is returned to the heap
a single-array can contain objects of different types
a mechanism to enable specific callbacks
29. NSDate - class...
Functions
receiver[message]
header files declare
Used to find the time right now or to store past or future time/dates
30. In general - class methods tend to be factory methods - that is...
copy - retain
declaration and initialization of a variable
protocol
methods for generating an instance
31. NSDictionary...
method
'getters' and 'setters'
CF - Ref
Hash table - Look up objects using a key to get a value.
32. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
upper
they need to be defined in the implementation file
to get and set variables
33. How do I implement my drawRect?
Instantiation from scratch
Core Graphics Framework
values
super - self
34. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
NSCoder
is an instance of that class
Core Graphics Framework
only the innermost loop in which the break is executed is terminated
35. 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 _.
pointer - class
Object wrapper around primitive types like int - float - double - BOOl
subview(s)
'getters' and 'setters'
36. Typically the designated initializer has parameters for the most important and frequently used _ of an object
creates an instance of NSString that holds the character string
draw images
Model Objects[Factory Worker]
instance variables
37. The integer prefix is...
array[class - NSMutableArray]
%d
instance of UIView or one of its subclasses
UIView
38. Origin of a view's coordinate system is _ left
upper
data source - view controller and delegate
receiver - selector - arguments
new instances of the class or retrieve some global property of the class.
39. 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 _.
receiving and handling events that are associated with it
nil
receiver[message]
Data Encapsulation
40. 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
41. When the message endEditing: is sent to a view - if it or any of its subviews or currently the _ - it will resign its first responder statues - and the keyboard will be dismissed.
receiver[message]
variable scope - if defined within a block
safety - subclassability and makes code look more consistent with C structs
first responder
42. Name of the method to be executed
selector[message]
(id)initWithFrame:(CGRect)aRect;
ready-made instances - instantiation from scratch - and nib based instantiation
lowercase - uppercase
43. Categories are an Objective C way to add _ to an existing class without subclassing
super - self
methods
the array becomes an owner of that object and has a pointer to it.
Maintenance of state
44. Proceed through the loop - jump back to the top and check again
you must import the header file of that class
the instance variables
Continue
calling code that does the instantiation for you
45. NSNumber - class...
Data Encapsulation
instance variables
Object wrapper around primitive types like int - float - double - BOOl
causes the program to immediately exit from the loop it is executing - whether its for - while or do
46. Primitives and C Structures...
Continue
message
cannot be added to an array
for inheritance - adopting the superclasses implementation
47. In Cocoa Touch - the table view asks another object _ what it should display...
its dataSource
object
Is a placeholder object
instance variables
48. 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
reuse your cells
Data Encapsulation
Generic object wrapper for other non-object data types
49. 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
50. After accessors have been defined in the header file...
they need to be defined in the implementation file
do so in viewDidLoad
selector[message]
Continue