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. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
asynchronous message
null
@interface
message
2. A ____ _____ is where you forget to free up memory
strong
memory leak
Binary
inheritance hierarchy
3. A compiler feature that provides automated memory management
copy
ARC
class object
assignment
4. _____ data types can be both positive and negative
precedence
distributed objects
instance
Signed
5. 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.
heap
remote message
receiver
link time
6. A ____ ____ is a situation where you free memory and then accidentally continue to use it
Unitary
dangling pointer
class method
Binary
7. 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
C operators
NSObject
init
8. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
designated
dispatch table
memory leak
encapsulation
9. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
%@
superclass
readonly
instance variable
10. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.
Interface Builder
class object
fields
static typing
11. A struct may contain multiple ____ consisting of different data types
fields
unitary
dynamic binding
interface
12. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
long long
runtime
procedural programming language
informal protocol
13. 3 Common Float data types: float - _____ - CGFloat
double
object
cycles
Pointers
14. A method that can operate on class objects rather than instances of the class.
class method
interface
Product>Profile>Leaks>Profile
zero
15. Xcode sequence to convert non-ARC apps to ARC
asynchronous message
Edit>Refactor>Convert to Objective-C ARC
conform
cannot
16. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
remote object
assignment
pointers
class
17. An object in another application - one that's a potential receiver for a remote message.
link time
-
remote object
NSObject
18. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
superclass
%@
message expression
19. The root class in Objective-C
dereference (dereferencing)
NSObject
@implementation
inheritance hierarchy
20. In a home building analogy a ____ is the blueprint and the object is the house
asynchronous message
framework
instance
class
21. An architecture that facilitates communication between objects in different address spaces.
long long
abstract superclass
abstract class
distributed objects
22. 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.
readonly
remote message
AppKit
designated
23. Objective-C objects should use strong or weak ______
designated initializer
receiver
attributes
mutex
24. Property attribute that synthesizes only a getter for the property
Encapsulation
readonly
encapsulation
id
25. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
NSObject
AppKit
message
26. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
%@
NSObject
nonatomic
27. Same as class object. (second way to say it.)
factory object
designated initializer
assignment
class
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.
abstract class
asynchronous message
interface
fields
29. The process of setting or reading the value at an address pointed to by a pointer
remote message
dereference (dereferencing)
pointers
runtime
30. Any method that can be used by an instance of a class rather than by the class object.
remote object
Encapsulation
instance method
anonymous object
31. C-style strings are stored in an array of _____
printf( )
compile time
dynamic binding
chars
32. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
message
message expression
dynamic allocation
value
33. Same as class object. (first way to say it.)
asynchronous message
factory
protocol
assignment
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.
nil
runtime
Cocoa
reference counting
35. Property attribute that causes the setter to store a strong reference to the assigned value
strong
receiver
Pointers
readonly
36. This symbol denotes a method as being a class method
cycles
factory
category
+
37. 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
fields
synchronous message
protocol
38. 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 typing
runtime
heap
init
39. 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
Protocols
NSString
dynamic allocation
@implementation
40. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
factory
precedence
C operators
unitary
41. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
ampersand (&)
@implementation
Unsigned
distributed objects
42. 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
nonatomic
@interface
heap
designated initializer
43. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
remote object
Binary
dispatch table
44. 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
link time
zero
distributed objects
conform
45. Three main categories of more complicated data structures:_______ - arrays and structs
AppKit
Protocols
pointers
struct
46. A class is said to do this when it declares that it implements all the methods in the protocol.
nil
message expression
adopt
selector
47. 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
synchronous message
class
fields
[receiver message];
48. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
abstract class
event
anonymous object
interface
49. Another name for a class that's defined solely so that other classes can inherit from it.
+
abstract superclass
Signed
designated initializer
50. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
compile time
Binary
interface