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. An architecture that facilitates communication between objects in different address spaces.
category
message
designated
distributed objects
2. 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.
deprecated
Unsigned
framework
outlet
3. ____ provide a concise & elegant method for defining a discrete set of values
object
Enumerations
NSString
encapsulation
4. ______ data types are always zero or greate
cannot
Unsigned
compile time
class
5. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
instance variable
nil
reference counting
6. ARC is susceptible to retain _____
properties
-
inheritance hierarchy
cycles
7. Property attribute where the setter stores the assigned value but does not perform any memory management.
@interface
instance
assign
class object
8. An object in another application - one that's a potential receiver for a remote message.
deprecated
remote object
NSString
distributed objects
9. Property attribute that causes the setter to store a copy of the assigned value
copy
inheritance
protocol
weak
10. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
C operators
9
Cocoa
null
11. In Objective-C floats are more commonly used than ______
+
adopt
zero
doubles
12. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
Interface Builder
ampersand (&)
object
13. 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.
synchronous message
informal protocol
abstract class
-
14. 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).
ARC
message expression
copy
category
15. Discovering the class of an object at runtime rather than at compile time.
reference counting
Signed
chars
dynamic typing
16. Property attribute that synthesizes accessors that are not thread safe
double
readonly
pointers
nonatomic
17. 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
designated initializer
pointer
-
adopt
18. Xcode sequence to convert non-ARC apps to ARC
instance method
abstract class
Edit>Refactor>Convert to Objective-C ARC
heap
19. 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.
asynchronous message
dynamic allocation
category
namespace
20. When creating a class header file you begin with the _____ keyword and close with the @end keyword
Categories
pointer
@interface
memory leak
21. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
asterisk (*)
cannot
delegate
9
22. 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.
runtime
comma-separated
encapsulation
class object
23. A set of method definitions that is segregated from the rest of the class definition.
weak
value
superset
category
24. 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.
binary
@implementation
instance variable
attributes
25. _____ allow you to add new methods to existing classes
NSObject
inheritance
Categories
readonly
26. An object of unknown class. Interface is published through protocol declaration.
nil
anonymous object
Interface Builder
fields
27. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
C operators
Protocols
static typing
receiver
28. A ____ _____ is where you forget to free up memory
remote message
nil
readonly
memory leak
29. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
readonly
C operators
9
framework
30. 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.
dynamic allocation
precedence
@implementation
id
31. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).
Encapsulation
value
implementation
procedural programming language
32. a+b; is an example of using a _____ operator
receiver
binary
properties
cycles
33. 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.
class
runtime
NSObject
interface
34. A method that can operate on class objects rather than instances of the class.
class method
superclass
value
reference counting
35. In a format string the place holder for an object is ______
%@
readonly
abstract class
heap
36. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
polymorphism
superset
delegates
inheritance hierarchy
37. 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.
assignment
comma-separated
link time
copy
38. A protocol that's declared with the @protocol directive. Classes can adopt these - objects can respond at runtime when asked if they conform to them and instances can be typed by those that they conform to.
dereference (dereferencing)
cycles
formal protocol
inheritance
39. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
Smalltalk
superclass
Unsigned
assign
40. Same as class object. (first way to say it.)
distributed objects
instance
pointer
factory
41. The root class in Objective-C
Categories
NSObject
dangling pointer
static typing
42. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
asynchronous message
dispatch table
link time
pointers
43. A protocol declared as a category usually as a category of the NSObject class.
receiver
Product>Profile>Leaks>Profile
value
informal protocol
44. 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
receiver
conform
Binary
designated
45. 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.
chars
Unitary
Interface Builder
structures
46. This symbol denotes a method as being a class method
formal protocol
Smalltalk
+
dynamic allocation
47. All objects are created on the _____
heap
assignment
remote message
Unsigned
48. Objective-C objects should use strong or weak ______
encapsulation
message
attributes
dynamic typing
49. Another name for a class that's defined solely so that other classes can inherit from it.
Pointers
abstract superclass
Binary
instance
50. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
abstract superclass
class
interface
instance variable