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. 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....
safety - subclassability and makes code look more consistent with C structs
super - self
define it in the implemenation file
storage
2. Use of class methods - there are three...
Continue
instance variables
@synthesize
alloc - singleton - informational utility method?
3. 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
4. NSString objects are usually sent _ rather than _...
copy - retain
only the innermost loop in which the break is executed is terminated
UIViewController
reuse your cells
5. NSDate - class...
instance variables
class methods - initializers
initializer
Used to find the time right now or to store past or future time/dates
6. Class methods typically either create
has one root view controller
Hash table - Look up objects using a key to get a value.
new instances of the class or retrieve some global property of the class.
CGRect bounds - GCPoint center - CGRect frame
7. In any application with UINavigationController - the navigation controller...
has one root view controller
pointer - class
receiving and handling events that are associated with it
C Functionn
8. A _ handles touch events.
Generic object wrapper for other non-object data types
view
Encapsulation of functionality
the array becomes an owner of that object and has a pointer to it.
9. When do you take ownership?...
Anytime you call a method with new - alloc or copy. You own and must release that object.
NSCoder
(id)initWithFrame:(CGRect)aRect;
Core Graphics Framework
10. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
values
self
data source - view controller and delegate
Generic object wrapper for other non-object data types
11. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
data
parentViewController
C Functionn
%d
12. 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
13. 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
14. 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.
references to objects
implementation
new instances of the class or retrieve some global property of the class.
copy - retain
15. A function in the objective c library that simply displays or logs it's argument
NSLog routine
the array relinquishes ownership of that object and no longer has a pointer to it
the instance variables
ordered collection of objects - immutable
16. Typically the designated initializer has parameters for the most important and frequently used _ of an object
C Functionn
instance variables
data source - view controller and delegate
@synthesize
17. Each class picks one _ as it's designated initializer....
Generic object wrapper for other non-object data types
method
initializer
protocol
18. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
protocol
storage
object
creates an instance of NSString that holds the character string
19. 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
20. 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
21. Each _ has a 'designated' initializer method....
class
rectangular
data source - view controller and delegate
dealloc - is called on the object & the object's memory is returned to the heap
22. NSString *s = @'Hello - World'; is an example of...
view controller's initialization method
pointer - class
declaration and initialization of a variable
instance of UIView or one of its subclasses
23. Asking a class or object to execute a method
Maintenance of state
message
values
group of global functions already assigned to this class
24. 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
25. Reference Counting...
receiver - selector - arguments
CGFloat
variable scope - if defined within a block
You take ownership for an object you want to keep a pointer to
26. A collection object - an ordered list of objects that can be accesed by an index
data source - delegate and view controller
subview(s)
view
array[class - NSMutableArray]
27. super - is used...
for inheritance - adopting the superclasses implementation
Hash table - Look up objects using a key to get a value.
Used to find the time right now or to store past or future time/dates
type - name and value
28. All objects are accessed using...
UIView
pointer - class
arguments[message]
pointers
29. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
safety - subclassability and makes code look more consistent with C structs
receiver
Model Objects[Factory Worker]
lowercase - uppercase
30. 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 _.
subview(s)
cannot be added to an array
in the dealloc - or when a Controller's view is 'unloaded'
array[class - NSMutableArray]
31. Core foundation classes are prefixed with _ and suffixed with _
first responder
CF - Ref
methods for generating an instance
implementation
32. Categories are an Objective C way to add _ to an existing class without subclassing
nil
methods
header files declare
NSBundle
33. 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
delegates and dataSources
protocol
rectangular
parentViewController
34. Designated initializer makes sure that every...
instance variable of an object is valid
view
designated initializer
Encapsulation of functionality
35. 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
Maintenance of state
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Functions
a single-array can contain objects of different types
36. Name of the method to be executed
size and position
pointers
nil
selector[message]
37. UITableViewController is a subclass of...
you must import the header file of that class
UIViewController
Anytime you call a method with new - alloc or copy. You own and must release that object.
data source - view controller and delegate
38. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
Continue
Controller Objects[Managers]
instance variable of an object is valid
rectangular
39. Any individual object belonging to any class...
selector[message]
parentViewController
is an instance of that class
class
40. In Objective C arrays can hold only...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
references to objects
Functions
CF - Ref
41. @property - is using methods...
to get and set variables
variable scope - if defined within a block
Object wrapper around primitive types like int - float - double - BOOl
reuse your cells
42. Hold data and know nothing about the user interface
alloc - singleton - informational utility method?
Data Encapsulation
Model Objects[Factory Worker]
is called every time the event occurs
43. Reducing details to focus on the core concepts
Hash table - Look up objects using a key to get a value.
cannot be added to an array
Abstraction
Object wrapper around primitive types like int - float - double - BOOl
44. Execution of the break statement...
safety - subclassability and makes code look more consistent with C structs
type - name and value
lowercase - uppercase
causes the program to immediately exit from the loop it is executing - whether its for - while or do
45. A responder is responsible for...
receiving and handling events that are associated with it
class
UIView
create a XIB file
46. In a class method you cannot access...
UIView
the instance variables
instance of UIView or one of its subclasses
class's
47. The root view controller typically creates the next view controller - and the next _ creates the one after that
values
the array relinquishes ownership of that object and no longer has a pointer to it
Ready-Made Instance
view controller
48. @property declares - and _ implements the setter and getter...
array[class - NSMutableArray]
reuse your cells
copy - retain
@synthesize
49. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
NSBundle
an object's property
Ready-Made Instance
class
50. A callback is a function that is supplied in advance of an event - and...
C Functionn
(id)initWithFrame:(CGRect)aRect;
is called every time the event occurs
the array becomes an owner of that object and has a pointer to it.