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 view is an...
only the class and subclasses can access
in the dealloc - or when a Controller's view is 'unloaded'
collection of collections - NSArray of an NSArray
instance of UIView or one of its subclasses
2. 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
copy - retain
cannot be added to an array
its dataSource
3. Defining variables - three parts...
the array relinquishes ownership of that object and no longer has a pointer to it
Ready-Made Instance
position
type - name and value
4. 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
parentViewController
attributes - behavior
copy - retain
'getters' and 'setters'
5. Ready-made instances...
instance of UIView or one of its subclasses
calling code that does the instantiation for you
will be ignored
upper
6. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
for inheritance - adopting the superclasses implementation
designated initializer
header files declare
methods for generating an instance
7. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
NSBundle
view controller's initialization method
C Functionn
Instantiation from scratch
8. 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 _.
upper
do so in viewDidLoad
subview(s)
is called every time the event occurs
9. 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
data
Encapsulation of functionality
designated initializer
dealloc - is called on the object & the object's memory is returned to the heap
10. How do I implement my drawRect?
view controller
header files declare
Anytime you call a method with new - alloc or copy. You own and must release that object.
Core Graphics Framework
11. Reducing details to focus on the core concepts
Anytime you call a method with new - alloc or copy. You own and must release that object.
arguments[message]
cannot be added to an array
Abstraction
12. Core foundation classes are prefixed with _ and suffixed with _
references to objects
viewWillDissapear: and viewWillAppear:
to give it someone else - or another object
CF - Ref
13. NSNumber - class...
Abstraction
ordered collection of objects - immutable
you must import the header file of that class
Object wrapper around primitive types like int - float - double - BOOl
14. In the last line of an init method...
to give it someone else - or another object
declaration and initialization of a variable
Instantiation from scratch
you always return the newly initialized object(return self)
15. All objects are accessed using...
pointers
only the innermost loop in which the break is executed is terminated
a single-array can contain objects of different types
methods for generating an instance
16. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
first responder
object
in the dealloc - or when a Controller's view is 'unloaded'
Is a placeholder object
17. NSSet...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
methods for generating an instance
unordered collection of objects - objects must be unique
self
18. Classes describe two things...
new instances of the class or retrieve some global property of the class.
class
designated initializer
attributes - behavior
19. 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
20. class methods...
receiver[message]
Encapsulation of functionality
group of global functions already assigned to this class
super - self
21. A view is a subclass of _
they need to be defined in the implementation file
safety - subclassability and makes code look more consistent with C structs
has one root view controller
UIView
22. 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
23. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
the instance variables
view
instance variables
Ready-Made Instance
24. What does autorelease mean?
first responder
wait until the loop finishes processing the event - at the end release it
@synthesize
implementation
25. Object Oriented based analogue to a function is called a...
collection of collections - NSArray of an NSArray
method
instance
values
26. NSArray - class...
wait until the loop finishes processing the event - at the end release it
ordered collection of objects - immutable
implementation
UIView
27. When an NSMutableArray is deallocated - it sends...
pointer to an object
@synthesize
they need to be defined in the implementation file
the message release to all its entries
28. An instance is a device for maintaining state. It's a box for _ of data.
@interface ClassName:SuperClassName
NSCoder
array[class - NSMutableArray]
storage
29. Use of class methods - there are three...
viewWillDissapear: and viewWillAppear:
ordered collection of objects - immutable
alloc - singleton - informational utility method?
self
30. A _ handles touch events.
retain
view controller
view
class's
31. A callback is a function that is supplied in advance of an event - and...
the array becomes an owner of that object and has a pointer to it.
is called every time the event occurs
data source - view controller and delegate
receiver[message]
32. A message is always contained in square brackets - and has three parts
a mechanism to enable specific callbacks
receiver - selector - arguments
dealloc - is called on the object & the object's memory is returned to the heap
NSLog routine
33. Number one use of protocols in iOS...
class methods - initializers
references to objects
parentViewController
delegates and dataSources
34. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
Anytime you call a method with new - alloc or copy. You own and must release that object.
a single-array can contain objects of different types
CGRect
message
35. Whenever a UINavigationController is about to swap views - it sends out two messages
viewWillDissapear: and viewWillAppear:
receiver - selector - arguments
class methods - initializers
instance
36. A method in a _ is required unless its preceded by an @optional.
only the innermost loop in which the break is executed is terminated
first responder
protocol
message
37. Instance Variables by default are called @protected meaning...
Used to find the time right now or to store past or future time/dates
pointer to an object
Functions
only the class and subclasses can access
38. if you implemented both the setter and getter - the @synthesize method...
will be ignored
CGRect bounds - GCPoint center - CGRect frame
Generic object wrapper for other non-object data types
'getters' and 'setters'
39. 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
alloc - singleton - informational utility method?
class methods - initializers
nil
40. A responder is responsible for...
only the class and subclasses can access
receiving and handling events that are associated with it
creating an initializer
Data Encapsulation
41. At the top of any implementation file...
type - name and value
a mechanism to enable specific callbacks
causes the program to immediately exit from the loop it is executing - whether its for - while or do
you must import the header file of that class
42. Asking a class or object to execute a method
message
class's
draw images
the message release to all its entries
43. Class methods do not operate on an _ or have any access to _ variables....
instance
header files declare
array[class - NSMutableArray]
collection of collections - NSArray of an NSArray
44. A pointer to the object being asked to execute a method
reuse your cells
initializers
Functions
receiver[message]
45. NSString *s = @'Hello - World'; is an example of...
instance
methods
CGRect bounds
declaration and initialization of a variable
46. Each _ has a 'designated' initializer method....
setPossessionName
alloc - singleton - informational utility method?
only the innermost loop in which the break is executed is terminated
class
47. Center and frame are used to _ your view
copy - retain
position
wait until the loop finishes processing the event - at the end release it
dealloc - is called on the object & the object's memory is returned to the heap
48. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
Is a placeholder object
receiver
viewWillDissapear: and viewWillAppear:
alloc - singleton - informational utility method?
49. A UITableView usually needs three different pieces...
creates an instance of NSString that holds the character string
superclass's
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
data source - delegate and view controller
50. Values to be supplied as the parameters to the method
the array becomes an owner of that object and has a pointer to it.
alloc - singleton - informational utility method?
arguments[message]
Ready-Made Instance
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