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. What does autorelease mean?
has one root view controller
wait until the loop finishes processing the event - at the end release it
receiver
Model Objects[Factory Worker]
2. Name of the method to be executed
message
selector[message]
type - name and value
will be ignored
3. Reducing details to focus on the core concepts
Abstraction
instance variable of an object is valid
to give it someone else - or another object
nil
4. 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
5. Property List...
define it in the implemenation file
message
collection of collections - NSArray of an NSArray
safety - subclassability and makes code look more consistent with C structs
6. In general - class methods tend to be factory methods - that is...
a single-array can contain objects of different types
NSCoder
rectangular
methods for generating an instance
7. At the top of any implementation file...
you must import the header file of that class
alloc - singleton - informational utility method?
designated initializer
arguments[message]
8. UITableViewController is a subclass of...
UIViewController
you must import the header file of that class
is called every time the event occurs
in the dealloc - or when a Controller's view is 'unloaded'
9. Just a floating point number - but we always use it for graphics.
CGFloat
receiver
dealloc - is called on the object & the object's memory is returned to the heap
implementation
10. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
attributes - behavior
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Core Graphics Framework
class methods - initializers
11. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
object
self
super - self
creates an instance of NSString that holds the character string
12. A UITableView usually needs three different pieces...
in the dealloc - or when a Controller's view is 'unloaded'
data source - delegate and view controller
safety - subclassability and makes code look more consistent with C structs
alloc - singleton - informational utility method?
13. 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
message
Maintenance of state
group of global functions already assigned to this class
collection of collections - NSArray of an NSArray
14. When do you take ownership?...
Anytime you call a method with new - alloc or copy. You own and must release that object.
(id)initWithFrame:(CGRect)aRect;
ordered collection of objects - immutable
implementation
15. UIView - designated initializer...
protocol
(id)initWithFrame:(CGRect)aRect;
array[class - NSMutableArray]
creates an instance of NSString that holds the character string
16. Delegation is an object oriented approach to
arguments[message]
cannot be added to an array
instance of UIView or one of its subclasses
callbacks
17. Three ways instances are created...
copy - retain
ready-made instances - instantiation from scratch - and nib based instantiation
first responder
define it in the implemenation file
18. The only reason to temporarily own an object - is...
to give it someone else - or another object
receiver[message]
header files declare
causes the program to immediately exit from the loop it is executing - whether its for - while or do
19. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Abstraction
ordered collection of objects - immutable
draw images
Ready-Made Instance
20. Categories are an Objective C way to add _ to an existing class without subclassing
Maintenance of state
copy - retain
will be ignored
methods
21. A view is an...
accessors - individually we call them 'getters' and 'setters'
message
method
instance of UIView or one of its subclasses
22. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
copy - retain
Hash table - Look up objects using a key to get a value.
dealloc - is called on the object & the object's memory is returned to the heap
initializers
23. If a break statement is executed from within a set of nested loops...
instance
only the innermost loop in which the break is executed is terminated
NSCoder
references to objects
24. NSArray - class...
parentViewController
protocol
attributes - behavior
ordered collection of objects - immutable
25. Files Owner...
callbacks
methods
rectangular
Is a placeholder object
26. A view represents a _ area
pointer to an object
pointer - class
rectangular
receiver
27. Class methods do not operate on an _ or have any access to _ variables....
lowercase - uppercase
data source - delegate and view controller
instance
group of global functions already assigned to this class
28. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Ready-Made Instance
Instantiation from scratch
You take ownership for an object you want to keep a pointer to
'getters' and 'setters'
29. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
30. 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
31. Prefixing a character string with an @ symbol [specific - NSString class]...
message
creates an instance of NSString that holds the character string
data source - delegate and view controller
pointer to an object
32. 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.
UIViewController
is an instance of that class
Data Encapsulation
message
33. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
you always return the newly initialized object(return self)
parentViewController
has one root view controller
34. [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.
for inheritance - adopting the superclasses implementation
data
instance
calling code that does the instantiation for you
35. Object Oriented based analogue to a function is called a...
CGRect
NSCoder
methods
method
36. Origin of a view's coordinate system is _ left
CGRect bounds
the array relinquishes ownership of that object and no longer has a pointer to it
you always return the newly initialized object(return self)
upper
37. Each _ has a 'designated' initializer method....
(id)initWithFrame:(CGRect)aRect;
class
nil
methods
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
initializer
Functions
selector[message]
Object wrapper around primitive types like int - float - double - BOOl
39. The root view controller typically creates the next view controller - and the next _ creates the one after that
view controller
calling code that does the instantiation for you
attributes - behavior
superclass's
40. 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
41. Core foundation classes are prefixed with _ and suffixed with _
callbacks
CF - Ref
you always return the newly initialized object(return self)
class methods - initializers
42. A UITableViewController can fill all three roles of...
data source - view controller and delegate
the message release to all its entries
Abstraction
pointer to an object
43. Each class picks one _ as it's designated initializer....
initializer
type - name and value
in the dealloc - or when a Controller's view is 'unloaded'
copy - retain
44. In any application with UINavigationController - the navigation controller...
instance variables
has one root view controller
initializer
safety - subclassability and makes code look more consistent with C structs
45. 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 _.
variable scope - if defined within a block
initializer
nil
declaration and initialization of a variable
46. When an object is added to a NSMutableArray - that object is sent the message to retain;...
receiver[message]
the instance variables
Instantiation from scratch
the array becomes an owner of that object and has a pointer to it.
47. An instance is a device for maintaining state. It's a box for _ of data.
subview(s)
position
storage
pointer to an object
48. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
Model Objects[Factory Worker]
designated initializer
class methods - initializers
delegates and dataSources
49. NSSet...
Hash table - Look up objects using a key to get a value.
first responder
calling code that does the instantiation for you
unordered collection of objects - objects must be unique
50. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
creates an instance of NSString that holds the character string
NSCoder
class's
group of global functions already assigned to this class
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