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. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
asterisk (*)
link time
designated
2. 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.
Binary
abstract superclass
cycles
link time
3. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
Protocols
superclass
C operators
4. 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
adopt
nil
outlet
5. An object of unknown class. Interface is published through protocol declaration.
anonymous object
procedural programming language
assign
structures
6. 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.
distributed objects
Cocoa
Signed
id
7. _____ allow you to add new methods to existing classes
@interface
double
Categories
Binary
8. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
value
comma-separated
assignment
ampersand (&)
9. An architecture that facilitates communication between objects in different address spaces.
distributed objects
Smalltalk
runtime
interface
10. Data types are divided into two main categories: integer and ______
Smalltalk
memory leak
floating-point
assignment
11. 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.
message
outlet
unitary
-
12. Objective-C's protocols are really about communicating _____ _______
Signed
Interface Builder
developer intent
Pointers
13. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
readonly
chars
Enumerations
14. To destroy an object set the variable that points to it to _____
polymorphism
message expression
dynamic allocation
nil
15. In a format string the place holder for an object is ______
Smalltalk
%@
@implementation
strong
16. Property attribute that causes the setter to store a copy of the assigned value
square brackets
strong
value
copy
17. Objective-C objects should use strong or weak ______
AppKit
instance variable
attributes
runtime
18. 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.
memory leak
formal protocol
+
reference counting
19. In a home building analogy a ____ is the blueprint and the object is the house
encapsulation
class
structures
designated
20. 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.
formal protocol
comma-separated
asynchronous message
memory leak
21. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica
distributed objects
Unsigned
synchronous message
floating-point
22. When creating a class header file you begin with the _____ keyword and close with the @end keyword
reference counting
formal protocol
Product>Profile>Leaks>Profile
@interface
23. Objective-C binds methods and arguments at _____ instead of compile time
Interface Builder
instance variable
superclass
runtime
24. An object that acts on behalf of another object.
Product>Profile>Leaks>Profile
dynamic binding
category
delegate
25. ____ provide a concise & elegant method for defining a discrete set of values
pointers
superset
inheritance hierarchy
Enumerations
26. Property attribute where the setter stores the assigned value but does not perform any memory management.
Interface Builder
null
remote object
assign
27. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
runtime
anonymous object
designated
class
28. 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).
message expression
assignment
protocol
conform
29. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
distributed objects
asterisk (*)
comma-separated
developer intent
30. 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.
remote message
delegate
init
class object
31. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
category
%@
@interface
32. A struct may contain multiple ____ consisting of different data types
readonly
fields
factory
asterisk (*)
33. Same as class object. (second way to say it.)
asterisk (*)
assignment
factory object
AppKit
34. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
designated
ARC
unitary
procedures
35. ______ operators take a single operand
Unitary
dispatch table
@interface
dynamic allocation
36. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects
long long
link time
instance method
structures
37. This symbol denotes a method as being a class method
+
Encapsulation
inheritance hierarchy
mutex
38. A protocol declared as a category usually as a category of the NSObject class.
Encapsulation
informal protocol
inheritance hierarchy
chars
39. Finding the method implementation to invoke in response to the message
attributes
mutex
compile time
dynamic binding
40. A variable that points to the memory address of another value
pointer
binary
developer intent
strong
41. 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
outlet
dangling pointer
runtime
42. Any class that's one step below another class in the inheritance hierarchy.
asynchronous message
subclass
compile time
comma-separated
43. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
implementation
Cocoa
instance
receiver
44. Property attribute that synthesizes only a getter for the property
doubles
readonly
category
inheritance
45. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
Binary
formal protocol
value
class
46. 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.
Edit>Refactor>Convert to Objective-C ARC
AppKit
abstract class
Unsigned
47. 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.
factory object
object
NSObject
@interface
48. In Objective-C floats are more commonly used than ______
chars
doubles
nil
nonatomic
49. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
long long
nil
Product>Profile>Leaks>Profile
polymorphism
50. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
factory object
receiver
binary
mutex