SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
Objective C Programming Basics
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. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro
formal protocol
Cocoa
designated initializer
static typing
2. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
dangling pointer
Unitary
Binary
3. Property attribute that causes the setter to store a copy of the assigned value
runtime
dynamic allocation
copy
delegate
4. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).
Encapsulation
message expression
distributed objects
cannot
5. Xcode sequence to convert non-ARC apps to ARC
strong
Edit>Refactor>Convert to Objective-C ARC
category
[receiver message];
6. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects
static typing
dispatch table
structures
Unsigned
7. _____ data types can be both positive and negative
nil
Signed
structures
%
8. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
developer intent
Unitary
inheritance
9
9. Property attribute where the setter stores the assigned value but does not perform any memory management.
procedural programming language
fields
assign
properties
10. A ____ _____ is where you forget to free up memory
factory object
procedural programming language
dynamic binding
memory leak
11. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
fields
floating-point
Categories
deprecated
12. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
delegate
remote object
instance
framework
13. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.
memory leak
Unsigned
AppKit
NSString
14. Placing a ____ before a normal variable name gives it's address
-
method
implementation
ampersand (&)
15. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
Interface Builder
%@
weak
superclass
16. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
nonatomic
reference counting
message expression
17. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
Product>Profile>Leaks>Profile
selector
comma-separated
18. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
unitary
@interface
dereference (dereferencing)
designated
19. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
doubles
floating-point
@implementation
20. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
message
-
Product>Profile>Leaks>Profile
comma-separated
21. In object-oriented programming the object that is sent a message.
compile time
receiver
formal protocol
zero
22. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
inheritance hierarchy
factory
event
attributes
23. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.
conform
instance
link time
nil
24. In a format string the place holder for an object is ______
Enumerations
%@
inheritance
value
25. A ____ ____ is a situation where you free memory and then accidentally continue to use it
%
assign
dangling pointer
runtime
26. Property attribute that synthesizes accessors that are not thread safe
nonatomic
chars
informal protocol
superset
27. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica
synchronous message
procedural programming language
distributed objects
ARC
28. To destroy an object set the variable that points to it to _____
properties
nil
polymorphism
structures
29. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings
formal protocol
NSString
abstract superclass
abstract class
30. There are ____ fundamental building blocks in Objective-C
Signed
selector
9
conform
31. ______ data types are always zero or greate
Unsigned
factory
doubles
memory leak
32. Any method that can be used by an instance of a class rather than by the class object.
distributed objects
Interface Builder
method
instance method
33. A struct may contain multiple ____ consisting of different data types
fields
copy
instance method
abstract class
34. An architecture that facilitates communication between objects in different address spaces.
conform
distributed objects
readonly
Categories
35. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
chars
static typing
delegates
binary
36. A set of method definitions that is segregated from the rest of the class definition.
Encapsulation
category
outlet
protocol
37. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
%@
category
compile time
38. When creating a class header file you begin with the _____ keyword and close with the @end keyword
instance
@interface
instance
structures
39. Same as class object. (first way to say it.)
init
event
link time
factory
40. A compiler feature that provides automated memory management
ARC
adopt
chars
formal protocol
41. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
polymorphism
designated initializer
remote object
42. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
developer intent
method
compile time
anonymous object
43. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
long long
event
struct
interface
44. A message sent from one application to an object in another application.
remote message
comma-separated
readonly
formal protocol
45. 3 Common Float data types: float - _____ - CGFloat
outlet
instance
double
fields
46. Instance variables are optional in iOS if ________ are used
properties
Signed
cycles
anonymous object
47. Data types are divided into two main categories: integer and ______
framework
implementation
floating-point
unitary
48. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
designated
value
superclass
selector
49. Finding the method implementation to invoke in response to the message
dynamic binding
dynamic allocation
dangling pointer
factory object
50. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.
outlet
runtime
delegates
method