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. You use _ to implement the view
receiver[message]
CGRect bounds
only the class and subclasses can access
'getters' and 'setters'
2. To load a Xib file manually - you use _
delegates and dataSources
NSBundle
to get and set variables
data source - delegate and view controller
3. 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....
NSLog routine
define it in the implemenation file
viewWillDissapear: and viewWillAppear:
a mechanism to enable specific callbacks
4. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
initializers
Instantiation from scratch
causes the program to immediately exit from the loop it is executing - whether its for - while or do
setPossessionName
5. A responder is responsible for...
you must import the header file of that class
receiving and handling events that are associated with it
data
CGRect bounds - GCPoint center - CGRect frame
6. The integer prefix is...
message
%d
super - self
ready-made instances - instantiation from scratch - and nib based instantiation
7. Classes describe two things...
upper
attributes - behavior
define it in the implemenation file
NSCoder
8. NSNumber - class...
position
Object wrapper around primitive types like int - float - double - BOOl
parentViewController
references to objects
9. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
position
instance
NSCoder
initializer
10. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
view controller
safety - subclassability and makes code look more consistent with C structs
NSLog routine
11. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
cannot be added to an array
ordered collection of objects - immutable
view
12. A method in a _ is required unless its preceded by an @optional.
unordered collection of objects - objects must be unique
protocol
type - name and value
lowercase - uppercase
13. Primitives and C Structures...
lowercase - uppercase
cannot be added to an array
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
pointer to an object
14. 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
15. Name of the method to be executed
attributes - behavior
Encapsulation of functionality
selector[message]
alloc - singleton - informational utility method?
16. Why properties?
pointers
safety - subclassability and makes code look more consistent with C structs
Generic object wrapper for other non-object data types
callbacks
17. If the view has no subviews - create it programmatically; if it has subviews
copy - retain
create a XIB file
define it in the implemenation file
in the dealloc - or when a Controller's view is 'unloaded'
18. A message is always contained in square brackets - and has three parts
values
receiver - selector - arguments
initializer
Abstraction
19. If you have extra work you want to do on the view...
view controller's initialization method
lowercase - uppercase
values
do so in viewDidLoad
20. 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 _.
class's
nil
class methods - initializers
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
21. Hold data and know nothing about the user interface
receiver - selector - arguments
Functions
Model Objects[Factory Worker]
first responder
22. What does autorelease mean?
data source - delegate and view controller
upper
wait until the loop finishes processing the event - at the end release it
Hash table - Look up objects using a key to get a value.
23. Instance Variables by default are called @protected meaning...
the array becomes an owner of that object and has a pointer to it.
'getters' and 'setters'
collection of collections - NSArray of an NSArray
only the class and subclasses can access
24. Center and frame are used to _ your view
Model Objects[Factory Worker]
Used to find the time right now or to store past or future time/dates
position
instance variables
25. Each object does its own job - and presents to the rest of the world - to other objects - and indeed in a sense to the programmer - an opaque wall whose only entrances are the methods to which it promises to respond and the actions it promises to per
nil
size and position
Abstraction
Encapsulation of functionality
26. Object Oriented based analogue to a function is called a...
method
CGRect bounds
protocol
super - self
27. A _ handles touch events.
view
NSBundle
only the innermost loop in which the break is executed is terminated
attributes - behavior
28. UITableViewController is a subclass of...
for inheritance - adopting the superclasses implementation
instance
cannot be added to an array
UIViewController
29. NSDate - class...
you must import the header file of that class
Used to find the time right now or to store past or future time/dates
UIView
You take ownership for an object you want to keep a pointer to
30. If a break statement is executed from within a set of nested loops...
only the innermost loop in which the break is executed is terminated
new instances of the class or retrieve some global property of the class.
methods for generating an instance
a single-array can contain objects of different types
31. 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.
Anytime you call a method with new - alloc or copy. You own and must release that object.
reuse your cells
Data Encapsulation
self
32. After accessors have been defined in the header file...
pointers
the array relinquishes ownership of that object and no longer has a pointer to it
they need to be defined in the implementation file
Anytime you call a method with new - alloc or copy. You own and must release that object.
33. initWithFrame: the designated initializer for UIView gives the view
group of global functions already assigned to this class
size and position
new instances of the class or retrieve some global property of the class.
a single-array can contain objects of different types
34. Asking a class or object to execute a method
receiver
CGRect bounds - GCPoint center - CGRect frame
copy - retain
message
35. 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
36. In a class method you cannot access...
the instance variables
you always return the newly initialized object(return self)
group of global functions already assigned to this class
safety - subclassability and makes code look more consistent with C structs
37. UIView - designated initializer...
CGRect bounds
(id)initWithFrame:(CGRect)aRect;
selector[message]
callbacks
38. In Objective C arrays can hold only...
methods for generating an instance
(id)initWithFrame:(CGRect)aRect;
NSBundle
references to objects
39. NSArray - important methods...
array[class - NSMutableArray]
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
receiver[message]
nil
40. 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
delegates and dataSources
Functions
attributes - behavior
rectangular
41. Property List...
data
CF - Ref
collection of collections - NSArray of an NSArray
is an instance of that class
42. In the last line of an init method...
data source - delegate and view controller
designated initializer
you always return the newly initialized object(return self)
receiver
43. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
receiving and handling events that are associated with it
pointer - class
class methods - initializers
array[class - NSMutableArray]
44. Each class picks one _ as it's designated initializer....
storage
data source - delegate and view controller
initializer
protocol
45. In any application with UINavigationController - the navigation controller...
only the innermost loop in which the break is executed is terminated
has one root view controller
its dataSource
Maintenance of state
46. Categories are an Objective C way to add _ to an existing class without subclassing
copy - retain
creating an initializer
methods
@interface ClassName:SuperClassName
47. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
@interface ClassName:SuperClassName
designated initializer
first responder
48. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
the array becomes an owner of that object and has a pointer to it.
receiver
designated initializer
collection of collections - NSArray of an NSArray
49. Execution of the break statement...
message
You take ownership for an object you want to keep a pointer to
data source - view controller and delegate
causes the program to immediately exit from the loop it is executing - whether its for - while or do
50. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
size and position
causes the program to immediately exit from the loop it is executing - whether its for - while or do
initializers
draw images