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 nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
Protocols
mutex
asterisk (*)
procedures
2. Xcode sequence to examine an app for memory leaks or retain cycles
instance variable
delegate
NSString
Product>Profile>Leaks>Profile
3. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
superclass
compile time
floating-point
init
4. A ____ _____ is where you forget to free up memory
developer intent
%@
link time
memory leak
5. _____ 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'.
Encapsulation
memory leak
struct
dispatch table
6. Objective-C binds methods and arguments at _____ instead of compile time
double
struct
encapsulation
runtime
7. A set of method definitions that is segregated from the rest of the class definition.
struct
method
category
double
8. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
instance method
pointer
structures
9. In object-oriented programming a procedure that can be executed by an object.
C operators
Smalltalk
heap
method
10. Property attribute that synthesizes accessors that are not thread safe
class
nonatomic
delegate
abstract class
11. 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.
dereference (dereferencing)
outlet
deprecated
conform
12. _____ allow you to add new methods to existing classes
subclass
Edit>Refactor>Convert to Objective-C ARC
Categories
assignment
13. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
@implementation
dynamic allocation
Cocoa
event
14. Objective-C methods are called using ____ _____
readwrite
square brackets
encapsulation
%@
15. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.
reference counting
fields
@implementation
asynchronous message
16. 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
square brackets
@implementation
nil
synchronous message
17. Objective-C objects should use strong or weak ______
attributes
heap
%@
structures
18. This symbol denotes a method as being an instance method
cannot
@implementation
protocol
-
19. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
runtime
Smalltalk
framework
@implementation
20. Initializer method traditionally begin with the _____ prefix
class
informal protocol
Product>Profile>Leaks>Profile
init
21. In a format string the place holder for an object is ______
class
designated initializer
-
%@
22. All objects are created on the _____
factory object
C operators
implementation
heap
23. 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).
class
C operators
Categories
message expression
24. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
abstract superclass
readonly
Signed
polymorphism
25. A protocol declared as a category usually as a category of the NSObject class.
dynamic allocation
informal protocol
delegate
framework
26. A variable that points to the memory address of another value
dynamic allocation
fields
pointer
struct
27. In the Objective-C language an object that belongs to (is a member of) a particular class; created at runtime according to the specification in the class definition.
outlet
nil
reference counting
instance
28. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
ampersand (&)
attributes
copy
29. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
dynamic typing
Cocoa
long long
adopt
30. In Objective-C floats are more commonly used than ______
asynchronous message
selector
interface
doubles
31. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dynamic typing
dispatch table
-
class object
32. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
Cocoa
Unsigned
dereference (dereferencing)
class
33. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
Protocols
@implementation
unitary
34. Symbol used to denote a placeholder in a format string
long long
9
%
instance
35. To destroy an object set the variable that points to it to _____
NSObject
nil
runtime
pointers
36. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
class
delegates
receiver
floating-point
37. 3 Common Float data types: float - _____ - CGFloat
heap
double
superclass
instance
38. 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).
zero
@interface
procedures
implementation
39. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
inheritance hierarchy
printf( )
[receiver message];
event
40. This symbol denotes a method as being a class method
adopt
assignment
dangling pointer
+
41. A method that can operate on class objects rather than instances of the class.
event
implementation
compile time
class method
42. Data types are divided into two main categories: integer and ______
procedures
Smalltalk
Cocoa
floating-point
43. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
dereference (dereferencing)
message
remote message
double
44. _____ operators take 2 operands
event
Binary
Enumerations
anonymous object
45. Same as class object. (second way to say it.)
nonatomic
factory object
link time
instance method
46. C-style strings always end with a ____ character
null
pointers
asterisk (*)
Product>Profile>Leaks>Profile
47. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.
distributed objects
subclass
ARC
selector
48. The time after a program is launched and while it's running. Decisions made at during this time can be influenced by choices the user makes.
dereference (dereferencing)
procedures
weak
runtime
49. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.
@interface
outlet
object
square brackets
50. A message sent from one application to an object in another application.
value
doubles
remote message
link time