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. Symbol used to denote a placeholder in a format string
implementation
Cocoa
square brackets
%
2. A protocol declared as a category usually as a category of the NSObject class.
method
long long
informal protocol
factory
3. In the Objective-C language the declaration of a group of methods not associated with any particular class.
polymorphism
asterisk (*)
class method
protocol
4. 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
category
heap
conform
dangling pointer
5. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
message
Protocols
event
ampersand (&)
6. A compiler feature that provides automated memory management
dynamic binding
ARC
category
readwrite
7. The _____ function can be used to print a message to the console
-
synchronous message
printf( )
outlet
8. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
readwrite
anonymous object
Protocols
comma-separated
9. 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
cycles
dispatch table
instance
10. Finding the method implementation to invoke in response to the message
printf( )
dynamic binding
message
Enumerations
11. 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.
encapsulation
readonly
link time
9
12. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
Unitary
@implementation
C operators
NSObject
13. The most flexible C data type: ______
struct
runtime
binary
message expression
14. The first index in an array is valued at ____
%
zero
reference counting
implementation
15. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
struct
Edit>Refactor>Convert to Objective-C ARC
compile time
factory
16. A class is said to do this when it declares that it implements all the methods in the protocol.
chars
adopt
doubles
floating-point
17. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
developer intent
instance variable
framework
fields
18. To destroy an object set the variable that points to it to _____
nil
instance
comma-separated
instance variable
19. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
Protocols
precedence
readonly
link time
20. The root class in Objective-C
NSObject
pointer
mutex
Pointers
21. 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.
mutex
class
dynamic binding
instance variable
22. All objects are created on the _____
cycles
conform
instance method
heap
23. A message sent from one application to an object in another application.
instance
remote message
encapsulation
weak
24. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
pointer
event
informal protocol
Smalltalk
25. 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.
deprecated
instance
delegate
dereference (dereferencing)
26. Any class that's one step below another class in the inheritance hierarchy.
subclass
runtime
id
class
27. Placing a ____ before a normal variable name gives it's address
chars
@interface
ampersand (&)
formal protocol
28. 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.
chars
reference counting
designated initializer
ARC
29. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
unitary
framework
cannot
30. 3 Common Float data types: float - _____ - CGFloat
double
cycles
structures
@implementation
31. _____ operators take 2 operands
Binary
asynchronous message
comma-separated
dynamic typing
32. 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.
[receiver message];
object
implementation
encapsulation
33. 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
9
Edit>Refactor>Convert to Objective-C ARC
namespace
34. Initializer method traditionally begin with the _____ prefix
conform
init
id
framework
35. 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.
implementation
runtime
chars
double
36. _____ data types can be both positive and negative
Signed
remote message
NSString
weak
37. 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.
selector
comma-separated
polymorphism
remote object
38. In a format string the place holder for an object is ______
value
asterisk (*)
factory object
%@
39. ____ provide a concise & elegant method for defining a discrete set of values
%@
value
printf( )
Enumerations
40. 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.
9
Cocoa
superset
class object
41. A ____ _____ is where you forget to free up memory
memory leak
anonymous object
class
dynamic allocation
42. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
developer intent
%
long long
readonly
43. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
doubles
assignment
Pointers
instance
44. Any method that can be used by an instance of a class rather than by the class object.
instance method
init
strong
printf( )
45. In object-oriented programming a procedure that can be executed by an object.
Cocoa
method
runtime
object
46. 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.
NSString
Unitary
abstract class
structures
47. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
namespace
asynchronous message
C operators
-
48. An object in another application - one that's a potential receiver for a remote message.
heap
printf( )
Cocoa
remote object
49. An architecture that facilitates communication between objects in different address spaces.
event
class
distributed objects
designated initializer
50. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
[receiver message];
readonly
asterisk (*)
abstract class