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 declares its public interface which includes its superclass name & instances variables and public-method prototypes.
interface
class method
subclass
remote message
2. 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.
Product>Profile>Leaks>Profile
formal protocol
value
runtime
3. Xcode sequence to convert non-ARC apps to ARC
C operators
Edit>Refactor>Convert to Objective-C ARC
cannot
synchronous message
4. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
Edit>Refactor>Convert to Objective-C ARC
runtime
copy
mutex
5. This symbol denotes a method as being a class method
structures
class object
polymorphism
+
6. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
remote message
dispatch table
Protocols
designated initializer
7. 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
NSString
heap
floating-point
8. In object-oriented programming a procedure that can be executed by an object.
method
instance method
structures
Signed
9. Same as class object. (first way to say it.)
floating-point
distributed objects
factory
cycles
10. 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.
developer intent
id
assign
superset
11. ARC is susceptible to retain _____
procedures
unitary
cycles
Categories
12. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
abstract superclass
[receiver message];
C operators
event
13. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
protocol
superclass
factory object
Unsigned
14. To destroy an object set the variable that points to it to _____
readwrite
nil
method
Pointers
15. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
compile time
comma-separated
framework
Cocoa
16. In a home building analogy a ____ is the blueprint and the object is the house
unitary
class
weak
inheritance
17. Another name for a class that's defined solely so that other classes can inherit from it.
+
ARC
abstract superclass
developer intent
18. An object id with a value of 0.
comma-separated
class
informal protocol
nil
19. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
deprecated
class
attributes
polymorphism
20. In Objective-C floats are more commonly used than ______
synchronous message
reference counting
instance
doubles
21. A method that can operate on class objects rather than instances of the class.
unitary
class method
@interface
struct
22. All objects are created on the _____
NSString
C operators
heap
@interface
23. An object in another application - one that's a potential receiver for a remote message.
outlet
structures
Pointers
remote object
24. An object that acts on behalf of another object.
polymorphism
dangling pointer
delegate
dynamic binding
25. A protocol declared as a category usually as a category of the NSObject class.
Cocoa
instance
dangling pointer
informal protocol
26. Symbol used to denote a placeholder in a format string
receiver
nonatomic
%
conform
27. Same as class object. (second way to say it.)
assignment
instance
[receiver message];
factory object
28. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.
cycles
inheritance hierarchy
anonymous object
developer intent
29. 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.
instance
readwrite
receiver
dynamic allocation
30. A class is said to do this when it declares that it implements all the methods in the protocol.
runtime
adopt
assign
%
31. 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.
id
instance
assignment
link time
32. 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
printf( )
ampersand (&)
encapsulation
33. C-style strings always end with a ____ character
Interface Builder
null
polymorphism
protocol
34. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
nil
long long
static typing
Cocoa
35. In a format string the place holder for an object is ______
struct
Smalltalk
%@
namespace
36. Objective-C objects should use strong or weak ______
abstract superclass
long long
attributes
message expression
37. The first index in an array is valued at ____
square brackets
dangling pointer
zero
conform
38. 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.
cannot
readwrite
class object
dispatch table
39. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
superclass
@implementation
procedural programming language
remote object
40. 3 Common Float data types: float - _____ - CGFloat
id
double
unitary
class method
41. 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
zero
developer intent
conform
doubles
42. A struct may contain multiple ____ consisting of different data types
anonymous object
mutex
init
fields
43. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
readwrite
-
@implementation
44. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
inheritance
Smalltalk
anonymous object
instance
45. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
Unsigned
comma-separated
event
printf( )
46. When creating a class header file you begin with the _____ keyword and close with the @end keyword
heap
category
dangling pointer
@interface
47. 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.
receiver
[receiver message];
outlet
readonly
48. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
instance method
Signed
encapsulation
dispatch table
49. 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.
strong
reference counting
informal protocol
cannot
50. Objective-C's protocols are really about communicating _____ _______
encapsulation
interface
developer intent
Binary