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. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
dispatch table
ARC
Smalltalk
binary
2. A message sent from one application to an object in another application.
Encapsulation
cycles
runtime
remote message
3. To destroy an object set the variable that points to it to _____
informal protocol
nil
message
instance variable
4. 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.
anonymous object
namespace
class
factory object
5. An object that acts on behalf of another object.
delegate
Smalltalk
encapsulation
mutex
6. Objective-C methods are called using ____ _____
assignment
memory leak
Protocols
square brackets
7. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
%
readwrite
dangling pointer
assignment
8. Any class that's one step below another class in the inheritance hierarchy.
factory
subclass
struct
Pointers
9. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
Encapsulation
interface
NSString
factory object
10. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
method
+
procedural programming language
chars
11. Square bracket syntax for calling a method
message expression
[receiver message];
remote object
assignment
12. The root class in Objective-C
remote object
interface
NSObject
abstract superclass
13. Discovering the class of an object at runtime rather than at compile time.
cycles
dynamic typing
doubles
nil
14. In object-oriented programming a procedure that can be executed by an object.
synchronous message
interface
Unitary
method
15. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
instance variable
class
unitary
procedures
16. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
designated
conform
superset
readonly
17. 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.
Cocoa
informal protocol
selector
dangling pointer
18. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
anonymous object
inheritance
dispatch table
factory
19. Property attribute that causes the setter to store a strong reference to the assigned value
object
binary
strong
init
20. 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
instance variable
message
class method
21. All objects are created on the _____
double
heap
Interface Builder
9
22. 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
readonly
developer intent
synchronous message
factory
23. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
abstract superclass
pointers
asterisk (*)
24. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
delegates
dynamic allocation
memory leak
25. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
AppKit
Unsigned
NSString
26. An architecture that facilitates communication between objects in different address spaces.
distributed objects
mutex
Interface Builder
fields
27. C-style strings are stored in an array of _____
printf( )
chars
assignment
conform
28. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
heap
reference counting
designated initializer
29. An object id with a value of 0.
nil
dispatch table
Pointers
message expression
30. Any method that can be used by an instance of a class rather than by the class object.
instance method
Product>Profile>Leaks>Profile
dispatch table
ampersand (&)
31. Another name for a class that's defined solely so that other classes can inherit from it.
runtime
abstract superclass
square brackets
selector
32. 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.
+
class method
inheritance hierarchy
strong
33. A method that can operate on class objects rather than instances of the class.
class method
chars
properties
value
34. 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.
link time
init
reference counting
struct
35. Property attribute that causes the setter to store a copy of the assigned value
@implementation
Unitary
dynamic typing
copy
36. The _____ function can be used to print a message to the console
printf( )
category
delegate
ampersand (&)
37. a+b; is an example of using a _____ operator
square brackets
Encapsulation
delegate
binary
38. Symbol used to denote a placeholder in a format string
null
message
%
doubles
39. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
NSObject
compile time
designated
object
40. 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
dereference (dereferencing)
long long
nil
41. 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.
Encapsulation
outlet
instance method
init
42. In the Objective-C language the declaration of a group of methods not associated with any particular class.
Pointers
protocol
instance
event
43. 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
conform
designated
attributes
event
44. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
class
instance
comma-separated
runtime
45. This symbol denotes a method as being an instance method
Enumerations
Encapsulation
Binary
-
46. Same as class object. (first way to say it.)
square brackets
factory
pointers
method
47. 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).
memory leak
selector
strong
message expression
48. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.
AppKit
category
structures
runtime
49. A struct may contain multiple ____ consisting of different data types
heap
printf( )
namespace
fields
50. Xcode sequence to examine an app for memory leaks or retain cycles
assignment
Product>Profile>Leaks>Profile
Signed
Interface Builder