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. In Objective C - the name of a setter method is set plus the name of the instance variable it is changing - for example PossessionName would be...
setPossessionName
Anytime you call a method with new - alloc or copy. You own and must release that object.
cannot be added to an array
Maintenance of state
2. All objects are accessed using...
CF - Ref
pointers
ordered collection of objects - immutable
accessors - individually we call them 'getters' and 'setters'
3. Primitives and C Structures...
Anytime you call a method with new - alloc or copy. You own and must release that object.
viewWillDissapear: and viewWillAppear:
cannot be added to an array
Core Graphics Framework
4. Three ways instances are created...
class's
attributes - behavior
ready-made instances - instantiation from scratch - and nib based instantiation
reuse your cells
5. Class methods do not operate on an _ or have any access to _ variables....
super - self
class methods - initializers
instance
has one root view controller
6. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
do so in viewDidLoad
only the class and subclasses can access
Controller Objects[Managers]
to give it someone else - or another object
7. Also if you send the NSObject the _ message - you own that object.
causes the program to immediately exit from the loop it is executing - whether its for - while or do
size and position
Generic object wrapper for other non-object data types
retain
8. Any individual object belonging to any class...
reuse your cells
designated initializer
%d
is an instance of that class
9. Property List...
to get and set variables
CGFloat
collection of collections - NSArray of an NSArray
retain
10. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
class methods - initializers
a mechanism to enable specific callbacks
creating an initializer
11. If a break statement is executed from within a set of nested loops...
a mechanism to enable specific callbacks
only the innermost loop in which the break is executed is terminated
new instances of the class or retrieve some global property of the class.
Anytime you call a method with new - alloc or copy. You own and must release that object.
12. If the view has no subviews - create it programmatically; if it has subviews
a mechanism to enable specific callbacks
create a XIB file
wait until the loop finishes processing the event - at the end release it
NSBundle
13. NSString objects are usually sent _ rather than _...
(id)initWithFrame:(CGRect)aRect;
safety - subclassability and makes code look more consistent with C structs
copy - retain
Functions
14. Center and frame are used to _ your view
safety - subclassability and makes code look more consistent with C structs
declaration and initialization of a variable
designated initializer
position
15. Asking a class or object to execute a method
a mechanism to enable specific callbacks
they need to be defined in the implementation file
message
reuse your cells
16. Delegation is an object oriented approach to
callbacks
class's
Encapsulation of functionality
subview(s)
17. The root view controller typically creates the next view controller - and the next _ creates the one after that
position
view controller
NSLog routine
nil
18. In the last line of an init method...
initializers
receiver - selector - arguments
alloc - singleton - informational utility method?
you always return the newly initialized object(return self)
19. A command directed to an object is called an...
receiver - selector - arguments
message
cannot be added to an array
ordered collection of objects - immutable
20. The only reason to temporarily own an object - is...
receiving and handling events that are associated with it
to give it someone else - or another object
C Functionn
causes the program to immediately exit from the loop it is executing - whether its for - while or do
21. The integer prefix is...
do so in viewDidLoad
%d
alloc - singleton - informational utility method?
size and position
22. class methods...
arguments[message]
group of global functions already assigned to this class
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
CGRect bounds - GCPoint center - CGRect frame
23. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
methods for generating an instance
copy - retain
object
delegates and dataSources
24. When making a tableView always...
reuse your cells
Model Objects[Factory Worker]
rectangular
message
25. In Objective C arrays can hold only...
references to objects
setPossessionName
viewWillDissapear: and viewWillAppear:
header files declare
26. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
they need to be defined in the implementation file
@synthesize
CGRect bounds
CGRect
27. Reference Counting...
you must import the header file of that class
You take ownership for an object you want to keep a pointer to
define it in the implemenation file
dealloc - is called on the object & the object's memory is returned to the heap
28. A method in a _ is required unless its preceded by an @optional.
Continue
first responder
group of global functions already assigned to this class
protocol
29. When an object is removed from an NSMutableArray - that object is sent the message release;...
position
CGFloat
UIView
the array relinquishes ownership of that object and no longer has a pointer to it
30. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
selector[message]
Anytime you call a method with new - alloc or copy. You own and must release that object.
collection of collections - NSArray of an NSArray
31. Instance Variables by default are called @protected meaning...
only the class and subclasses can access
protocol
size and position
callbacks
32. [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.
data
the array becomes an owner of that object and has a pointer to it.
delegates and dataSources
creates an instance of NSString that holds the character string
33. Only exists within the statement block there defined - outside of the block is fine
You take ownership for an object you want to keep a pointer to
variable scope - if defined within a block
instance variable of an object is valid
create a XIB file
34. UIImageView is used to...
class methods - initializers
draw images
creates an instance of NSString that holds the character string
retain
35. In any application with UINavigationController - the navigation controller...
reuse your cells
position
Abstraction
has one root view controller
36. 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
37. A view is an...
instance of UIView or one of its subclasses
cannot be added to an array
method
wait until the loop finishes processing the event - at the end release it
38. Categories are an Objective C way to add _ to an existing class without subclassing
data source - delegate and view controller
methods
object
a single-array can contain objects of different types
39. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
%d
class methods - initializers
only the class and subclasses can access
draw images
40. At the top of any implementation file...
super - self
you must import the header file of that class
will be ignored
delegates and dataSources
41. Number one use of protocols in iOS...
has one root view controller
delegates and dataSources
type - name and value
You take ownership for an object you want to keep a pointer to
42. Core foundation classes are prefixed with _ and suffixed with _
Model Objects[Factory Worker]
Controller Objects[Managers]
Data Encapsulation
CF - Ref
43. When do you take ownership?...
Object wrapper around primitive types like int - float - double - BOOl
Anytime you call a method with new - alloc or copy. You own and must release that object.
create a XIB file
array[class - NSMutableArray]
44. If you have extra work you want to do on the view...
receiver[message]
UIViewController
do so in viewDidLoad
receiver - selector - arguments
45. A collection object - an ordered list of objects that can be accesed by an index
Instantiation from scratch
ready-made instances - instantiation from scratch - and nib based instantiation
array[class - NSMutableArray]
Core Graphics Framework
46. 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 _.
arguments[message]
pointers
instance of UIView or one of its subclasses
subview(s)
47. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
instance of UIView or one of its subclasses
methods for generating an instance
Ready-Made Instance
callbacks
48. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
Encapsulation of functionality
pointer to an object
UIViewController
49. Object Oriented based analogue to a function is called a...
values
method
only the class and subclasses can access
unordered collection of objects - objects must be unique
50. NSDate - class...
data source - delegate and view controller
NSBundle
Used to find the time right now or to store past or future time/dates
you must import the header file of that 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