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. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
C Functionn
Data Encapsulation
UIView
CGRect
2. A command directed to an object is called an...
position
methods for generating an instance
UIView
message
3. Any individual object belonging to any class...
@synthesize
is an instance of that class
C Functionn
to give it someone else - or another object
4. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
define it in the implemenation file
protocol
Ready-Made Instance
superclass's
5. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
designated initializer
arguments[message]
references to objects
they need to be defined in the implementation file
6. id is a...
arguments[message]
pointer to an object
receiver[message]
retain
7. A _ handles touch events.
callbacks
declaration and initialization of a variable
method
view
8. In general - class methods tend to be factory methods - that is...
methods for generating an instance
instance
Instantiation from scratch
retain
9. A function in the objective c library that simply displays or logs it's argument
implementation
NSLog routine
Continue
has one root view controller
10. UIImageView is used to...
Core Graphics Framework
pointer to an object
draw images
object
11. Asking a class or object to execute a method
to give it someone else - or another object
message
safety - subclassability and makes code look more consistent with C structs
instance
12. Classes describe two things...
CF - Ref
implementation
attributes - behavior
values
13. Three ways instances are created...
ready-made instances - instantiation from scratch - and nib based instantiation
ordered collection of objects - immutable
nil
NSLog routine
14. NSDictionary...
receiver[message]
you always return the newly initialized object(return self)
Hash table - Look up objects using a key to get a value.
type - name and value
15. UITableViewController is a subclass of...
you must import the header file of that class
pointer to an object
UIViewController
size and position
16. In any application with UINavigationController - the navigation controller...
instance
values
has one root view controller
Hash table - Look up objects using a key to get a value.
17. Name of the method to be executed
selector[message]
receiver - selector - arguments
object
for inheritance - adopting the superclasses implementation
18. A pointer to the object being asked to execute a method
causes the program to immediately exit from the loop it is executing - whether its for - while or do
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
receiver[message]
the array becomes an owner of that object and has a pointer to it.
19. In a class method you cannot access...
data
Hash table - Look up objects using a key to get a value.
the instance variables
pointer to an object
20. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
methods
object
super - self
accessors - individually we call them 'getters' and 'setters'
21. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
Generic object wrapper for other non-object data types
C Functionn
@interface ClassName:SuperClassName
only the innermost loop in which the break is executed is terminated
22. Class methods typically either create
Hash table - Look up objects using a key to get a value.
a mechanism to enable specific callbacks
new instances of the class or retrieve some global property of the class.
C Functionn
23. Categories are an Objective C way to add _ to an existing class without subclassing
variable scope - if defined within a block
its dataSource
methods
super - self
24. Values to be supplied as the parameters to the method
UIView
arguments[message]
receiver - selector - arguments
the instance variables
25. 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
parentViewController
Generic object wrapper for other non-object data types
only the innermost loop in which the break is executed is terminated
do so in viewDidLoad
26. What happens when the last owner calls release?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
27. 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
28. A view represents a _ area
CGFloat
view
unordered collection of objects - objects must be unique
rectangular
29. Designated initializer makes sure that every...
instance variable of an object is valid
instance variables
you always return the newly initialized object(return self)
(id)initWithFrame:(CGRect)aRect;
30. Proceed through the loop - jump back to the top and check again
Continue
subview(s)
NSBundle
methods
31. A message is always contained in square brackets - and has three parts
initializers
superclass's
receiver - selector - arguments
arguments[message]
32. Also - because arrays only hold a pointer to an object...
they need to be defined in the implementation file
a single-array can contain objects of different types
methods for generating an instance
creates an instance of NSString that holds the character string
33. @property declares - and _ implements the setter and getter...
@synthesize
lowercase - uppercase
is called every time the event occurs
Core Graphics Framework
34. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
method
instance variable of an object is valid
NSCoder
35. 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
safety - subclassability and makes code look more consistent with C structs
object
Continue
36. 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.
its dataSource
references to objects
NSCoder
Data Encapsulation
37. NSDate - class...
arguments[message]
methods for generating an instance
Used to find the time right now or to store past or future time/dates
attributes - behavior
38. 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
draw images
position
values
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 _.
wait until the loop finishes processing the event - at the end release it
nil
header files declare
arguments[message]
40. A responder is responsible for...
'getters' and 'setters'
safety - subclassability and makes code look more consistent with C structs
receiving and handling events that are associated with it
instance variable of an object is valid
41. The integer prefix is...
receiver
reuse your cells
create a XIB file
%d
42. After accessors have been defined in the header file...
safety - subclassability and makes code look more consistent with C structs
they need to be defined in the implementation file
type - name and value
NSLog routine
43. When an NSMutableArray is deallocated - it sends...
view
the message release to all its entries
rectangular
size and position
44. What does autorelease mean?
instance
is called every time the event occurs
size and position
wait until the loop finishes processing the event - at the end release it
45. NSNumber - class...
the instance variables
ordered collection of objects - immutable
Object wrapper around primitive types like int - float - double - BOOl
CF - Ref
46. class methods...
creating an initializer
declaration and initialization of a variable
group of global functions already assigned to this class
header files declare
47. 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
Abstraction
Instantiation from scratch
Functions
delegates and dataSources
48. At the top of any implementation file...
you must import the header file of that class
Ready-Made Instance
receiver[message]
instance variables
49. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
you must import the header file of that class
in the dealloc - or when a Controller's view is 'unloaded'
callbacks
receiver
50. A UITableViewController can fill all three roles of...
data source - view controller and delegate
Ready-Made Instance
creating an initializer
(id)initWithFrame:(CGRect)aRect;