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 nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
binary
nil
pointers
2. Square bracket syntax for calling a method
runtime
[receiver message];
instance variable
-
3. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
double
dynamic typing
namespace
asterisk (*)
4. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
class object
9
remote object
Protocols
5. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
namespace
message
Unsigned
6. The most flexible C data type: ______
floating-point
outlet
struct
conform
7. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
floating-point
superset
binary
8. 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.
encapsulation
designated initializer
dynamic allocation
dynamic binding
9. An object id with a value of 0.
selector
designated initializer
nil
distributed objects
10. ARC is susceptible to retain _____
cycles
Pointers
class
dangling pointer
11. Data types are divided into two main categories: integer and ______
NSString
Binary
floating-point
nil
12. In object-oriented programming a procedure that can be executed by an object.
deprecated
9
dynamic typing
method
13. 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
synchronous message
structures
event
[receiver message];
14. Another name for a class that's defined solely so that other classes can inherit from it.
@interface
adopt
factory object
abstract superclass
15. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
id
runtime
@implementation
delegate
16. Objective-C's protocols are really about communicating _____ _______
ARC
instance variable
developer intent
9
17. Same as class object. (second way to say it.)
message
remote object
factory object
dereference (dereferencing)
18. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
chars
Smalltalk
binary
19. 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.
factory
null
inheritance
outlet
20. 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.
id
Cocoa
nil
cycles
21. The process of setting or reading the value at an address pointed to by a pointer
method
Binary
dereference (dereferencing)
%@
22. 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.
comma-separated
reference counting
Unsigned
+
23. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
pointers
9
pointer
weak
24. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
runtime
factory
dangling pointer
25. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
superset
synchronous message
heap
compile time
26. Xcode sequence to examine an app for memory leaks or retain cycles
dereference (dereferencing)
@interface
dangling pointer
Product>Profile>Leaks>Profile
27. 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.
framework
Interface Builder
remote message
instance variable
28. To destroy an object set the variable that points to it to _____
@implementation
inheritance hierarchy
nil
chars
29. A variable that points to the memory address of another value
Categories
fields
pointer
delegates
30. An object in another application - one that's a potential receiver for a remote message.
instance method
remote object
method
framework
31. C-style strings always end with a ____ character
properties
outlet
null
weak
32. When creating a class header file you begin with the _____ keyword and close with the @end keyword
%@
link time
value
@interface
33. 3 Common Float data types: float - _____ - CGFloat
double
adopt
remote object
cycles
34. A method that can operate on class objects rather than instances of the class.
asterisk (*)
struct
class method
inheritance hierarchy
35. 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.
abstract class
Product>Profile>Leaks>Profile
synchronous message
@implementation
36. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
init
long long
doubles
37. 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).
ampersand (&)
Unitary
message expression
object
38. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
C operators
synchronous message
superclass
dynamic binding
39. 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).
9
implementation
link time
protocol
40. Same as class object. (first way to say it.)
factory
anonymous object
link time
C operators
41. The root class in Objective-C
NSString
printf( )
+
NSObject
42. An object of unknown class. Interface is published through protocol declaration.
heap
delegate
anonymous object
link time
43. An architecture that facilitates communication between objects in different address spaces.
inheritance hierarchy
instance method
distributed objects
instance
44. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
class
procedures
NSObject
45. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
procedural programming language
init
remote message
implementation
46. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
static typing
event
value
id
47. _____ 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'.
Enumerations
framework
Encapsulation
AppKit
48. Objective-C methods are called using ____ _____
Edit>Refactor>Convert to Objective-C ARC
square brackets
instance method
adopt
49. An object that acts on behalf of another object.
delegate
instance variable
instance method
Signed
50. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
Protocols
strong
assign