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. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
the array becomes an owner of that object and has a pointer to it.
callbacks
initializers
initializer
2. A callback is a function that is supplied in advance of an event - and...
receiver - selector - arguments
is called every time the event occurs
super - self
collection of collections - NSArray of an NSArray
3. An instance is a device for maintaining state. It's a box for _ of data.
selector[message]
Ready-Made Instance
storage
reuse your cells
4. If a break statement is executed from within a set of nested loops...
a single-array can contain objects of different types
values
class
only the innermost loop in which the break is executed is terminated
5. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
is called every time the event occurs
self
has one root view controller
CGRect bounds - GCPoint center - CGRect frame
6. Core foundation classes are prefixed with _ and suffixed with _
self
CF - Ref
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.
7. Why properties?
message
UIViewController
lowercase - uppercase
safety - subclassability and makes code look more consistent with C structs
8. 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
cannot be added to an array
retain
Controller Objects[Managers]
9. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
super - self
CGFloat
CGRect
Abstraction
10. NSValue - class...
the array relinquishes ownership of that object and no longer has a pointer to it
Generic object wrapper for other non-object data types
cannot be added to an array
an object's property
11. In Objective C arrays can hold only...
size and position
rectangular
Abstraction
references to objects
12. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
pointer - class
calling code that does the instantiation for you
receiver - selector - arguments
NSCoder
13. NSDictionary...
attributes - behavior
has one root view controller
the instance variables
Hash table - Look up objects using a key to get a value.
14. Class methods typically either create
nil
new instances of the class or retrieve some global property of the class.
the instance variables
instance
15. A function in the objective c library that simply displays or logs it's argument
class's
C Functionn
NSLog routine
Data Encapsulation
16. Whenever a UINavigationController is about to swap views - it sends out two messages
instance variable of an object is valid
super - self
viewWillDissapear: and viewWillAppear:
dealloc - is called on the object & the object's memory is returned to the heap
17. 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
superclass's
view
Hash table - Look up objects using a key to get a value.
18. 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.
lowercase - uppercase
Data Encapsulation
creating an initializer
receiver[message]
19. A view is a subclass of _
message
you always return the newly initialized object(return self)
instance of UIView or one of its subclasses
UIView
20. How do I implement my drawRect?
Used to find the time right now or to store past or future time/dates
receiver[message]
class's
Core Graphics Framework
21. 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
you must import the header file of that class
'getters' and 'setters'
parentViewController
CF - Ref
22. Origin of a view's coordinate system is _ left
only the class and subclasses can access
alloc - singleton - informational utility method?
upper
self
23. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
CGRect bounds - GCPoint center - CGRect frame
receiver
message
view
24. NSArray - class...
its dataSource
Object wrapper around primitive types like int - float - double - BOOl
declaration and initialization of a variable
ordered collection of objects - immutable
25. A view is an...
a single-array can contain objects of different types
do so in viewDidLoad
view controller
instance of UIView or one of its subclasses
26. Instance Variables by default are called @protected meaning...
'getters' and 'setters'
only the class and subclasses can access
CGRect
%d
27. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
initializer
designated initializer
self
NSBundle
28. A message is always contained in square brackets - and has three parts
receiver - selector - arguments
rectangular
the instance variables
initializers
29. Also - because arrays only hold a pointer to an object...
an object's property
view
only the innermost loop in which the break is executed is terminated
a single-array can contain objects of different types
30. 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
Encapsulation of functionality
Anytime you call a method with new - alloc or copy. You own and must release that object.
methods
Hash table - Look up objects using a key to get a value.
31. UIView - designated initializer...
viewWillDissapear: and viewWillAppear:
pointers
data source - view controller and delegate
(id)initWithFrame:(CGRect)aRect;
32. 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.
copy - retain
implementation
pointer to an object
retain
33. At the top of any implementation file...
new instances of the class or retrieve some global property of the class.
%d
its dataSource
you must import the header file of that class
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. A pointer to the object being asked to execute a method
parentViewController
superclass's
NSCoder
receiver[message]
36. @property - is using methods...
ready-made instances - instantiation from scratch - and nib based instantiation
to get and set variables
setPossessionName
selector[message]
37. Just a floating point number - but we always use it for graphics.
create a XIB file
CGRect bounds
the instance variables
CGFloat
38. If you have extra work you want to do on the view...
do so in viewDidLoad
instance variables
group of global functions already assigned to this class
Functions
39. Asking a class or object to execute a method
group of global functions already assigned to this class
only the innermost loop in which the break is executed is terminated
message
Controller Objects[Managers]
40. [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.
class methods - initializers
data
size and position
NSLog routine
41. Reference Counting...
(id)initWithFrame:(CGRect)aRect;
viewWillDissapear: and viewWillAppear:
NSBundle
You take ownership for an object you want to keep a pointer to
42. Files Owner...
for inheritance - adopting the superclasses implementation
initializers
Is a placeholder object
wait until the loop finishes processing the event - at the end release it
43. Defining variables - three parts...
will be ignored
Ready-Made Instance
CF - Ref
type - name and value
44. 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 _.
dealloc - is called on the object & the object's memory is returned to the heap
an object's property
nil
you always return the newly initialized object(return self)
45. NSArray - important methods...
declaration and initialization of a variable
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
lowercase - uppercase
superclass's
46. 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
upper
the array relinquishes ownership of that object and no longer has a pointer to it
variable scope - if defined within a block
47. id is a...
pointer to an object
CF - Ref
attributes - behavior
message
48. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
C Functionn
class methods - initializers
references to objects
callbacks
49. Reducing details to focus on the core concepts
Abstraction
message
upper
variable scope - if defined within a block
50. The integer prefix is...
%d
is called every time the event occurs
position
receiver[message]