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. Core foundation classes are prefixed with _ and suffixed with _
Hash table - Look up objects using a key to get a value.
CF - Ref
@synthesize
draw images
2. You use _ to implement the view
group of global functions already assigned to this class
will be ignored
CGRect bounds
self
3. If a break statement is executed from within a set of nested loops...
view controller
setPossessionName
references to objects
only the innermost loop in which the break is executed is terminated
4. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
a single-array can contain objects of different types
size and position
declaration and initialization of a variable
object
5. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
they need to be defined in the implementation file
in the dealloc - or when a Controller's view is 'unloaded'
view controller
6. 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
only the class and subclasses can access
Hash table - Look up objects using a key to get a value.
Maintenance of state
receiving and handling events that are associated with it
7. The only reason to temporarily own an object - is...
to give it someone else - or another object
is called every time the event occurs
instance variables
method
8. When do you take ownership?...
NSBundle
Anytime you call a method with new - alloc or copy. You own and must release that object.
new instances of the class or retrieve some global property of the class.
%d
9. Object Oriented based analogue to a function is called a...
self
method
Functions
the array becomes an owner of that object and has a pointer to it.
10. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
NSCoder
arguments[message]
parentViewController
11. super - is used...
subview(s)
first responder
for inheritance - adopting the superclasses implementation
implementation
12. NSNumber - class...
group of global functions already assigned to this class
object
protocol
Object wrapper around primitive types like int - float - double - BOOl
13. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
Used to find the time right now or to store past or future time/dates
first responder
methods for generating an instance
C Functionn
14. initWithFrame: the designated initializer for UIView gives the view
message
size and position
receiving and handling events that are associated with it
variable scope - if defined within a block
15. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
rectangular
receiver
Hash table - Look up objects using a key to get a value.
the instance variables
16. Categories are an Objective C way to add _ to an existing class without subclassing
dealloc - is called on the object & the object's memory is returned to the heap
safety - subclassability and makes code look more consistent with C structs
the array becomes an owner of that object and has a pointer to it.
methods
17. Class methods typically either create
new instances of the class or retrieve some global property of the class.
pointer - class
Functions
instance variables
18. class methods...
wait until the loop finishes processing the event - at the end release it
group of global functions already assigned to this class
superclass's
Ready-Made Instance
19. UITableViewController is a subclass of...
protocol
cannot be added to an array
parentViewController
UIViewController
20. In the last line of an init method...
UIView
values
first responder
you always return the newly initialized object(return self)
21. A view is an...
instance of UIView or one of its subclasses
for inheritance - adopting the superclasses implementation
receiver[message]
safety - subclassability and makes code look more consistent with C structs
22. A view represents a _ area
Anytime you call a method with new - alloc or copy. You own and must release that object.
'getters' and 'setters'
rectangular
declaration and initialization of a variable
23. Origin of a view's coordinate system is _ left
upper
receiver[message]
safety - subclassability and makes code look more consistent with C structs
C Functionn
24. Classes describe two things...
attributes - behavior
CGRect bounds - GCPoint center - CGRect frame
copy - retain
instance
25. Any individual object belonging to any class...
is an instance of that class
methods
CGRect bounds
view
26. Why properties?
class methods - initializers
object
UIViewController
safety - subclassability and makes code look more consistent with C structs
27. A function in the objective c library that simply displays or logs it's argument
lowercase - uppercase
Instantiation from scratch
NSLog routine
class
28. Designated initializer makes sure that every...
UIView
instance variables
class
instance variable of an object is valid
29. @property declares - and _ implements the setter and getter...
variable scope - if defined within a block
@synthesize
collection of collections - NSArray of an NSArray
Used to find the time right now or to store past or future time/dates
30. When an NSMutableArray is deallocated - it sends...
they need to be defined in the implementation file
an object's property
CGRect bounds
the message release to all its entries
31. Execution of the break statement...
ordered collection of objects - immutable
creating an initializer
causes the program to immediately exit from the loop it is executing - whether its for - while or do
%d
32. How do I implement my drawRect?
position
storage
message
Core Graphics Framework
33. Property List...
ordered collection of objects - immutable
NSLog routine
collection of collections - NSArray of an NSArray
Data Encapsulation
34. In general - class methods tend to be factory methods - that is...
methods for generating an instance
instance
delegates and dataSources
class's
35. Delegation is an object oriented approach to
draw images
a mechanism to enable specific callbacks
pointer - class
callbacks
36. NSSet...
subview(s)
unordered collection of objects - objects must be unique
class methods - initializers
Functions
37. Reducing details to focus on the core concepts
CGRect
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
selector[message]
Abstraction
38. 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
arguments[message]
Functions
callbacks
new instances of the class or retrieve some global property of the class.
39. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
view
method
CGRect
instance
40. Number one use of protocols in iOS...
delegates and dataSources
subview(s)
Continue
@interface ClassName:SuperClassName
41. Files Owner...
Is a placeholder object
protocol
position
Model Objects[Factory Worker]
42. Whenever a UINavigationController is about to swap views - it sends out two messages
message
retain
viewWillDissapear: and viewWillAppear:
reuse your cells
43. NSString objects are usually sent _ rather than _...
declaration and initialization of a variable
subview(s)
copy - retain
is called every time the event occurs
44. A pointer to the object being asked to execute a method
Hash table - Look up objects using a key to get a value.
receiver[message]
size and position
header files declare
45. Typically the designated initializer has parameters for the most important and frequently used _ of an object
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
retain
pointer to an object
instance variables
46. Each _ has a 'designated' initializer method....
class
in the dealloc - or when a Controller's view is 'unloaded'
Encapsulation of functionality
@interface ClassName:SuperClassName
47. Defining variables - three parts...
class's
data source - view controller and delegate
type - name and value
Controller Objects[Managers]
48. Primitives and C Structures...
cannot be added to an array
variable scope - if defined within a block
CGRect bounds - GCPoint center - CGRect frame
is called every time the event occurs
49. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
they need to be defined in the implementation file
class methods - initializers
will be ignored
pointer - class
50. Class methods do not operate on an _ or have any access to _ variables....
Model Objects[Factory Worker]
@synthesize
class's
instance
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