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 time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
dispatch table
heap
polymorphism
2. 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.
message
compile time
null
object
3. 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.
chars
class method
nil
abstract class
4. 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.
Signed
init
asynchronous message
designated initializer
5. Xcode sequence to convert non-ARC apps to ARC
instance
dispatch table
Edit>Refactor>Convert to Objective-C ARC
remote message
6. 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.
class object
formal protocol
[receiver message];
superclass
7. _____ allow indirect access and modification of a variable's value.
+
factory object
unitary
Pointers
8. Objective-C's protocols are really about communicating _____ _______
null
factory
developer intent
pointer
9. 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).
binary
message expression
class method
asynchronous message
10. An object in another application - one that's a potential receiver for a remote message.
static typing
copy
unitary
remote object
11. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
inheritance hierarchy
nil
distributed objects
12. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
procedural programming language
outlet
cycles
comma-separated
13. 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
category
implementation
chars
14. A class is said to do this when it declares that it implements all the methods in the protocol.
-
adopt
id
object
15. This symbol denotes a method as being a class method
assignment
receiver
+
synchronous message
16. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
nil
protocol
event
17. ______ operators take a single operand
informal protocol
Cocoa
adopt
Unitary
18. A ____ _____ is where you forget to free up memory
instance variable
implementation
Cocoa
memory leak
19. C-style strings are stored in an array of _____
developer intent
outlet
assignment
chars
20. The most flexible C data type: ______
Edit>Refactor>Convert to Objective-C ARC
struct
assign
remote message
21. 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.
protocol
designated initializer
id
NSObject
22. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
synchronous message
cannot
asterisk (*)
Pointers
23. In object-oriented programming the object that is sent a message.
inheritance hierarchy
receiver
@implementation
zero
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
class method
binary
designated initializer
Unitary
25. 3 Common Float data types: float - _____ - CGFloat
Protocols
C operators
fields
double
26. A compiler feature that provides automated memory management
class
ARC
factory object
heap
27. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
C operators
asterisk (*)
mutex
%@
28. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
floating-point
weak
asynchronous message
framework
29. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
asterisk (*)
procedures
polymorphism
comma-separated
30. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
readwrite
@implementation
[receiver message];
dispatch table
31. Property attribute that synthesizes both a getter and setter for the property
readwrite
receiver
Encapsulation
fields
32. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
nil
namespace
class
receiver
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
developer intent
conform
Enumerations
dynamic allocation
34. This symbol denotes a method as being an instance method
framework
abstract superclass
fields
-
35. 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.
weak
[receiver message];
heap
inheritance hierarchy
36. An object id with a value of 0.
reference counting
nil
procedural programming language
double
37. The first index in an array is valued at ____
zero
protocol
unitary
anonymous object
38. 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.
abstract class
zero
AppKit
C operators
39. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
framework
interface
readonly
class method
40. Another name for a class that's defined solely so that other classes can inherit from it.
formal protocol
instance method
abstract superclass
[receiver message];
41. _____ allow you to add new methods to existing classes
framework
double
mutex
Categories
42. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
namespace
dynamic typing
Pointers
43. 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.
Unsigned
reference counting
attributes
memory leak
44. ____ provide a concise & elegant method for defining a discrete set of values
strong
instance variable
dangling pointer
Enumerations
45. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
class object
adopt
precedence
46. A protocol declared as a category usually as a category of the NSObject class.
runtime
outlet
informal protocol
AppKit
47. Same as class object. (first way to say it.)
properties
strong
procedural programming language
factory
48. a++; is an example of using a _____ operator
instance method
subclass
event
unitary
49. Any class that's one step below another class in the inheritance hierarchy.
subclass
inheritance hierarchy
attributes
conform
50. 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
[receiver message];
static typing
NSString