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. NSSet...
class
receiver
the array relinquishes ownership of that object and no longer has a pointer to it
unordered collection of objects - objects must be unique
2. A command directed to an object is called an...
instance variable of an object is valid
C Functionn
message
initializers
3. When an object is added to a NSMutableArray - that object is sent the message to retain;...
the array becomes an owner of that object and has a pointer to it.
class's
Data Encapsulation
class methods - initializers
4. At the top of any implementation file...
receiver - selector - arguments
you must import the header file of that class
selector[message]
implementation
5. You use _ to implement the view
new instances of the class or retrieve some global property of the class.
Generic object wrapper for other non-object data types
CGRect bounds
methods
6. A function in the objective c library that simply displays or logs it's argument
self
message
NSLog routine
parentViewController
7. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
message
Generic object wrapper for other non-object data types
calling code that does the instantiation for you
8. Also if you send the NSObject the _ message - you own that object.
the instance variables
size and position
retain
viewWillDissapear: and viewWillAppear:
9. Class methods typically either create
new instances of the class or retrieve some global property of the class.
receiving and handling events that are associated with it
ready-made instances - instantiation from scratch - and nib based instantiation
ordered collection of objects - immutable
10. A view represents a _ area
will be ignored
the instance variables
they need to be defined in the implementation file
rectangular
11. Defining variables - three parts...
unordered collection of objects - objects must be unique
type - name and value
instance variables
Model Objects[Factory Worker]
12. 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
copy - retain
Data Encapsulation
Maintenance of state
object
13. 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
14. 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
15. NSArray - class...
the message release to all its entries
method
ordered collection of objects - immutable
causes the program to immediately exit from the loop it is executing - whether its for - while or do
16. When making a tableView always...
Functions
view controller
causes the program to immediately exit from the loop it is executing - whether its for - while or do
reuse your cells
17. 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
18. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
CGFloat
Abstraction
data
19. 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.
alloc - singleton - informational utility method?
Is a placeholder object
position
first responder
20. Classes describe two things...
attributes - behavior
superclass's
object
setPossessionName
21. 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
alloc - singleton - informational utility method?
nil
copy - retain
22. NSValue - class...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Generic object wrapper for other non-object data types
protocol
NSLog routine
23. Also - because arrays only hold a pointer to an object...
draw images
delegates and dataSources
a single-array can contain objects of different types
protocol
24. Hold data and know nothing about the user interface
Model Objects[Factory Worker]
the array relinquishes ownership of that object and no longer has a pointer to it
copy - retain
is called every time the event occurs
25. When an object is removed from an NSMutableArray - that object is sent the message release;...
the array relinquishes ownership of that object and no longer has a pointer to it
instance variable of an object is valid
draw images
an object's property
26. Reducing details to focus on the core concepts
define it in the implemenation file
Abstraction
variable scope - if defined within a block
you always return the newly initialized object(return self)
27. Each class picks one _ as it's designated initializer....
receiver[message]
UIView
callbacks
initializer
28. A UITableView usually needs three different pieces...
data source - delegate and view controller
Generic object wrapper for other non-object data types
Anytime you call a method with new - alloc or copy. You own and must release that object.
@synthesize
29. In Cocoa Touch - the table view asks another object _ what it should display...
initializer
receiver - selector - arguments
its dataSource
superclass's
30. The designated initializer calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
31. 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
group of global functions already assigned to this class
parentViewController
the instance variables
initializers
32. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
CGRect
they need to be defined in the implementation file
NSBundle
an object's property
33. 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
self
its dataSource
ordered collection of objects - immutable
Functions
34. A view is an...
instance of UIView or one of its subclasses
values
callbacks
%d
35. Primitives and C Structures...
cannot be added to an array
CGRect
CGRect bounds - GCPoint center - CGRect frame
create a XIB file
36. The integer prefix is...
Continue
callbacks
data
%d
37. NSArray - important methods...
will be ignored
you always return the newly initialized object(return self)
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
type - name and value
38. NSNumber - class...
Object wrapper around primitive types like int - float - double - BOOl
creating an initializer
view controller
instance
39. A message is always contained in square brackets - and has three parts
header files declare
for inheritance - adopting the superclasses implementation
receiver - selector - arguments
Functions
40. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
Object wrapper around primitive types like int - float - double - BOOl
is called every time the event occurs
class methods - initializers
protocol
41. NSString objects are usually sent _ rather than _...
the array relinquishes ownership of that object and no longer has a pointer to it
Instantiation from scratch
ready-made instances - instantiation from scratch - and nib based instantiation
copy - retain
42. A responder is responsible for...
callbacks
receiving and handling events that are associated with it
implementation
Functions
43. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
NSCoder
receiver[message]
UIView
draw images
44. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
you always return the newly initialized object(return self)
protocol
unordered collection of objects - objects must be unique
45. Why properties?
safety - subclassability and makes code look more consistent with C structs
view
type - name and value
cannot be added to an array
46. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
'getters' and 'setters'
a mechanism to enable specific callbacks
C Functionn
lowercase - uppercase
47. 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
48. NSDictionary...
header files declare
accessors - individually we call them 'getters' and 'setters'
Hash table - Look up objects using a key to get a value.
CGFloat
49. if you implemented both the setter and getter - the @synthesize method...
creates an instance of NSString that holds the character string
a single-array can contain objects of different types
instance variables
will be ignored
50. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
NSBundle
will be ignored
an object's property
Instantiation from scratch