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. All objects are accessed using...
UIViewController
Model Objects[Factory Worker]
to give it someone else - or another object
pointers
2. 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
Maintenance of state
has one root view controller
@synthesize
to get and set variables
3. Execution of the break statement...
message
ready-made instances - instantiation from scratch - and nib based instantiation
causes the program to immediately exit from the loop it is executing - whether its for - while or do
receiver - selector - arguments
4. After accessors have been defined in the header file...
delegates and dataSources
they need to be defined in the implementation file
only the class and subclasses can access
object
5. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
receiver - selector - arguments
values
object
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
the message release to all its entries
header files declare
dealloc - is called on the object & the object's memory is returned to the heap
CGRect bounds
7. Origin of a view's coordinate system is _ left
only the class and subclasses can access
has one root view controller
upper
pointer to an object
8. In object oriented languages - we call methods that get and set instance variables
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
9. @property declares - and _ implements the setter and getter...
Object wrapper around primitive types like int - float - double - BOOl
@synthesize
%d
first responder
10. When do we need to release our outlets?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
11. 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
alloc - singleton - informational utility method?
position
class
12. NSArray - important methods...
safety - subclassability and makes code look more consistent with C structs
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
initializers
attributes - behavior
13. How do I implement my drawRect?
you must import the header file of that class
subview(s)
Core Graphics Framework
group of global functions already assigned to this class
14. A message is always contained in square brackets - and has three parts
type - name and value
unordered collection of objects - objects must be unique
'getters' and 'setters'
receiver - selector - arguments
15. initWithFrame: the designated initializer for UIView gives the view
Model Objects[Factory Worker]
to give it someone else - or another object
Encapsulation of functionality
size and position
16. In general - class methods tend to be factory methods - that is...
methods for generating an instance
alloc - singleton - informational utility method?
Core Graphics Framework
group of global functions already assigned to this class
17. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
implementation
Data Encapsulation
receiver
receiver[message]
18. If the view has no subviews - create it programmatically; if it has subviews
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
the message release to all its entries
Functions
create a XIB file
19. A collection object - an ordered list of objects that can be accesed by an index
callbacks
array[class - NSMutableArray]
position
creating an initializer
20. What does autorelease mean?
UIViewController
initializers
Anytime you call a method with new - alloc or copy. You own and must release that object.
wait until the loop finishes processing the event - at the end release it
21. Three ways instances are created...
superclass's
first responder
accessors - individually we call them 'getters' and 'setters'
ready-made instances - instantiation from scratch - and nib based instantiation
22. Never access a view controller's view in that...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
23. 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
header files declare
data source - delegate and view controller
You take ownership for an object you want to keep a pointer to
Functions
24. 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
delegates and dataSources
class methods - initializers
Controller Objects[Managers]
25. If you aren't going to initialize an instance reference pointer at the moment you declare it by assigning a real value - it's a good idea to assign it _.
nil
You take ownership for an object you want to keep a pointer to
object
Model Objects[Factory Worker]
26. For view controllers that are closely related - like a table view controller and its detail view controller - you can simply give them _ that point to each other.
a single-array can contain objects of different types
class methods - initializers
instance variables
Functions
27. An instance is a device for maintaining state. It's a box for _ of data.
size and position
storage
view
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
28. [Instance Variables] The code it gets from its class and in a sense is shared with all other instances of that class - but the _ belong to it alone.
Core Graphics Framework
will be ignored
data
receiver - selector - arguments
29. A callback is a function that is supplied in advance of an event - and...
is called every time the event occurs
accessors - individually we call them 'getters' and 'setters'
Controller Objects[Managers]
creates an instance of NSString that holds the character string
30. Why properties?
safety - subclassability and makes code look more consistent with C structs
is an instance of that class
the array becomes an owner of that object and has a pointer to it.
viewWillDissapear: and viewWillAppear:
31. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
alloc - singleton - informational utility method?
instance variable of an object is valid
new instances of the class or retrieve some global property of the class.
32. Primitives and C Structures...
retain
cannot be added to an array
setPossessionName
instance of UIView or one of its subclasses
33. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
NSCoder
view controller
to get and set variables
you must import the header file of that class
34. When an object is added to a NSMutableArray - that object is sent the message to retain;...
the array becomes an owner of that object and has a pointer to it.
%d
the array relinquishes ownership of that object and no longer has a pointer to it
instance
35. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
class methods - initializers
setPossessionName
lowercase - uppercase
self
36. super - is used...
for inheritance - adopting the superclasses implementation
NSCoder
define it in the implemenation file
implementation
37. 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 _.
wait until the loop finishes processing the event - at the end release it
pointer - class
pointers
initializer
38. Center and frame are used to _ your view
has one root view controller
attributes - behavior
self
position
39. NSNumber - class...
cannot be added to an array
Object wrapper around primitive types like int - float - double - BOOl
creates an instance of NSString that holds the character string
Continue
40. 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
its dataSource
Encapsulation of functionality
NSBundle
references to objects
41. class methods...
group of global functions already assigned to this class
@synthesize
pointers
view controller's initialization method
42. When making a tableView always...
reuse your cells
@interface ClassName:SuperClassName
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
attributes - behavior
43. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
NSLog routine
C Functionn
values
a mechanism to enable specific callbacks
44. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
Hash table - Look up objects using a key to get a value.
callbacks
alloc - singleton - informational utility method?
45. The integer prefix is...
callbacks
%d
pointers
initializer
46. A pointer to the object being asked to execute a method
parentViewController
setPossessionName
receiver[message]
to give it someone else - or another object
47. A responder is responsible for...
data source - view controller and delegate
instance of UIView or one of its subclasses
Encapsulation of functionality
receiving and handling events that are associated with it
48. Ready-made instances...
pointers
calling code that does the instantiation for you
alloc - singleton - informational utility method?
the array becomes an owner of that object and has a pointer to it.
49. To load a Xib file manually - you use _
they need to be defined in the implementation file
%d
Abstraction
NSBundle
50. The root view controller typically creates the next view controller - and the next _ creates the one after that
you must import the header file of that class
view controller
has one root view controller
the array becomes an owner of that object and has a pointer to it.
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