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. All objects are accessed using...
receiving and handling events that are associated with it
pointers
you must import the header file of that class
variable scope - if defined within a block
2. A method in a _ is required unless its preceded by an @optional.
copy - retain
protocol
declaration and initialization of a variable
only the innermost loop in which the break is executed is terminated
3. In a class method you cannot access...
CGRect
class methods - initializers
you must import the header file of that class
the instance variables
4. NSSet...
view controller
Model Objects[Factory Worker]
unordered collection of objects - objects must be unique
its dataSource
5. NSDictionary...
Hash table - Look up objects using a key to get a value.
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Core Graphics Framework
NSCoder
6. NSArray - important methods...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
header files declare
declaration and initialization of a variable
instance variables
7. Property List...
initializers
to give it someone else - or another object
declaration and initialization of a variable
collection of collections - NSArray of an NSArray
8. The class is responsible for what instance variables the instance has - but not the _ of those variables.
values
accessors - individually we call them 'getters' and 'setters'
Instantiation from scratch
copy - retain
9. 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
10. Files Owner...
data
Is a placeholder object
Core Graphics Framework
the array relinquishes ownership of that object and no longer has a pointer to it
11. When an object is removed from an NSMutableArray - that object is sent the message release;...
Abstraction
NSCoder
the array relinquishes ownership of that object and no longer has a pointer to it
draw images
12. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
receiver - selector - arguments
storage
methods
13. Primitives and C Structures...
pointer - class
cannot be added to an array
class
view controller
14. Instance Variables by default are called @protected meaning...
only the class and subclasses can access
initializers
lowercase - uppercase
subview(s)
15. 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....
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Data Encapsulation
its dataSource
define it in the implemenation file
16. When an object is added to a NSMutableArray - that object is sent the message to retain;...
UIView
Continue
the array becomes an owner of that object and has a pointer to it.
You take ownership for an object you want to keep a pointer to
17. 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.
implementation
initializers
instance variables
self
18. After accessors have been defined in the header file...
retain
Used to find the time right now or to store past or future time/dates
they need to be defined in the implementation file
alloc - singleton - informational utility method?
19. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
NSCoder
Model Objects[Factory Worker]
designated initializer
a single-array can contain objects of different types
20. When making a tableView always...
reuse your cells
methods
Continue
Maintenance of state
21. if you implemented both the setter and getter - the @synthesize method...
upper
Is a placeholder object
calling code that does the instantiation for you
will be ignored
22. Each class picks one _ as it's designated initializer....
they need to be defined in the implementation file
do so in viewDidLoad
nil
initializer
23. In the last line of an init method...
NSBundle
you always return the newly initialized object(return self)
class
NSCoder
24. An instance is a device for maintaining state. It's a box for _ of data.
storage
new instances of the class or retrieve some global property of the class.
methods for generating an instance
safety - subclassability and makes code look more consistent with C structs
25. 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
26. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
object
to give it someone else - or another object
initializer
pointer to an object
27. Three ways instances are created...
values
an object's property
ready-made instances - instantiation from scratch - and nib based instantiation
attributes - behavior
28. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
values
they need to be defined in the implementation file
the array becomes an owner of that object and has a pointer to it.
29. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
you always return the newly initialized object(return self)
upper
nil
30. Each _ has a 'designated' initializer method....
NSBundle
class
array[class - NSMutableArray]
subview(s)
31. A function in the objective c library that simply displays or logs it's argument
Object wrapper around primitive types like int - float - double - BOOl
NSLog routine
type - name and value
super - self
32. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
Abstraction
initializers
instance variables
callbacks
33. When do you take ownership?...
Is a placeholder object
first responder
creates an instance of NSString that holds the character string
Anytime you call a method with new - alloc or copy. You own and must release that object.
34. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
C Functionn
setPossessionName
Used to find the time right now or to store past or future time/dates
35. id is a...
the array relinquishes ownership of that object and no longer has a pointer to it
pointer to an object
self
to give it someone else - or another object
36. Object Oriented based analogue to a function is called a...
you always return the newly initialized object(return self)
for inheritance - adopting the superclasses implementation
Data Encapsulation
method
37. The root view controller typically creates the next view controller - and the next _ creates the one after that
(id)initWithFrame:(CGRect)aRect;
arguments[message]
view controller
only the class and subclasses can access
38. 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
39. NSValue - class...
NSBundle
Generic object wrapper for other non-object data types
Continue
instance variable of an object is valid
40. Number one use of protocols in iOS...
method
delegates and dataSources
new instances of the class or retrieve some global property of the class.
they need to be defined in the implementation file
41. A view represents a _ area
its dataSource
method
CF - Ref
rectangular
42. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
type - name and value
protocol
NSLog routine
43. Why properties?
instance variable of an object is valid
header files declare
size and position
safety - subclassability and makes code look more consistent with C structs
44. If a break statement is executed from within a set of nested loops...
the array relinquishes ownership of that object and no longer has a pointer to it
only the innermost loop in which the break is executed is terminated
CGRect bounds
super - self
45. Hold data and know nothing about the user interface
safety - subclassability and makes code look more consistent with C structs
Model Objects[Factory Worker]
you always return the newly initialized object(return self)
first responder
46. In Cocoa Touch - the table view asks another object _ what it should display...
view controller
(id)initWithFrame:(CGRect)aRect;
its dataSource
pointers
47. Use of class methods - there are three...
alloc - singleton - informational utility method?
creating an initializer
reuse your cells
causes the program to immediately exit from the loop it is executing - whether its for - while or do
48. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
viewWillDissapear: and viewWillAppear:
Ready-Made Instance
Core Graphics Framework
selector[message]
49. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
is an instance of that class
CGRect
@interface ClassName:SuperClassName
Controller Objects[Managers]
50. Ready-made instances...
nil
calling code that does the instantiation for you
CGFloat
lowercase - uppercase