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. 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.
delegates
AppKit
object
anonymous object
2. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
designated initializer
runtime
struct
3. Square bracket syntax for calling a method
%@
attributes
struct
[receiver message];
4. An object in another application - one that's a potential receiver for a remote message.
inheritance hierarchy
remote object
nil
doubles
5. Xcode sequence to convert non-ARC apps to ARC
subclass
Edit>Refactor>Convert to Objective-C ARC
receiver
double
6. In object-oriented programming the object that is sent a message.
copy
delegates
receiver
synchronous message
7. C-style strings are stored in an array of _____
inheritance hierarchy
9
chars
selector
8. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
Cocoa
namespace
delegates
runtime
9. 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.
reference counting
id
Protocols
Interface Builder
10. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
Protocols
superclass
assign
floating-point
11. Discovering the class of an object at runtime rather than at compile time.
structures
dynamic typing
mutex
designated
12. ______ data types are always zero or greate
link time
Unsigned
double
dynamic binding
13. ARC is susceptible to retain _____
strong
heap
cycles
%@
14. 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
NSObject
superset
designated initializer
dereference (dereferencing)
15. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
binary
comma-separated
inheritance
dynamic typing
16. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
id
printf( )
remote object
17. Initializer method traditionally begin with the _____ prefix
distributed objects
init
class object
Cocoa
18. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Encapsulation
selector
pointers
Cocoa
19. Same as class object. (second way to say it.)
factory object
Binary
instance method
synchronous message
20. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
[receiver message];
dangling pointer
dynamic typing
21. Objective-C methods are called using ____ _____
developer intent
square brackets
object
assign
22. 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.
runtime
factory
namespace
ARC
23. Same as class object. (first way to say it.)
Unsigned
factory
Binary
runtime
24. In Objective-C floats are more commonly used than ______
doubles
fields
protocol
null
25. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
struct
Encapsulation
protocol
procedural programming language
26. 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.
procedures
formal protocol
pointer
ampersand (&)
27. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
instance method
dynamic binding
cannot
+
28. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
pointer
floating-point
binary
29. Property attribute that synthesizes only a getter for the property
readonly
+
doubles
adopt
30. This symbol denotes a method as being an instance method
namespace
structures
abstract superclass
-
31. C-style strings always end with a ____ character
object
dynamic typing
heap
null
32. Data types are divided into two main categories: integer and ______
anonymous object
encapsulation
deprecated
floating-point
33. A ____ ____ is a situation where you free memory and then accidentally continue to use it
readonly
weak
dangling pointer
synchronous message
34. A message sent from one application to an object in another application.
remote message
namespace
distributed objects
copy
35. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
outlet
pointers
%@
assignment
36. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
protocol
event
deprecated
Protocols
37. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
inheritance
protocol
remote message
38. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
C operators
instance
-
precedence
39. 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.
runtime
procedural programming language
ampersand (&)
outlet
40. Property attribute that causes the setter to store a strong reference to the assigned value
deprecated
strong
informal protocol
doubles
41. 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.
AppKit
abstract superclass
Interface Builder
Categories
42. 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.
instance
dynamic allocation
cannot
distributed objects
43. A ____ _____ is where you forget to free up memory
Categories
memory leak
readonly
pointer
44. _____ allow you to add new methods to existing classes
Categories
init
method
null
45. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
implementation
NSString
instance
46. ______ operators take a single operand
copy
Interface Builder
Unitary
dereference (dereferencing)
47. This symbol denotes a method as being a class method
cycles
+
attributes
delegates
48. The first index in an array is valued at ____
Binary
attributes
readwrite
zero
49. In object-oriented programming a procedure that can be executed by an object.
method
superset
reference counting
nil
50. There are ____ fundamental building blocks in Objective-C
remote message
protocol
square brackets
9