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. 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.
cycles
abstract class
nonatomic
framework
2. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
Categories
printf( )
dispatch table
conform
3. All objects are created on the _____
cycles
factory
adopt
heap
4. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
fields
encapsulation
remote object
5. A variable that points to the memory address of another value
pointer
Signed
runtime
link time
6. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
instance
Unsigned
class method
framework
7. When creating a class header file you begin with the _____ keyword and close with the @end keyword
abstract superclass
namespace
abstract class
@interface
8. 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
formal protocol
runtime
category
9. 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.
runtime
selector
class method
Product>Profile>Leaks>Profile
10. In Objective-C floats are more commonly used than ______
Interface Builder
doubles
designated
struct
11. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
asynchronous message
compile time
designated initializer
12. Finding the method implementation to invoke in response to the message
structures
dynamic binding
receiver
Signed
13. The root class in Objective-C
nil
link time
@interface
NSObject
14. The process of setting or reading the value at an address pointed to by a pointer
interface
dereference (dereferencing)
factory object
asterisk (*)
15. C-style strings are stored in an array of _____
pointers
chars
9
weak
16. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.
asynchronous message
Encapsulation
Unitary
square brackets
17. a++; is an example of using a _____ operator
-
factory
nonatomic
unitary
18. A method that can operate on class objects rather than instances of the class.
fields
static typing
assign
class method
19. A struct may contain multiple ____ consisting of different data types
fields
Signed
superclass
designated initializer
20. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
Smalltalk
synchronous message
runtime
instance
21. _____ data types can be both positive and negative
dynamic binding
Signed
nil
adopt
22. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
encapsulation
square brackets
+
assignment
23. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
nil
id
cannot
developer intent
24. Property attribute that synthesizes only a getter for the property
readonly
Pointers
subclass
delegate
25. In a home building analogy a ____ is the blueprint and the object is the house
precedence
pointer
Enumerations
class
26. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
floating-point
message expression
static typing
instance variable
27. 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
nil
superclass
instance variable
28. An architecture that facilitates communication between objects in different address spaces.
pointers
floating-point
distributed objects
nil
29. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
procedural programming language
Unsigned
Interface Builder
event
30. 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.
method
outlet
class
Pointers
31. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
double
weak
method
asterisk (*)
32. 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.
namespace
square brackets
Enumerations
precedence
33. 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
abstract superclass
Product>Profile>Leaks>Profile
copy
conform
34. _____ allow you to add new methods to existing classes
Categories
superclass
designated
static typing
35. Property attribute that causes the setter to store a strong reference to the assigned value
strong
Unitary
weak
outlet
36. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.
instance
nil
class object
strong
37. Objective-C objects should use strong or weak ______
attributes
square brackets
dispatch table
assignment
38. 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
-
unitary
structures
abstract class
39. Any method that can be used by an instance of a class rather than by the class object.
instance
weak
instance method
chars
40. To destroy an object set the variable that points to it to _____
+
long long
superclass
nil
41. Property attribute that synthesizes accessors that are not thread safe
dereference (dereferencing)
event
nonatomic
inheritance
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
inheritance hierarchy
designated initializer
class
link time
43. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
interface
polymorphism
Pointers
pointer
44. Same as class object. (second way to say it.)
superset
factory object
selector
AppKit
45. A set of method definitions that is segregated from the rest of the class definition.
readonly
@implementation
category
instance
46. There are ____ fundamental building blocks in Objective-C
9
NSString
compile time
method
47. 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.
runtime
dynamic binding
double
ampersand (&)
48. A ____ _____ is where you forget to free up memory
abstract superclass
Pointers
memory leak
receiver
49. 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.
class
AppKit
init
comma-separated
50. 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.
anonymous object
ampersand (&)
designated initializer
link time