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. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
object
viewWillDissapear: and viewWillAppear:
@interface ClassName:SuperClassName
retain
2. 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
3. UIViewController has several methods that get called at certain times...
position
Generic object wrapper for other non-object data types
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
receiver
4. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
rectangular
CGFloat
class methods - initializers
define it in the implemenation file
5. A responder is responsible for...
declaration and initialization of a variable
delegates and dataSources
in the dealloc - or when a Controller's view is 'unloaded'
receiving and handling events that are associated with it
6. When an object is removed from an NSMutableArray - that object is sent the message release;...
view
size and position
unordered collection of objects - objects must be unique
the array relinquishes ownership of that object and no longer has a pointer to it
7. 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
8. Files Owner...
Is a placeholder object
data
pointers
arguments[message]
9. @property declares - and _ implements the setter and getter...
UIView
copy - retain
define it in the implemenation file
@synthesize
10. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
super - self
CGRect
view controller
UIView
11. Why properties?
safety - subclassability and makes code look more consistent with C structs
do so in viewDidLoad
designated initializer
creates an instance of NSString that holds the character string
12. If the view has no subviews - create it programmatically; if it has subviews
create a XIB file
array[class - NSMutableArray]
CGFloat
Abstraction
13. id is a...
pointer to an object
has one root view controller
in the dealloc - or when a Controller's view is 'unloaded'
instance variables
14. A view is an...
initializers
methods for generating an instance
setPossessionName
instance of UIView or one of its subclasses
15. if you implemented both the setter and getter - the @synthesize method...
initializers
message
Encapsulation of functionality
will be ignored
16. Origin of a view's coordinate system is _ left
upper
type - name and value
new instances of the class or retrieve some global property of the class.
collection of collections - NSArray of an NSArray
17. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
collection of collections - NSArray of an NSArray
calling code that does the instantiation for you
protocol
Controller Objects[Managers]
18. To load a Xib file manually - you use _
accessors - individually we call them 'getters' and 'setters'
NSBundle
instance variable of an object is valid
subview(s)
19. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
receiver - selector - arguments
NSCoder
calling code that does the instantiation for you
method
20. NSNumber - class...
cannot be added to an array
Object wrapper around primitive types like int - float - double - BOOl
is called every time the event occurs
declaration and initialization of a variable
21. In Cocoa Touch - the table view asks another object _ what it should display...
its dataSource
%d
callbacks
new instances of the class or retrieve some global property of the class.
22. All objects are accessed using...
NSBundle
initializer
Hash table - Look up objects using a key to get a value.
pointers
23. Categories are an Objective C way to add _ to an existing class without subclassing
reuse your cells
upper
methods
dealloc - is called on the object & the object's memory is returned to the heap
24. NSDictionary...
Hash table - Look up objects using a key to get a value.
only the innermost loop in which the break is executed is terminated
pointer to an object
Anytime you call a method with new - alloc or copy. You own and must release that object.
25. A message is always contained in square brackets - and has three parts
receiver - selector - arguments
Instantiation from scratch
for inheritance - adopting the superclasses implementation
references to objects
26. 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.
receiving and handling events that are associated with it
class's
viewWillDissapear: and viewWillAppear:
creating an initializer
27. Name of the method to be executed
You take ownership for an object you want to keep a pointer to
CF - Ref
selector[message]
NSBundle
28. Three ways instances are created...
receiver[message]
a single-array can contain objects of different types
ready-made instances - instantiation from scratch - and nib based instantiation
superclass's
29. super - is used...
Data Encapsulation
type - name and value
create a XIB file
for inheritance - adopting the superclasses implementation
30. 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
CGRect bounds - GCPoint center - CGRect frame
%d
is an instance of that class
31. 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
you must import the header file of that class
to give it someone else - or another object
Maintenance of state
Anytime you call a method with new - alloc or copy. You own and must release that object.
32. 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
33. Instance Variables by default are called @protected meaning...
only the class and subclasses can access
pointer - class
NSBundle
Object wrapper around primitive types like int - float - double - BOOl
34. Ready-made instances...
methods
parentViewController
message
calling code that does the instantiation for you
35. A command directed to an object is called an...
Controller Objects[Managers]
you always return the newly initialized object(return self)
message
Hash table - Look up objects using a key to get a value.
36. A view is a subclass of _
pointer - class
UIView
NSBundle
Core Graphics Framework
37. A view represents a _ area
its dataSource
declaration and initialization of a variable
unordered collection of objects - objects must be unique
rectangular
38. Each _ has a 'designated' initializer method....
data
setPossessionName
class
data source - view controller and delegate
39. In general - class methods tend to be factory methods - that is...
CF - Ref
nil
instance
methods for generating an instance
40. Prefixing a character string with an @ symbol [specific - NSString class]...
safety - subclassability and makes code look more consistent with C structs
Object wrapper around primitive types like int - float - double - BOOl
selector[message]
creates an instance of NSString that holds the character string
41. In Objective C arrays can hold only...
message
selector[message]
values
references to objects
42. 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....
methods for generating an instance
collection of collections - NSArray of an NSArray
retain
define it in the implemenation file
43. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
data
designated initializer
header files declare
C Functionn
44. UIImageView is used to...
do so in viewDidLoad
instance of UIView or one of its subclasses
declaration and initialization of a variable
draw images
45. Use of class methods - there are three...
instance of UIView or one of its subclasses
dealloc - is called on the object & the object's memory is returned to the heap
methods
alloc - singleton - informational utility method?
46. 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
instance variable of an object is valid
a mechanism to enable specific callbacks
dealloc - is called on the object & the object's memory is returned to the heap
is called every time the event occurs
47. Class methods do not operate on an _ or have any access to _ variables....
superclass's
reuse your cells
size and position
instance
48. A pointer to the object being asked to execute a method
the array relinquishes ownership of that object and no longer has a pointer to it
NSCoder
Maintenance of state
receiver[message]
49. class methods...
a mechanism to enable specific callbacks
safety - subclassability and makes code look more consistent with C structs
group of global functions already assigned to this class
Functions
50. When an object is added to a NSMutableArray - that object is sent the message to retain;...
define it in the implemenation file
CGRect bounds
the array becomes an owner of that object and has a pointer to it.
nil
Sorry!:) No result found.
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