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. A function in the objective c library that simply displays or logs it's argument
in the dealloc - or when a Controller's view is 'unloaded'
draw images
Anytime you call a method with new - alloc or copy. You own and must release that object.
NSLog routine
2. NSString objects are usually sent _ rather than _...
the instance variables
copy - retain
nil
setPossessionName
3. if you implemented both the setter and getter - the @synthesize method...
will be ignored
to give it someone else - or another object
lowercase - uppercase
view controller
4. NSDate - class...
size and position
Used to find the time right now or to store past or future time/dates
nil
causes the program to immediately exit from the loop it is executing - whether its for - while or do
5. Each class picks one _ as it's designated initializer....
subview(s)
initializer
you must import the header file of that class
CGFloat
6. Defining variables - three parts...
Data Encapsulation
is called every time the event occurs
initializer
type - name and value
7. Three ways instances are created...
variable scope - if defined within a block
ready-made instances - instantiation from scratch - and nib based instantiation
superclass's
a single-array can contain objects of different types
8. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
a mechanism to enable specific callbacks
arguments[message]
initializers
NSLog routine
9. 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
CGFloat
to give it someone else - or another object
C Functionn
10. A method in a _ is required unless its preceded by an @optional.
creates an instance of NSString that holds the character string
instance of UIView or one of its subclasses
calling code that does the instantiation for you
protocol
11. 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
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Encapsulation of functionality
Maintenance of state
12. 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....
upper
define it in the implemenation file
for inheritance - adopting the superclasses implementation
ready-made instances - instantiation from scratch - and nib based instantiation
13. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
safety - subclassability and makes code look more consistent with C structs
an object's property
You take ownership for an object you want to keep a pointer to
14. A view is a subclass of _
lowercase - uppercase
instance variables
UIView
cannot be added to an array
15. Use of class methods - there are three...
protocol
create a XIB file
storage
alloc - singleton - informational utility method?
16. 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.
CGRect bounds - GCPoint center - CGRect frame
Hash table - Look up objects using a key to get a value.
group of global functions already assigned to this class
creating an initializer
17. All objects are accessed using...
for inheritance - adopting the superclasses implementation
draw images
in the dealloc - or when a Controller's view is 'unloaded'
pointers
18. Class methods typically either create
implementation
declaration and initialization of a variable
methods for generating an instance
new instances of the class or retrieve some global property of the class.
19. Only exists within the statement block there defined - outside of the block is fine
NSLog routine
NSBundle
You take ownership for an object you want to keep a pointer to
variable scope - if defined within a block
20. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
designated initializer
'getters' and 'setters'
class
callbacks
21. 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.
@synthesize
is an instance of that class
Data Encapsulation
position
22. 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 _.
causes the program to immediately exit from the loop it is executing - whether its for - while or do
initializers
subview(s)
instance variables
23. Ready-made instances...
accessors - individually we call them 'getters' and 'setters'
Maintenance of state
Core Graphics Framework
calling code that does the instantiation for you
24. Property List...
collection of collections - NSArray of an NSArray
pointer to an object
for inheritance - adopting the superclasses implementation
data source - delegate and view controller
25. Asking a class or object to execute a method
array[class - NSMutableArray]
Model Objects[Factory Worker]
message
CF - Ref
26. When an object is added to a NSMutableArray - that object is sent the message to retain;...
viewWillDissapear: and viewWillAppear:
lowercase - uppercase
Model Objects[Factory Worker]
the array becomes an owner of that object and has a pointer to it.
27. @property - is using methods...
attributes - behavior
to get and set variables
message
do so in viewDidLoad
28. The integer prefix is...
NSBundle
%d
references to objects
instance
29. NSValue - class...
ordered collection of objects - immutable
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Generic object wrapper for other non-object data types
rectangular
30. Whenever a UINavigationController is about to swap views - it sends out two messages
accessors - individually we call them 'getters' and 'setters'
viewWillDissapear: and viewWillAppear:
self
data
31. NSDictionary...
Continue
Hash table - Look up objects using a key to get a value.
lowercase - uppercase
references to objects
32. Center and frame are used to _ your view
instance of UIView or one of its subclasses
unordered collection of objects - objects must be unique
position
you must import the header file of that class
33. To load a Xib file manually - you use _
NSBundle
Controller Objects[Managers]
Continue
C Functionn
34. A callback is a function that is supplied in advance of an event - and...
is called every time the event occurs
group of global functions already assigned to this class
Controller Objects[Managers]
causes the program to immediately exit from the loop it is executing - whether its for - while or do
35. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
C Functionn
copy - retain
@interface ClassName:SuperClassName
draw images
36. If a break statement is executed from within a set of nested loops...
creates an instance of NSString that holds the character string
reuse your cells
only the innermost loop in which the break is executed is terminated
Used to find the time right now or to store past or future time/dates
37. Reference Counting...
You take ownership for an object you want to keep a pointer to
viewWillDissapear: and viewWillAppear:
will be ignored
object
38. In a class method you cannot access...
Maintenance of state
the instance variables
create a XIB file
do so in viewDidLoad
39. When do you take ownership?...
array[class - NSMutableArray]
class methods - initializers
safety - subclassability and makes code look more consistent with C structs
Anytime you call a method with new - alloc or copy. You own and must release that object.
40. 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...
setPossessionName
Encapsulation of functionality
callbacks
cannot be added to an array
41. id is a...
the message release to all its entries
pointer - class
Functions
pointer to an object
42. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
methods for generating an instance
%d
object
pointer to an object
43. After accessors have been defined in the header file...
view controller's initialization method
C Functionn
they need to be defined in the implementation file
pointer to an object
44. 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
Is a placeholder object
dealloc - is called on the object & the object's memory is returned to the heap
CF - Ref
a mechanism to enable specific callbacks
45. Delegation is an object oriented approach to
Anytime you call a method with new - alloc or copy. You own and must release that object.
callbacks
(id)initWithFrame:(CGRect)aRect;
has one root view controller
46. A view is an...
instance of UIView or one of its subclasses
has one root view controller
type - name and value
array[class - NSMutableArray]
47. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
type - name and value
class methods - initializers
rectangular
position
48. A message is always contained in square brackets - and has three parts
receiver - selector - arguments
has one root view controller
Anytime you call a method with new - alloc or copy. You own and must release that object.
rectangular
49. An instance is a device for maintaining state. It's a box for _ of data.
storage
designated initializer
Model Objects[Factory Worker]
self
50. If the view has no subviews - create it programmatically; if it has subviews
create a XIB file
UIView
Encapsulation of functionality
CGRect bounds - GCPoint center - CGRect frame
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests