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. 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).
id
cannot
implementation
informal protocol
2. All objects are created on the _____
dereference (dereferencing)
heap
instance method
procedural programming language
3. 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.
interface
reference counting
id
dispatch table
4. A set of method definitions that is segregated from the rest of the class definition.
class method
nil
chars
category
5. Any method that can be used by an instance of a class rather than by the class object.
double
outlet
instance method
Encapsulation
6. A compiler feature that provides automated memory management
ARC
NSObject
class
%
7. Property attribute where the setter stores the assigned value but does not perform any memory management.
selector
init
assign
outlet
8. 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.
structures
class method
encapsulation
outlet
9. 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
dynamic typing
designated initializer
properties
dispatch table
10. 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.
namespace
adopt
heap
outlet
11. Xcode sequence to examine an app for memory leaks or retain cycles
mutex
heap
framework
Product>Profile>Leaks>Profile
12. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
printf( )
instance
interface
class
13. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asynchronous message
asterisk (*)
nonatomic
factory
14. An object of unknown class. Interface is published through protocol declaration.
class
anonymous object
AppKit
method
15. An object in another application - one that's a potential receiver for a remote message.
binary
copy
method
remote object
16. C-style strings are stored in an array of _____
procedures
null
chars
outlet
17. To destroy an object set the variable that points to it to _____
Smalltalk
abstract class
designated
nil
18. Xcode sequence to convert non-ARC apps to ARC
comma-separated
Edit>Refactor>Convert to Objective-C ARC
delegate
synchronous message
19. _____ allow indirect access and modification of a variable's value.
Pointers
event
instance
square brackets
20. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
pointer
Categories
framework
procedures
21. This symbol denotes a method as being a class method
superclass
framework
comma-separated
+
22. Property attribute that synthesizes only a getter for the property
selector
readonly
floating-point
[receiver message];
23. There are ____ fundamental building blocks in Objective-C
Encapsulation
9
mutex
instance
24. An object that acts on behalf of another object.
unitary
class
procedures
delegate
25. Same as class object. (first way to say it.)
assign
factory
instance variable
fields
26. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
compile time
nil
floating-point
27. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
selector
Signed
procedures
dynamic allocation
28. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
dynamic typing
class
delegates
instance method
29. A protocol declared as a category usually as a category of the NSObject class.
Encapsulation
message
informal protocol
printf( )
30. 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.
event
dynamic binding
namespace
Protocols
31. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
procedural programming language
id
mutex
ARC
32. 3 Common Float data types: float - _____ - CGFloat
Categories
double
outlet
static typing
33. ____ provide a concise & elegant method for defining a discrete set of values
object
namespace
Enumerations
Edit>Refactor>Convert to Objective-C ARC
34. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
Unitary
distributed objects
@implementation
designated
35. 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.
Binary
encapsulation
object
factory object
36. ______ data types are always zero or greate
dynamic allocation
Unsigned
C operators
unitary
37. A ____ ____ is a situation where you free memory and then accidentally continue to use it
factory object
dangling pointer
method
precedence
38. 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.
assignment
readwrite
link time
remote message
39. ARC is susceptible to retain _____
cycles
category
binary
class method
40. 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.
event
struct
implementation
Interface Builder
41. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.
id
protocol
Cocoa
class method
42. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
ARC
static typing
memory leak
procedural programming language
43. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
chars
message
Cocoa
value
44. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
procedural programming language
Enumerations
framework
subclass
45. An architecture that facilitates communication between objects in different address spaces.
delegate
namespace
adopt
distributed objects
46. 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
double
fields
[receiver message];
NSString
47. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
attributes
compile time
deprecated
48. An object id with a value of 0.
category
C operators
dynamic binding
nil
49. 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.
dynamic binding
asynchronous message
C operators
instance variable
50. 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
long long
deprecated
formal protocol