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 object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
message
C operators
framework
properties
2. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
assign
dynamic binding
Enumerations
interface
3. a++; is an example of using a _____ operator
[receiver message];
long long
unitary
factory
4. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
subclass
deprecated
precedence
nil
5. An object in another application - one that's a potential receiver for a remote message.
@implementation
runtime
remote object
dangling pointer
6. An object id with a value of 0.
nil
attributes
nonatomic
implementation
7. 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.
receiver
Product>Profile>Leaks>Profile
ampersand (&)
class object
8. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
selector
doubles
assignment
event
9. Another name for a class that's defined solely so that other classes can inherit from it.
Signed
abstract superclass
Smalltalk
formal protocol
10. Property attribute that causes the setter to store a copy of the assigned value
copy
Product>Profile>Leaks>Profile
AppKit
Signed
11. 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.
attributes
message expression
instance
dangling pointer
12. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
pointer
properties
class
category
13. Instance variables are optional in iOS if ________ are used
class object
Categories
properties
attributes
14. 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
instance
message expression
9
15. _____ 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'.
9
Encapsulation
Enumerations
readonly
16. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
Smalltalk
-
C operators
remote message
17. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
factory object
mutex
class method
comma-separated
18. All objects are created on the _____
heap
ampersand (&)
C operators
unitary
19. Any method that can be used by an instance of a class rather than by the class object.
instance method
reference counting
Unsigned
factory object
20. Placing a ____ before a normal variable name gives it's address
receiver
binary
Enumerations
ampersand (&)
21. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
abstract superclass
Protocols
polymorphism
doubles
22. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
superset
weak
pointer
readwrite
23. 3 Common Float data types: float - _____ - CGFloat
nil
double
Signed
AppKit
24. There are ____ fundamental building blocks in Objective-C
9
%
nil
reference counting
25. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
designated
dispatch table
unitary
remote message
26. Symbol used to denote a placeholder in a format string
outlet
category
designated
%
27. In object-oriented programming a procedure that can be executed by an object.
encapsulation
method
[receiver message];
+
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.
static typing
reference counting
cycles
zero
29. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dispatch table
Binary
Enumerations
dangling pointer
30. In Objective-C floats are more commonly used than ______
strong
method
null
doubles
31. _____ data types can be both positive and negative
Signed
delegates
readonly
dynamic typing
32. _____ allow you to add new methods to existing classes
readonly
implementation
Categories
instance
33. a+b; is an example of using a _____ operator
binary
Enumerations
superclass
comma-separated
34. A method that can operate on class objects rather than instances of the class.
doubles
protocol
class method
subclass
35. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).
cannot
asynchronous message
message expression
informal protocol
36. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
instance
+
@interface
37. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
[receiver message];
instance variable
pointer
comma-separated
38. 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.
instance variable
assign
cannot
NSString
39. The most flexible C data type: ______
value
protocol
dynamic typing
struct
40. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
cycles
Smalltalk
superclass
synchronous message
41. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
Product>Profile>Leaks>Profile
runtime
compile time
procedural programming language
42. 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.
framework
Protocols
dynamic allocation
category
43. The root class in Objective-C
developer intent
object
readonly
NSObject
44. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
@implementation
floating-point
Cocoa
45. 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.
memory leak
id
class
encapsulation
46. Same as class object. (first way to say it.)
factory
inheritance hierarchy
assignment
deprecated
47. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
weak
instance
instance
dynamic binding
48. A ____ _____ is where you forget to free up memory
properties
zero
memory leak
Pointers
49. A set of method definitions that is segregated from the rest of the class definition.
class
category
fields
instance
50. 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.
message expression
Protocols
object
Interface Builder