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. Three main categories of more complicated data structures:_______ - arrays and structs
doubles
pointers
deprecated
Encapsulation
2. The root class in Objective-C
NSObject
C operators
fields
runtime
3. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
inheritance
receiver
init
4. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
fields
nil
Interface Builder
event
5. 3 Common Float data types: float - _____ - CGFloat
double
dangling pointer
abstract superclass
binary
6. Property attribute that synthesizes accessors that are not thread safe
nonatomic
9
method
Binary
7. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
remote object
message
asterisk (*)
8. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.
unitary
receiver
printf( )
id
9. An architecture that facilitates communication between objects in different address spaces.
assign
distributed objects
copy
object
10. A compiler feature that provides automated memory management
asynchronous message
ARC
Categories
abstract class
11. This symbol denotes a method as being an instance method
designated initializer
-
Product>Profile>Leaks>Profile
ARC
12. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.
precedence
floating-point
instance variable
class
13. 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
class
dynamic binding
Enumerations
designated initializer
14. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
long long
cannot
+
link time
15. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
Smalltalk
conform
dynamic allocation
16. All objects are created on the _____
heap
Protocols
Unitary
deprecated
17. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
nil
asynchronous message
formal protocol
Cocoa
18. _____ operators take 2 operands
dereference (dereferencing)
copy
Binary
readwrite
19. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
link time
namespace
ampersand (&)
polymorphism
20. 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).
message expression
nil
struct
selector
21. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
weak
Protocols
runtime
remote object
22. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
remote object
[receiver message];
deprecated
%@
23. Objective-C objects should use strong or weak ______
Product>Profile>Leaks>Profile
cannot
attributes
init
24. Xcode sequence to examine an app for memory leaks or retain cycles
Binary
Product>Profile>Leaks>Profile
@interface
instance method
25. Same as class object. (first way to say it.)
factory
class method
class
compile time
26. Objective-C's protocols are really about communicating _____ _______
Protocols
procedural programming language
developer intent
Categories
27. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
@interface
C operators
inheritance
factory
28. Data types are divided into two main categories: integer and ______
Enumerations
Edit>Refactor>Convert to Objective-C ARC
unitary
floating-point
29. Property attribute where the setter stores the assigned value but does not perform any memory management.
instance method
assign
readonly
init
30. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
synchronous message
delegates
remote message
31. Any class that's one step below another class in the inheritance hierarchy.
subclass
class
implementation
factory object
32. In object-oriented programming the object that is sent a message.
cannot
dispatch table
receiver
Interface Builder
33. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
distributed objects
Binary
%@
34. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.
asynchronous message
Encapsulation
deprecated
assign
35. 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
structures
binary
instance
dynamic allocation
36. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
copy
dispatch table
instance method
Binary
37. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
interface
selector
class
doubles
38. Finding the method implementation to invoke in response to the message
remote object
dynamic binding
static typing
dispatch table
39. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
cycles
procedures
C operators
superclass
40. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
class
instance
doubles
dereference (dereferencing)
41. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
designated initializer
ARC
deprecated
mutex
42. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
ampersand (&)
Smalltalk
anonymous object
remote object
43. To destroy an object set the variable that points to it to _____
inheritance hierarchy
nil
designated initializer
class
44. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met
binary
conform
instance
precedence
45. In object-oriented programming a procedure that can be executed by an object.
anonymous object
event
method
instance
46. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
Categories
asterisk (*)
pointers
interface
47. ______ operators take a single operand
runtime
Unitary
remote message
delegates
48. A message sent from one application to an object in another application.
superclass
remote message
double
@implementation
49. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).
selector
instance
asterisk (*)
implementation
50. Property attribute that synthesizes both a getter and setter for the property
readwrite
instance
assign
printf( )