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. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
instance
Protocols
NSObject
abstract superclass
2. Finding the method implementation to invoke in response to the message
instance method
superclass
dynamic binding
procedural programming language
3. Another name for a class that's defined solely so that other classes can inherit from it.
abstract class
cannot
abstract superclass
event
4. A compiler feature that provides automated memory management
ampersand (&)
delegates
ARC
designated
5. A variable that points to the memory address of another value
weak
pointer
heap
receiver
6. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
instance variable
readonly
attributes
message
7. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
class method
receiver
object
polymorphism
8. In object-oriented programming the object that is sent a message.
C operators
receiver
method
precedence
9. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.
instance
asterisk (*)
asynchronous message
Product>Profile>Leaks>Profile
10. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
category
fields
pointers
11. Same as class object. (second way to say it.)
zero
asynchronous message
Interface Builder
factory object
12. 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).
abstract superclass
remote message
%
implementation
13. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
@implementation
Protocols
receiver
assignment
14. The first index in an array is valued at ____
static typing
zero
class method
%@
15. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.
receiver
strong
inheritance hierarchy
Signed
16. An object in another application - one that's a potential receiver for a remote message.
dereference (dereferencing)
NSObject
Interface Builder
remote object
17. A set of method definitions that is segregated from the rest of the class definition.
-
instance method
category
protocol
18. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
Pointers
instance
NSObject
assignment
19. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
null
dynamic typing
remote message
interface
20. A ____ ____ is a situation where you free memory and then accidentally continue to use it
instance method
pointers
dangling pointer
value
21. 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.
procedural programming language
Cocoa
class method
link time
22. Objective-C's protocols are really about communicating _____ _______
Enumerations
synchronous message
developer intent
AppKit
23. In the Objective-C language the declaration of a group of methods not associated with any particular class.
init
factory
protocol
zero
24. 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.
inheritance
abstract class
factory object
9
25. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
designated initializer
adopt
cannot
26. Any class that's one step below another class in the inheritance hierarchy.
polymorphism
printf( )
subclass
Protocols
27. Objective-C methods are called using ____ _____
square brackets
structures
designated initializer
synchronous message
28. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
dynamic allocation
value
Signed
binary
29. A protocol that's declared with the @protocol directive. Classes can adopt these - objects can respond at runtime when asked if they conform to them and instances can be typed by those that they conform to.
-
static typing
message
formal protocol
30. To destroy an object set the variable that points to it to _____
nil
struct
method
interface
31. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
subclass
designated
AppKit
message expression
32. Property attribute that synthesizes both a getter and setter for the property
readwrite
namespace
asterisk (*)
Pointers
33. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
interface
class
procedures
34. There are ____ fundamental building blocks in Objective-C
Product>Profile>Leaks>Profile
9
unitary
implementation
35. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
superclass
readonly
ampersand (&)
procedural programming language
36. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
nil
weak
superclass
polymorphism
37. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
[receiver message];
distributed objects
runtime
38. Property attribute that causes the setter to store a strong reference to the assigned value
implementation
strong
binary
designated
39. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
dynamic allocation
Cocoa
link time
init
40. In Objective-C floats are more commonly used than ______
doubles
dynamic allocation
precedence
long long
41. Placing a ____ before a normal variable name gives it's address
synchronous message
delegates
ampersand (&)
framework
42. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
Enumerations
remote message
Binary
43. Objective-C objects should use strong or weak ______
attributes
framework
Categories
doubles
44. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
outlet
@implementation
inheritance
struct
45. The most flexible C data type: ______
namespace
struct
+
cannot
46. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
floating-point
runtime
mutex
assign
47. This symbol denotes a method as being a class method
+
floating-point
Categories
assignment
48. 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.
selector
Encapsulation
encapsulation
NSObject
49. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
double
adopt
Smalltalk
zero
50. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
fields
@implementation
null