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. ____ provide a concise & elegant method for defining a discrete set of values
delegates
method
distributed objects
Enumerations
2. Another name for a class that's defined solely so that other classes can inherit from it.
-
conform
asynchronous message
abstract superclass
3. A method that can operate on class objects rather than instances of the class.
mutex
dangling pointer
polymorphism
class method
4. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
nonatomic
Cocoa
id
interface
5. To destroy an object set the variable that points to it to _____
selector
deprecated
pointer
nil
6. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
remote object
readwrite
class object
dispatch table
7. A variable that points to the memory address of another value
event
copy
encapsulation
pointer
8. Three main categories of more complicated data structures:_______ - arrays and structs
nil
pointers
floating-point
Encapsulation
9. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
zero
ampersand (&)
runtime
10. _____ allow indirect access and modification of a variable's value.
@implementation
Pointers
instance
9
11. C-style strings always end with a ____ character
instance
null
Enumerations
nonatomic
12. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
zero
selector
structures
Smalltalk
13. A ____ _____ is where you forget to free up memory
Unsigned
memory leak
readonly
@implementation
14. 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.
double
reference counting
weak
instance method
15. The first index in an array is valued at ____
strong
zero
memory leak
encapsulation
16. Xcode sequence to examine an app for memory leaks or retain cycles
synchronous message
[receiver message];
pointers
Product>Profile>Leaks>Profile
17. 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
pointer
message
remote object
18. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.
@implementation
structures
dynamic allocation
compile time
19. An object of unknown class. Interface is published through protocol declaration.
long long
conform
anonymous object
precedence
20. Property attribute that synthesizes accessors that are not thread safe
strong
Cocoa
nonatomic
copy
21. The _____ function can be used to print a message to the console
Edit>Refactor>Convert to Objective-C ARC
printf( )
static typing
doubles
22. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
class object
asterisk (*)
AppKit
double
23. 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
floating-point
remote object
designated initializer
distributed objects
24. Xcode sequence to convert non-ARC apps to ARC
class object
developer intent
binary
Edit>Refactor>Convert to Objective-C ARC
25. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
strong
dangling pointer
deprecated
square brackets
26. 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).
dangling pointer
implementation
Unitary
Binary
27. _____ allow you to add new methods to existing classes
Categories
readonly
assign
NSString
28. 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.
NSObject
abstract class
unitary
precedence
29. Objective-C's protocols are really about communicating _____ _______
procedural programming language
dynamic typing
%
developer intent
30. Any method that can be used by an instance of a class rather than by the class object.
instance method
Enumerations
@implementation
remote object
31. The root class in Objective-C
NSObject
Unitary
%@
Signed
32. _____ 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
Smalltalk
mutex
distributed objects
33. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
pointer
-
Binary
superclass
34. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
reference counting
compile time
nil
doubles
35. 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.
factory
object
dispatch table
null
36. A logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.
abstract superclass
namespace
dereference (dereferencing)
designated initializer
37. 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
Product>Profile>Leaks>Profile
inheritance
framework
conform
38. All objects are created on the _____
procedures
heap
dynamic allocation
category
39. Objective-C is a _____ of the C language
Interface Builder
superset
double
class
40. ARC is susceptible to retain _____
remote message
structures
cycles
readwrite
41. 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.
receiver
designated initializer
selector
doubles
42. Property attribute where the setter stores the assigned value but does not perform any memory management.
procedural programming language
readonly
assign
attributes
43. 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.
link time
Enumerations
pointer
id
44. Discovering the class of an object at runtime rather than at compile time.
asterisk (*)
id
long long
dynamic typing
45. A ____ ____ is a situation where you free memory and then accidentally continue to use it
id
inheritance hierarchy
dangling pointer
square brackets
46. A struct may contain multiple ____ consisting of different data types
assign
Smalltalk
namespace
fields
47. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
dynamic typing
protocol
delegate
message
48. Instance variables are optional in iOS if ________ are used
ampersand (&)
heap
properties
chars
49. 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
dynamic typing
receiver
unitary
50. Objective-C binds methods and arguments at _____ instead of compile time
runtime
nil
C operators
double