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. At the top of any implementation file...
C Functionn
CGRect bounds - GCPoint center - CGRect frame
you must import the header file of that class
Encapsulation of functionality
2. A view is an...
the array relinquishes ownership of that object and no longer has a pointer to it
instance of UIView or one of its subclasses
only the innermost loop in which the break is executed is terminated
view controller's initialization method
3. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
CGRect
array[class - NSMutableArray]
Continue
designated initializer
4. Instance Variables by default are called @protected meaning...
view
designated initializer
a mechanism to enable specific callbacks
only the class and subclasses can access
5. It's class is sent the message alloc - which creates an instance of that class and returns a pointer to it - and then that instance is sent the message init - which gives its instance variables initial values.
alloc - singleton - informational utility method?
to get and set variables
new instances of the class or retrieve some global property of the class.
creating an initializer
6. A view represents a _ area
Is a placeholder object
has one root view controller
(id)initWithFrame:(CGRect)aRect;
rectangular
7. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
Functions
lowercase - uppercase
You take ownership for an object you want to keep a pointer to
new instances of the class or retrieve some global property of the class.
8. Just a floating point number - but we always use it for graphics.
do so in viewDidLoad
CGFloat
implementation
methods
9. Three ways instances are created...
collection of collections - NSArray of an NSArray
Data Encapsulation
class
ready-made instances - instantiation from scratch - and nib based instantiation
10. Class methods do not operate on an _ or have any access to _ variables....
declaration and initialization of a variable
instance
draw images
copy - retain
11. If a break statement is executed from within a set of nested loops...
upper
pointer - class
Continue
only the innermost loop in which the break is executed is terminated
12. 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
13. A collection object - an ordered list of objects that can be accesed by an index
Anytime you call a method with new - alloc or copy. You own and must release that object.
array[class - NSMutableArray]
unordered collection of objects - objects must be unique
header files declare
14. 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
15. @property - is using methods...
Functions
size and position
NSBundle
to get and set variables
16. Hold data and know nothing about the user interface
unordered collection of objects - objects must be unique
position
Model Objects[Factory Worker]
upper
17. NSString objects are usually sent _ rather than _...
pointer to an object
Object wrapper around primitive types like int - float - double - BOOl
creating an initializer
copy - retain
18. In Objective C arrays can hold only...
object
you always return the newly initialized object(return self)
callbacks
references to objects
19. Designated initializer makes sure that every...
class methods - initializers
copy - retain
message
instance variable of an object is valid
20. A method in a _ is required unless its preceded by an @optional.
methods for generating an instance
protocol
attributes - behavior
lowercase - uppercase
21. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
header files declare
designated initializer
UIView
class's
22. UIView - designated initializer...
references to objects
wait until the loop finishes processing the event - at the end release it
(id)initWithFrame:(CGRect)aRect;
@synthesize
23. In Objective C - the name of a setter method is set plus the name of the instance variable it is changing - for example PossessionName would be...
the instance variables
ready-made instances - instantiation from scratch - and nib based instantiation
setPossessionName
receiving and handling events that are associated with it
24. Each _ has a 'designated' initializer method....
define it in the implemenation file
has one root view controller
@interface ClassName:SuperClassName
class
25. In Cocoa Touch - the table view asks another object _ what it should display...
new instances of the class or retrieve some global property of the class.
its dataSource
create a XIB file
values
26. Reference Counting...
UIView
@synthesize
You take ownership for an object you want to keep a pointer to
data source - view controller and delegate
27. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
causes the program to immediately exit from the loop it is executing - whether its for - while or do
position
C Functionn
define it in the implemenation file
28. initWithFrame: the designated initializer for UIView gives the view
size and position
view controller's initialization method
causes the program to immediately exit from the loop it is executing - whether its for - while or do
designated initializer
29. All objects are accessed using...
to give it someone else - or another object
pointers
instance of UIView or one of its subclasses
values
30. Files Owner...
for inheritance - adopting the superclasses implementation
Is a placeholder object
Core Graphics Framework
new instances of the class or retrieve some global property of the class.
31. UITableViewController is a subclass of...
initializer
parentViewController
safety - subclassability and makes code look more consistent with C structs
UIViewController
32. Reducing details to focus on the core concepts
Maintenance of state
header files declare
Abstraction
Generic object wrapper for other non-object data types
33. Also - because arrays only hold a pointer to an object...
data
to get and set variables
a single-array can contain objects of different types
class's
34. Each class picks one _ as it's designated initializer....
initializer
you must import the header file of that class
size and position
Maintenance of state
35. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
C Functionn
they need to be defined in the implementation file
Functions
super - self
36. 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
object
Ready-Made Instance
a mechanism to enable specific callbacks
safety - subclassability and makes code look more consistent with C structs
37. 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.
Data Encapsulation
NSLog routine
super - self
class's
38. You use _ to implement the view
Functions
CGRect bounds
Object wrapper around primitive types like int - float - double - BOOl
instance
39. Name of the method to be executed
is called every time the event occurs
selector[message]
collection of collections - NSArray of an NSArray
receiving and handling events that are associated with it
40. Object Oriented based analogue to a function is called a...
has one root view controller
method
its dataSource
position
41. Classes describe two things...
UIViewController
Encapsulation of functionality
attributes - behavior
%d
42. Number one use of protocols in iOS...
the array becomes an owner of that object and has a pointer to it.
define it in the implemenation file
retain
delegates and dataSources
43. A function in the objective c library that simply displays or logs it's argument
NSLog routine
pointer to an object
class
position
44. A view is a subclass of _
message
viewWillDissapear: and viewWillAppear:
C Functionn
UIView
45. Ready-made instances...
they need to be defined in the implementation file
dealloc - is called on the object & the object's memory is returned to the heap
CGRect bounds
calling code that does the instantiation for you
46. Primitives and C Structures...
draw images
implementation
cannot be added to an array
instance variable of an object is valid
47. Prefixing a character string with an @ symbol [specific - NSString class]...
reuse your cells
is called every time the event occurs
creates an instance of NSString that holds the character string
selector[message]
48. 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
header files declare
Functions
class
49. 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 _.
first responder
pointer - class
UIView
Controller Objects[Managers]
50. 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....
define it in the implemenation file
wait until the loop finishes processing the event - at the end release it
view controller
Core Graphics Framework