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. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
ARC
protocol
Cocoa
framework
2. ARC is susceptible to retain _____
compile time
event
selector
cycles
3. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
outlet
long long
instance
remote object
4. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
anonymous object
dispatch table
instance
readwrite
5. A programming technique that hides the implementation of an operation from its users behind an abstract interface; allows the implementation to be updated or changed without impacting the users of the interface.
encapsulation
readwrite
selector
@implementation
6. Objective-C's protocols are really about communicating _____ _______
procedures
encapsulation
developer intent
dynamic typing
7. C-style strings always end with a ____ character
asynchronous message
assign
Protocols
null
8. Placing a ____ before a normal variable name gives it's address
instance method
square brackets
@interface
ampersand (&)
9. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
Edit>Refactor>Convert to Objective-C ARC
compile time
remote object
encapsulation
10. a++; is an example of using a _____ operator
unitary
AppKit
factory object
Product>Profile>Leaks>Profile
11. Initializer method traditionally begin with the _____ prefix
abstract class
dangling pointer
procedures
init
12. Another name for a class that's defined solely so that other classes can inherit from it.
value
chars
designated
abstract superclass
13. A method that can operate on class objects rather than instances of the class.
runtime
properties
copy
class method
14. Objective-C binds methods and arguments at _____ instead of compile time
conform
encapsulation
fields
runtime
15. Any method that can be used by an instance of a class rather than by the class object.
link time
Protocols
superclass
instance method
16. Property attribute that synthesizes only a getter for the property
Binary
readonly
nonatomic
anonymous object
17. In object-oriented programming a procedure that can be executed by an object.
weak
binary
method
reference counting
18. To destroy an object set the variable that points to it to _____
nil
category
assignment
class
19. An object id with a value of 0.
doubles
zero
protocol
nil
20. A ____ ____ is a situation where you free memory and then accidentally continue to use it
properties
dangling pointer
struct
dereference (dereferencing)
21. 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).
link time
@interface
implementation
AppKit
22. In a format string the place holder for an object is ______
developer intent
Categories
%@
Enumerations
23. The most flexible C data type: ______
Protocols
remote message
developer intent
struct
24. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
interface
C operators
designated initializer
remote object
25. Property attribute that synthesizes accessors that are not thread safe
compile time
@interface
pointer
nonatomic
26. _____ 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
nonatomic
Cocoa
27. 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
designated initializer
delegate
chars
nonatomic
28. 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.
framework
link time
class
outlet
29. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
Unsigned
procedures
message
chars
30. A message sent from one application to an object in another application.
outlet
category
receiver
remote message
31. Objective-C methods are called using ____ _____
ARC
square brackets
C operators
deprecated
32. 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.
Unsigned
id
procedures
mutex
33. 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.
Interface Builder
dynamic allocation
selector
instance
34. A protocol declared as a category usually as a category of the NSObject class.
structures
informal protocol
reference counting
formal protocol
35. A struct may contain multiple ____ consisting of different data types
floating-point
zero
readonly
fields
36. Instance variables are optional in iOS if ________ are used
properties
superset
procedural programming language
Protocols
37. Finding the method implementation to invoke in response to the message
dynamic binding
adopt
@interface
fields
38. ____ provide a concise & elegant method for defining a discrete set of values
class object
designated
-
Enumerations
39. The first index in an array is valued at ____
zero
Protocols
Binary
Interface Builder
40. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
factory
polymorphism
binary
designated
41. 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.
method
reference counting
instance
printf( )
42. 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.
instance
factory object
superset
procedural programming language
43. Objective-C is a _____ of the C language
Edit>Refactor>Convert to Objective-C ARC
superset
doubles
fields
44. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
zero
assignment
Product>Profile>Leaks>Profile
Interface Builder
45. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
developer intent
precedence
cycles
adopt
46. An object in another application - one that's a potential receiver for a remote message.
remote object
message
class method
event
47. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
-
attributes
Interface Builder
weak
48. The root class in Objective-C
message expression
printf( )
NSObject
precedence
49. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.
abstract class
instance
doubles
superclass
50. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
cannot
Protocols
compile time
ampersand (&)