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 callback is a function that is supplied in advance of an event - and...
is called every time the event occurs
declaration and initialization of a variable
initializer
to get and set variables
2. Primitives and C Structures...
subview(s)
NSBundle
cannot be added to an array
@synthesize
3. A UITableView usually needs three different pieces...
Ready-Made Instance
new instances of the class or retrieve some global property of the class.
CGRect bounds - GCPoint center - CGRect frame
data source - delegate and view controller
4. When an object is added to a NSMutableArray - that object is sent the message to retain;...
initializers
the array becomes an owner of that object and has a pointer to it.
method
draw images
5. 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
ready-made instances - instantiation from scratch - and nib based instantiation
reuse your cells
initializer
6. A function in the objective c library that simply displays or logs it's argument
will be ignored
the message release to all its entries
NSBundle
NSLog routine
7. Each class picks one _ as it's designated initializer....
alloc - singleton - informational utility method?
wait until the loop finishes processing the event - at the end release it
collection of collections - NSArray of an NSArray
initializer
8. If you have extra work you want to do on the view...
do so in viewDidLoad
pointer - class
instance
selector[message]
9. The integer prefix is...
%d
new instances of the class or retrieve some global property of the class.
method
callbacks
10. Three ways instances are created...
ready-made instances - instantiation from scratch - and nib based instantiation
Hash table - Look up objects using a key to get a value.
implementation
size and position
11. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
cannot be added to an array
instance
NSCoder
@interface ClassName:SuperClassName
12. A delegate is a pointer to an object with a set of methods the delegate-holder knows how to call. In other words - it's _ from a later created object
is an instance of that class
the array becomes an owner of that object and has a pointer to it.
a mechanism to enable specific callbacks
methods
13. In any application with UINavigationController - the navigation controller...
subview(s)
object
has one root view controller
creates an instance of NSString that holds the character string
14. 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
@interface ClassName:SuperClassName
wait until the loop finishes processing the event - at the end release it
Maintenance of state
first responder
15. @property - is using methods...
the instance variables
to get and set variables
retain
protocol
16. class methods...
Encapsulation of functionality
group of global functions already assigned to this class
references to objects
draw images
17. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
ordered collection of objects - immutable
viewWillDissapear: and viewWillAppear:
CGRect
receiver - selector - arguments
18. Any other initializer a class has calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
19. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
CGFloat
self
selector[message]
creates an instance of NSString that holds the character string
20. The class is responsible for what instance variables the instance has - but not the _ of those variables.
values
will be ignored
Used to find the time right now or to store past or future time/dates
only the class and subclasses can access
21. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
initializer
receiver
UIView
instance of UIView or one of its subclasses
22. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
do so in viewDidLoad
C Functionn
Data Encapsulation
23. A command directed to an object is called an...
size and position
data source - delegate and view controller
creates an instance of NSString that holds the character string
message
24. Values to be supplied as the parameters to the method
Abstraction
arguments[message]
superclass's
instance of UIView or one of its subclasses
25. Any individual object belonging to any class...
method
Instantiation from scratch
Functions
is an instance of that class
26. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
ordered collection of objects - immutable
CGRect bounds - GCPoint center - CGRect frame
new instances of the class or retrieve some global property of the class.
NSCoder
27. Defining variables - three parts...
NSLog routine
self
subview(s)
type - name and value
28. Classes describe two things...
C Functionn
attributes - behavior
a single-array can contain objects of different types
Anytime you call a method with new - alloc or copy. You own and must release that object.
29. A _ handles touch events.
view
Anytime you call a method with new - alloc or copy. You own and must release that object.
group of global functions already assigned to this class
instance
30. A view is a subclass of _
group of global functions already assigned to this class
only the class and subclasses can access
instance variables
UIView
31. super - is used...
Functions
CGRect bounds
for inheritance - adopting the superclasses implementation
method
32. 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
33. NSValue - class...
receiver - selector - arguments
Encapsulation of functionality
Model Objects[Factory Worker]
Generic object wrapper for other non-object data types
34. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
viewWillDissapear: and viewWillAppear:
initializers
will be ignored
35. Instance Variables by default are called @protected meaning...
data
receiving and handling events that are associated with it
new instances of the class or retrieve some global property of the class.
only the class and subclasses can access
36. When do you take ownership?...
creating an initializer
Anytime you call a method with new - alloc or copy. You own and must release that object.
Ready-Made Instance
retain
37. A message is always contained in square brackets - and has three parts
receiver - selector - arguments
size and position
the array becomes an owner of that object and has a pointer to it.
object
38. NSDate - class...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
class methods - initializers
they need to be defined in the implementation file
Used to find the time right now or to store past or future time/dates
39. Each _ has a 'designated' initializer method....
class
in the dealloc - or when a Controller's view is 'unloaded'
receiving and handling events that are associated with it
instance variable of an object is valid
40. NSDictionary...
Hash table - Look up objects using a key to get a value.
create a XIB file
message
Abstraction
41. Whenever a UINavigationController is about to swap views - it sends out two messages
class
dealloc - is called on the object & the object's memory is returned to the heap
viewWillDissapear: and viewWillAppear:
size and position
42. Reference Counting...
You take ownership for an object you want to keep a pointer to
@interface ClassName:SuperClassName
arguments[message]
data source - view controller and delegate
43. 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
44. Asking a class or object to execute a method
message
safety - subclassability and makes code look more consistent with C structs
receiving and handling events that are associated with it
Object wrapper around primitive types like int - float - double - BOOl
45. NSString objects are usually sent _ rather than _...
create a XIB file
Anytime you call a method with new - alloc or copy. You own and must release that object.
copy - retain
to get and set variables
46. 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
47. Dynamic binding means that when we call a certain object's method - and there are several _ of that method - the right one is figured out at runtime.
implementation
ready-made instances - instantiation from scratch - and nib based instantiation
rectangular
for inheritance - adopting the superclasses implementation
48. Also - because arrays only hold a pointer to an object...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Abstraction
Object wrapper around primitive types like int - float - double - BOOl
a single-array can contain objects of different types
49. Number one use of protocols in iOS...
superclass's
designated initializer
delegates and dataSources
view controller
50. UIImageView is used to...
draw images
CGFloat
is called every time the event occurs
ordered collection of objects - immutable
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