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. Why properties?
references to objects
safety - subclassability and makes code look more consistent with C structs
initializer
variable scope - if defined within a block
2. 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 _.
@synthesize
the message release to all its entries
nil
class's
3. Core foundation classes are prefixed with _ and suffixed with _
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
CF - Ref
pointer to an object
You take ownership for an object you want to keep a pointer to
4. A UITableViewController can fill all three roles of...
data source - view controller and delegate
initializer
protocol
you always return the newly initialized object(return self)
5. NSValue - class...
Generic object wrapper for other non-object data types
Encapsulation of functionality
the array becomes an owner of that object and has a pointer to it.
parentViewController
6. Reference Counting...
You take ownership for an object you want to keep a pointer to
class
group of global functions already assigned to this class
references to objects
7. 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
Anytime you call a method with new - alloc or copy. You own and must release that object.
to give it someone else - or another object
method
8. At the top of any implementation file...
reuse your cells
you must import the header file of that class
super - self
Object wrapper around primitive types like int - float - double - BOOl
9. Classes describe two things...
instance variables
method
pointers
attributes - behavior
10. UIView - designated initializer...
attributes - behavior
(id)initWithFrame:(CGRect)aRect;
retain
the array becomes an owner of that object and has a pointer to it.
11. In a class method you cannot access...
rectangular
lowercase - uppercase
Continue
the instance variables
12. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
class methods - initializers
variable scope - if defined within a block
create a XIB file
class
13. @property - is using methods...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
NSLog routine
to get and set variables
C Functionn
14. In general - in Objective-C - a reference to an instance is a _ - and the name of the data type of what's at the far end of that pointer is the name of the instances's _.
Functions
for inheritance - adopting the superclasses implementation
pointer - class
to get and set variables
15. Each _ has a 'designated' initializer method....
alloc - singleton - informational utility method?
self
class
type - name and value
16. The only reason to temporarily own an object - is...
create a XIB file
its dataSource
to give it someone else - or another object
a single-array can contain objects of different types
17. 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
18. super - is used...
for inheritance - adopting the superclasses implementation
%d
position
data
19. All objects are accessed using...
reuse your cells
pointers
Maintenance of state
attributes - behavior
20. Designated initializer makes sure that every...
C Functionn
instance variable of an object is valid
the instance variables
initializer
21. To load a Xib file manually - you use _
you always return the newly initialized object(return self)
NSBundle
lowercase - uppercase
initializers
22. Whenever a UINavigationController is about to swap views - it sends out two messages
size and position
calling code that does the instantiation for you
header files declare
viewWillDissapear: and viewWillAppear:
23. 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 _.
references to objects
Continue
data source - view controller and delegate
subview(s)
24. 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
25. NSDictionary...
will be ignored
receiver - selector - arguments
pointer - class
Hash table - Look up objects using a key to get a value.
26. Prefixing a character string with an @ symbol [specific - NSString class]...
view
creates an instance of NSString that holds the character string
initializer
callbacks
27. Origin of a view's coordinate system is _ left
Is a placeholder object
you must import the header file of that class
Abstraction
upper
28. Typically the designated initializer has parameters for the most important and frequently used _ of an object
UIView
UIViewController
instance variables
alloc - singleton - informational utility method?
29. Defining variables - three parts...
class's
causes the program to immediately exit from the loop it is executing - whether its for - while or do
type - name and value
super - self
30. When making a tableView always...
type - name and value
rectangular
reuse your cells
superclass's
31. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
selector[message]
you must import the header file of that class
object
type - name and value
32. A function in the objective c library that simply displays or logs it's argument
cannot be added to an array
is called every time the event occurs
NSLog routine
for inheritance - adopting the superclasses implementation
33. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
position
Data Encapsulation
Object wrapper around primitive types like int - float - double - BOOl
Controller Objects[Managers]
34. Name of the method to be executed
CGRect bounds - GCPoint center - CGRect frame
object
accessors - individually we call them 'getters' and 'setters'
selector[message]
35. Center and frame are used to _ your view
values
position
method
receiver[message]
36. NSArray - class...
ordered collection of objects - immutable
receiver - selector - arguments
Hash table - Look up objects using a key to get a value.
a single-array can contain objects of different types
37. UITableViewController is a subclass of...
Instantiation from scratch
causes the program to immediately exit from the loop it is executing - whether its for - while or do
receiver - selector - arguments
UIViewController
38. Class methods typically either create
implementation
new instances of the class or retrieve some global property of the class.
is an instance of that class
the array relinquishes ownership of that object and no longer has a pointer to it
39. 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
40. A collection object - an ordered list of objects that can be accesed by an index
attributes - behavior
references to objects
array[class - NSMutableArray]
protocol
41. How do I implement my drawRect?
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Core Graphics Framework
viewWillDissapear: and viewWillAppear:
copy - retain
42. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
ready-made instances - instantiation from scratch - and nib based instantiation
Ready-Made Instance
accessors - individually we call them 'getters' and 'setters'
Core Graphics Framework
43. Hold data and know nothing about the user interface
copy - retain
NSCoder
to give it someone else - or another object
Model Objects[Factory Worker]
44. In Objective C arrays can hold only...
creating an initializer
its dataSource
references to objects
Anytime you call a method with new - alloc or copy. You own and must release that object.
45. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
instance variable of an object is valid
C Functionn
header files declare
Used to find the time right now or to store past or future time/dates
46. 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
position
instance variables
Anytime you call a method with new - alloc or copy. You own and must release that object.
47. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
instance variable of an object is valid
the array relinquishes ownership of that object and no longer has a pointer to it
receiver
Object wrapper around primitive types like int - float - double - BOOl
48. When the message endEditing: is sent to a view - if it or any of its subviews or currently the _ - it will resign its first responder statues - and the keyboard will be dismissed.
copy - retain
accessors - individually we call them 'getters' and 'setters'
first responder
Data Encapsulation
49. In any application with UINavigationController - the navigation controller...
method
'getters' and 'setters'
has one root view controller
Object wrapper around primitive types like int - float - double - BOOl
50. A view is an...
variable scope - if defined within a block
message
a mechanism to enable specific callbacks
instance of UIView or one of its subclasses