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 is a _____ of the C language
init
%@
superset
readonly
2. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dynamic typing
dispatch table
class object
precedence
3. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
encapsulation
%@
class method
4. 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.
ampersand (&)
chars
ARC
AppKit
5. 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
runtime
protocol
6. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
AppKit
ARC
class object
cannot
7. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
unitary
message
polymorphism
square brackets
8. 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
long long
@interface
9. An object of unknown class. Interface is published through protocol declaration.
dynamic allocation
doubles
anonymous object
reference counting
10. a++; is an example of using a _____ operator
unitary
runtime
assignment
message
11. In object-oriented programming the object that is sent a message.
runtime
+
receiver
inheritance hierarchy
12. In object-oriented programming a procedure that can be executed by an object.
method
formal protocol
Protocols
synchronous message
13. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
protocol
comma-separated
nil
14. A class is said to do this when it declares that it implements all the methods in the protocol.
C operators
%@
adopt
Binary
15. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
[receiver message];
pointer
designated
16. A set of method definitions that is segregated from the rest of the class definition.
runtime
category
double
NSString
17. The first index in an array is valued at ____
AppKit
developer intent
zero
doubles
18. The root class in Objective-C
dereference (dereferencing)
instance
C operators
NSObject
19. When creating a class header file you begin with the _____ keyword and close with the @end keyword
encapsulation
chars
@interface
Pointers
20. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
cannot
asynchronous message
adopt
interface
21. C-style strings always end with a ____ character
null
runtime
copy
NSObject
22. The _____ function can be used to print a message to the console
delegates
printf( )
dynamic binding
weak
23. Square bracket syntax for calling a method
dereference (dereferencing)
comma-separated
interface
[receiver message];
24. 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
value
dynamic binding
doubles
designated initializer
25. The most flexible C data type: ______
Enumerations
reference counting
instance variable
struct
26. Another name for a class that's defined solely so that other classes can inherit from it.
init
abstract superclass
Pointers
asterisk (*)
27. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
Signed
cannot
event
copy
28. ARC is susceptible to retain _____
dynamic binding
cycles
class object
distributed objects
29. a+b; is an example of using a _____ operator
Product>Profile>Leaks>Profile
binary
structures
delegates
30. 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
polymorphism
Encapsulation
synchronous message
static typing
31. Initializer method traditionally begin with the _____ prefix
asynchronous message
strong
init
Edit>Refactor>Convert to Objective-C ARC
32. Finding the method implementation to invoke in response to the message
framework
remote message
nil
dynamic binding
33. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
conform
asynchronous message
deprecated
34. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
cycles
framework
floating-point
Smalltalk
35. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
readonly
instance method
informal protocol
mutex
36. A message sent from one application to an object in another application.
remote message
NSString
@interface
value
37. Property attribute that synthesizes both a getter and setter for the property
fields
dereference (dereferencing)
readwrite
receiver
38. A ____ _____ is where you forget to free up memory
polymorphism
memory leak
weak
procedural programming language
39. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
conform
doubles
Cocoa
NSObject
40. ____ provide a concise & elegant method for defining a discrete set of values
readwrite
Enumerations
+
object
41. 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.
inheritance hierarchy
selector
value
binary
42. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.
unitary
abstract superclass
Encapsulation
dereference (dereferencing)
43. A variable that points to the memory address of another value
pointer
instance variable
message
link time
44. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
id
abstract class
-
45. Any class that's one step below another class in the inheritance hierarchy.
+
subclass
dynamic binding
value
46. 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.
dynamic typing
reference counting
dynamic binding
[receiver message];
47. An object that acts on behalf of another object.
dynamic allocation
receiver
init
delegate
48. An object in another application - one that's a potential receiver for a remote message.
heap
dispatch table
%@
remote object
49. To destroy an object set the variable that points to it to _____
anonymous object
nil
pointers
namespace
50. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
dynamic typing
selector
Enumerations