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 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.
Product>Profile>Leaks>Profile
method
instance
null
2. Objective-C methods are called using ____ _____
nil
square brackets
C operators
null
3. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
dangling pointer
distributed objects
event
procedures
4. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
Pointers
dereference (dereferencing)
message
weak
5. ____ provide a concise & elegant method for defining a discrete set of values
synchronous message
Unsigned
Enumerations
event
6. 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
Enumerations
precedence
mutex
7. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
doubles
designated initializer
cannot
AppKit
8. When creating a class header file you begin with the _____ keyword and close with the @end keyword
developer intent
@interface
inheritance
receiver
9. The first index in an array is valued at ____
copy
zero
runtime
class
10. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
Interface Builder
message expression
class
%
11. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
binary
memory leak
instance
12. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
class
inheritance
designated
NSString
13. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
distributed objects
compile time
double
instance
14. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
pointer
@implementation
method
interface
15. 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.
factory object
asterisk (*)
instance variable
procedural programming language
16. The most flexible C data type: ______
factory object
Protocols
asterisk (*)
struct
17. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
static typing
pointer
square brackets
18. Finding the method implementation to invoke in response to the message
asynchronous message
instance
Signed
dynamic binding
19. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
Categories
@implementation
protocol
asterisk (*)
20. Symbol used to denote a placeholder in a format string
event
@implementation
procedural programming language
%
21. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
outlet
inheritance hierarchy
class
22. The root class in Objective-C
remote message
NSObject
compile time
comma-separated
23. A set of method definitions that is segregated from the rest of the class definition.
square brackets
ARC
weak
category
24. 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.
asynchronous message
link time
assignment
nonatomic
25. All objects are created on the _____
message expression
zero
designated
heap
26. Any class that's one step below another class in the inheritance hierarchy.
Unsigned
factory
Enumerations
subclass
27. Objective-C binds methods and arguments at _____ instead of compile time
comma-separated
inheritance
conform
runtime
28. Any method that can be used by an instance of a class rather than by the class object.
Protocols
synchronous message
instance method
method
29. An object that acts on behalf of another object.
dangling pointer
C operators
event
delegate
30. Data types are divided into two main categories: integer and ______
floating-point
Edit>Refactor>Convert to Objective-C ARC
copy
nonatomic
31. 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.
precedence
Signed
chars
selector
32. 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
encapsulation
instance variable
dispatch table
33. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
static typing
properties
factory object
34. In a home building analogy a ____ is the blueprint and the object is the house
mutex
memory leak
class
Protocols
35. Property attribute that causes the setter to store a copy of the assigned value
ampersand (&)
copy
factory
asynchronous message
36. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
instance
procedures
class
Cocoa
37. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
inheritance
assignment
structures
Interface Builder
38. Instance variables are optional in iOS if ________ are used
struct
properties
Unitary
Unsigned
39. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
synchronous message
procedures
doubles
superclass
40. This symbol denotes a method as being an instance method
message
9
-
remote object
41. 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.
copy
inheritance hierarchy
class method
reference counting
42. ______ operators take a single operand
readwrite
Interface Builder
Unitary
chars
43. Initializer method traditionally begin with the _____ prefix
runtime
nil
init
Smalltalk
44. 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.
runtime
precedence
Interface Builder
object
45. To destroy an object set the variable that points to it to _____
floating-point
nil
mutex
superclass
46. Objective-C objects should use strong or weak ______
remote message
attributes
conform
nonatomic
47. 3 Common Float data types: float - _____ - CGFloat
instance variable
double
procedures
Edit>Refactor>Convert to Objective-C ARC
48. ARC is susceptible to retain _____
cycles
copy
nonatomic
protocol
49. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.
superset
comma-separated
dynamic allocation
superclass
50. 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
designated initializer
link time
category
cannot