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 responder is responsible for...
receiving and handling events that are associated with it
first responder
instance
create a XIB file
2. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
Encapsulation of functionality
CGRect
dealloc - is called on the object & the object's memory is returned to the heap
Data Encapsulation
3. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Core Graphics Framework
CF - Ref
Ready-Made Instance
first responder
4. 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
CF - Ref
is an instance of that class
parentViewController
delegates and dataSources
5. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
setPossessionName
Object wrapper around primitive types like int - float - double - BOOl
(id)initWithFrame:(CGRect)aRect;
class methods - initializers
6. A message is always contained in square brackets - and has three parts
Abstraction
receiver - selector - arguments
ready-made instances - instantiation from scratch - and nib based instantiation
references to objects
7. 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 _.
Ready-Made Instance
Model Objects[Factory Worker]
rectangular
nil
8. We can use dot notation to reference...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
9. if you implemented both the setter and getter - the @synthesize method...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
initializers
will be ignored
methods
10. How do I implement my drawRect?
message
Core Graphics Framework
pointers
CGRect bounds
11. Origin of a view's coordinate system is _ left
delegates and dataSources
upper
Generic object wrapper for other non-object data types
Continue
12. Designated initializer makes sure that every...
collection of collections - NSArray of an NSArray
its dataSource
instance variable of an object is valid
message
13. If a break statement is executed from within a set of nested loops...
receiving and handling events that are associated with it
only the innermost loop in which the break is executed is terminated
receiver - selector - arguments
view
14. Primitives and C Structures...
cannot be added to an array
NSBundle
collection of collections - NSArray of an NSArray
creating an initializer
15. 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
16. 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 _.
pointer - class
Generic object wrapper for other non-object data types
Ready-Made Instance
You take ownership for an object you want to keep a pointer to
17. NSArray - class...
variable scope - if defined within a block
ordered collection of objects - immutable
delegates and dataSources
size and position
18. 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...
UIView
setPossessionName
dealloc - is called on the object & the object's memory is returned to the heap
wait until the loop finishes processing the event - at the end release it
19. At the top of any implementation file...
methods
you must import the header file of that class
to get and set variables
C Functionn
20. 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
21. 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
22. Proceed through the loop - jump back to the top and check again
only the innermost loop in which the break is executed is terminated
Data Encapsulation
methods
Continue
23. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
will be ignored
Continue
class
header files declare
24. A UITableViewController can fill all three roles of...
message
creating an initializer
super - self
data source - view controller and delegate
25. 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 _.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
you must import the header file of that class
@synthesize
subview(s)
26. 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
the array relinquishes ownership of that object and no longer has a pointer to it
subview(s)
a mechanism to enable specific callbacks
data source - delegate and view controller
27. 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
28. A view represents a _ area
pointer to an object
instance variables
%d
rectangular
29. A callback is a function that is supplied in advance of an event - and...
Maintenance of state
is called every time the event occurs
@interface ClassName:SuperClassName
in the dealloc - or when a Controller's view is 'unloaded'
30. When making a tableView always...
class methods - initializers
reuse your cells
the message release to all its entries
pointers
31. @property declares - and _ implements the setter and getter...
NSBundle
message
UIView
@synthesize
32. Categories are an Objective C way to add _ to an existing class without subclassing
delegates and dataSources
methods
initializers
CGRect bounds - GCPoint center - CGRect frame
33. 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.
CF - Ref
you must import the header file of that class
Data Encapsulation
upper
34. All objects are accessed using...
pointers
arguments[message]
is an instance of that class
creating an initializer
35. Hold data and know nothing about the user interface
its dataSource
retain
Model Objects[Factory Worker]
group of global functions already assigned to this class
36. Reducing details to focus on the core concepts
Abstraction
class's
pointer - class
view controller's initialization method
37. Center and frame are used to _ your view
instance
first responder
position
@interface ClassName:SuperClassName
38. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
causes the program to immediately exit from the loop it is executing - whether its for - while or do
object
method
Anytime you call a method with new - alloc or copy. You own and must release that object.
39. NSSet...
unordered collection of objects - objects must be unique
to give it someone else - or another object
to get and set variables
data source - delegate and view controller
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
you must import the header file of that class
message
Encapsulation of functionality
Hash table - Look up objects using a key to get a value.
41. 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
Functions
upper
data
object
42. An instance is a device for maintaining state. It's a box for _ of data.
collection of collections - NSArray of an NSArray
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.
storage
43. When overriding a method - all you need to is _ - you do not need to declare it in the header file because it has already been declared by the superclass....
receiver[message]
class's
the message release to all its entries
define it in the implemenation file
44. Views have three properties related to their location and size: @property _ _;
Core Graphics Framework
Object wrapper around primitive types like int - float - double - BOOl
CGRect bounds - GCPoint center - CGRect frame
collection of collections - NSArray of an NSArray
45. When do you take ownership?...
is an instance of that class
instance
reuse your cells
Anytime you call a method with new - alloc or copy. You own and must release that object.
46. 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
47. initWithFrame: the designated initializer for UIView gives the view
size and position
setPossessionName
%d
implementation
48. After accessors have been defined in the header file...
upper
selector[message]
they need to be defined in the implementation file
declaration and initialization of a variable
49. Classes describe two things...
Instantiation from scratch
CGRect bounds
attributes - behavior
Generic object wrapper for other non-object data types
50. Just a floating point number - but we always use it for graphics.
CGFloat
size and position
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
selector[message]
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