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 way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
NSString
conform
zero
framework
2. 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.
comma-separated
dynamic allocation
Protocols
Cocoa
3. Objective-C's protocols are really about communicating _____ _______
designated
outlet
compile time
developer intent
4. Objective-C methods are called using ____ _____
square brackets
procedures
factory object
distributed objects
5. A compiler feature that provides automated memory management
namespace
factory
ARC
binary
6. _____ data types can be both positive and negative
readwrite
Signed
@interface
formal protocol
7. Same as class object. (second way to say it.)
factory object
mutex
properties
doubles
8. Xcode sequence to examine an app for memory leaks or retain cycles
runtime
precedence
Product>Profile>Leaks>Profile
inheritance hierarchy
9. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
asterisk (*)
@implementation
Encapsulation
superclass
10. 3 Common Float data types: float - _____ - CGFloat
double
unitary
ampersand (&)
adopt
11. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
comma-separated
class
instance
asterisk (*)
12. In a home building analogy a ____ is the blueprint and the object is the house
implementation
class
static typing
copy
13. 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.
+
runtime
delegate
zero
14. The _____ function can be used to print a message to the console
class
dispatch table
printf( )
Interface Builder
15. A protocol declared as a category usually as a category of the NSObject class.
structures
Binary
informal protocol
synchronous message
16. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
@implementation
ampersand (&)
nonatomic
procedures
17. An object in another application - one that's a potential receiver for a remote message.
delegate
namespace
NSString
remote object
18. This symbol denotes a method as being a class method
+
heap
ARC
null
19. 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
%@
implementation
conform
doubles
20. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.
adopt
class
selector
Unitary
21. 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.
long long
Protocols
encapsulation
superset
22. Property attribute that synthesizes both a getter and setter for the property
factory object
readwrite
link time
+
23. In a format string the place holder for an object is ______
weak
deprecated
%@
init
24. Discovering the class of an object at runtime rather than at compile time.
Encapsulation
dynamic allocation
ARC
dynamic typing
25. An object of unknown class. Interface is published through protocol declaration.
remote object
anonymous object
informal protocol
receiver
26. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
adopt
%@
delegates
27. Any class that's one step below another class in the inheritance hierarchy.
Interface Builder
subclass
double
unitary
28. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
-
cannot
superset
C operators
29. Square bracket syntax for calling a method
Edit>Refactor>Convert to Objective-C ARC
synchronous message
@implementation
[receiver message];
30. ______ operators take a single operand
Unitary
procedural programming language
adopt
AppKit
31. 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
instance method
class object
mutex
32. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
dangling pointer
cannot
mutex
procedural programming language
33. 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
ampersand (&)
nonatomic
method
34. A variable that points to the memory address of another value
pointer
static typing
class
precedence
35. ARC is susceptible to retain _____
cycles
id
implementation
protocol
36. Placing a ____ before a normal variable name gives it's address
null
ampersand (&)
properties
zero
37. Data types are divided into two main categories: integer and ______
floating-point
readonly
pointers
precedence
38. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
Encapsulation
delegate
distributed objects
39. 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.
null
Interface Builder
event
@implementation
40. The first index in an array is valued at ____
zero
-
dangling pointer
inheritance
41. An object that acts on behalf of another object.
delegate
namespace
pointers
AppKit
42. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
abstract superclass
instance method
anonymous object
43. 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.
dynamic allocation
%@
instance variable
namespace
44. A set of method definitions that is segregated from the rest of the class definition.
formal protocol
informal protocol
@interface
category
45. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
procedural programming language
designated
instance
structures
46. In the Objective-C language the declaration of a group of methods not associated with any particular class.
inheritance hierarchy
Unitary
protocol
%@
47. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings
category
Smalltalk
NSString
pointers
48. The process of setting or reading the value at an address pointed to by a pointer
designated
superset
dereference (dereferencing)
square brackets
49. 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.
+
developer intent
instance
nonatomic
50. A struct may contain multiple ____ consisting of different data types
NSObject
fields
NSString
framework