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. ______ data types are always zero or greate
precedence
Unsigned
instance variable
Enumerations
2. 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).
Product>Profile>Leaks>Profile
implementation
remote object
compile time
3. A variable that points to the memory address of another value
pointers
pointer
nil
interface
4. 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).
asynchronous message
message expression
static typing
fields
5. Property attribute where the setter stores the assigned value but does not perform any memory management.
@implementation
assign
superset
AppKit
6. 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
nil
ARC
synchronous message
-
7. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
dynamic typing
synchronous message
C operators
@implementation
8. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
dangling pointer
factory object
designated
copy
9. A ____ _____ is where you forget to free up memory
memory leak
class object
factory
instance variable
10. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
remote message
deprecated
nonatomic
polymorphism
11. Initializer method traditionally begin with the _____ prefix
init
selector
Pointers
Unsigned
12. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
factory
synchronous message
inheritance hierarchy
13. Objective-C is a _____ of the C language
dispatch table
instance method
superset
remote message
14. 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.
nil
value
Pointers
instance
15. A set of method definitions that is segregated from the rest of the class definition.
category
printf( )
Protocols
event
16. _____ data types can be both positive and negative
copy
NSString
Signed
instance
17. Property attribute that synthesizes accessors that are not thread safe
attributes
dispatch table
factory
nonatomic
18. ______ operators take a single operand
Unitary
event
category
dynamic binding
19. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
[receiver message];
event
weak
ampersand (&)
20. Same as class object. (second way to say it.)
class method
factory object
Protocols
Edit>Refactor>Convert to Objective-C ARC
21. There are ____ fundamental building blocks in Objective-C
9
heap
Interface Builder
long long
22. Finding the method implementation to invoke in response to the message
pointers
dynamic typing
heap
dynamic binding
23. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
dereference (dereferencing)
conform
C operators
cycles
24. Three main categories of more complicated data structures:_______ - arrays and structs
adopt
pointers
Signed
instance method
25. C-style strings are stored in an array of _____
reference counting
inheritance hierarchy
chars
%
26. 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.
procedures
Edit>Refactor>Convert to Objective-C ARC
designated initializer
inheritance hierarchy
27. 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.
@interface
designated
factory object
namespace
28. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
reference counting
precedence
class object
category
29. 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
NSString
dynamic binding
Product>Profile>Leaks>Profile
category
30. An object in another application - one that's a potential receiver for a remote message.
asynchronous message
remote object
dangling pointer
polymorphism
31. Xcode sequence to examine an app for memory leaks or retain cycles
square brackets
Product>Profile>Leaks>Profile
Categories
[receiver message];
32. ____ provide a concise & elegant method for defining a discrete set of values
runtime
Enumerations
+
class object
33. An object of unknown class. Interface is published through protocol declaration.
anonymous object
message expression
9
superset
34. Property attribute that causes the setter to store a strong reference to the assigned value
chars
ARC
mutex
strong
35. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
chars
procedural programming language
conform
long long
36. In object-oriented programming a procedure that can be executed by an object.
strong
doubles
method
dereference (dereferencing)
37. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
9
factory
inheritance
procedural programming language
38. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
formal protocol
developer intent
value
cannot
39. 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.
delegate
assign
outlet
C operators
40. a++; is an example of using a _____ operator
procedural programming language
nonatomic
unitary
object
41. Any class that's one step below another class in the inheritance hierarchy.
precedence
subclass
category
@interface
42. 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.
instance
dangling pointer
object
Smalltalk
43. Symbol used to denote a placeholder in a format string
properties
zero
%
message expression
44. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
nil
Smalltalk
attributes
dangling pointer
45. 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.
Edit>Refactor>Convert to Objective-C ARC
encapsulation
Unitary
printf( )
46. Discovering the class of an object at runtime rather than at compile time.
NSString
printf( )
developer intent
dynamic typing
47. An object that acts on behalf of another object.
informal protocol
runtime
Encapsulation
delegate
48. 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.
delegate
Categories
reference counting
instance
49. Objective-C objects should use strong or weak ______
instance method
attributes
null
delegate
50. 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.
formal protocol
%
structures
subclass