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. Initializer method traditionally begin with the _____ prefix
precedence
runtime
init
assignment
2. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
category
9
framework
-
3. An object in another application - one that's a potential receiver for a remote message.
remote object
protocol
NSString
interface
4. 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
fields
remote message
conform
dereference (dereferencing)
5. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
delegates
protocol
doubles
interface
6. C-style strings are stored in an array of _____
chars
AppKit
encapsulation
pointers
7. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
namespace
designated
deprecated
floating-point
8. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
strong
Cocoa
delegate
Smalltalk
9. In the Objective-C language the declaration of a group of methods not associated with any particular class.
remote message
protocol
square brackets
developer intent
10. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
class method
anonymous object
designated initializer
11. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
formal protocol
readonly
interface
12. ____ provide a concise & elegant method for defining a discrete set of values
Smalltalk
chars
interface
Enumerations
13. Objective-C's protocols are really about communicating _____ _______
developer intent
instance method
binary
dereference (dereferencing)
14. A set of method definitions that is segregated from the rest of the class definition.
nonatomic
category
precedence
floating-point
15. An object of unknown class. Interface is published through protocol declaration.
doubles
class method
interface
anonymous object
16. In a home building analogy a ____ is the blueprint and the object is the house
[receiver message];
class
@implementation
precedence
17. a++; is an example of using a _____ operator
unitary
formal protocol
conform
binary
18. _____ allow indirect access and modification of a variable's value.
Pointers
struct
Cocoa
category
19. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
memory leak
assignment
nil
id
20. Same as class object. (second way to say it.)
instance variable
instance method
assign
factory object
21. 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.
instance variable
%
dynamic allocation
zero
22. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
procedures
attributes
superclass
link time
23. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
abstract superclass
printf( )
Binary
24. Placing a ____ before a normal variable name gives it's address
memory leak
object
delegate
ampersand (&)
25. An object that acts on behalf of another object.
remote message
delegate
runtime
[receiver message];
26. Objective-C is a _____ of the C language
superset
informal protocol
object
protocol
27. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
class object
procedures
memory leak
inheritance hierarchy
28. A struct may contain multiple ____ consisting of different data types
fields
copy
+
nil
29. The most flexible C data type: ______
Unsigned
struct
attributes
deprecated
30. Property attribute that synthesizes both a getter and setter for the property
Product>Profile>Leaks>Profile
dangling pointer
readwrite
Smalltalk
31. 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).
implementation
weak
copy
delegates
32. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
null
asterisk (*)
category
superclass
33. A message sent from one application to an object in another application.
remote message
floating-point
copy
[receiver message];
34. 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.
-
namespace
instance
class
35. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.
event
class object
Enumerations
@implementation
36. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings
structures
init
inheritance
NSString
37. To destroy an object set the variable that points to it to _____
event
nil
compile time
Signed
38. Symbol used to denote a placeholder in a format string
outlet
class
NSString
%
39. _____ 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
adopt
remote message
abstract superclass
40. Property attribute that causes the setter to store a copy of the assigned value
copy
Binary
mutex
[receiver message];
41. 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
Cocoa
asynchronous message
subclass
42. C-style strings always end with a ____ character
null
runtime
deprecated
synchronous message
43. In object-oriented programming a procedure that can be executed by an object.
NSObject
method
Signed
%@
44. Property attribute that synthesizes only a getter for the property
AppKit
event
Pointers
readonly
45. A ____ _____ is where you forget to free up memory
message expression
dynamic typing
Enumerations
memory leak
46. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
compile time
selector
copy
47. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
informal protocol
Enumerations
procedural programming language
Smalltalk
48. A ____ ____ is a situation where you free memory and then accidentally continue to use it
compile time
init
message expression
dangling pointer
49. 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.
encapsulation
remote message
readwrite
reference counting
50. 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.
dynamic allocation
weak
runtime
abstract class