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 struct may contain multiple ____ consisting of different data types
Categories
Edit>Refactor>Convert to Objective-C ARC
fields
inheritance hierarchy
2. In a format string the place holder for an object is ______
%@
init
@interface
remote message
3. An object id with a value of 0.
memory leak
instance variable
nil
%
4. Objective-C is a _____ of the C language
distributed objects
superset
Binary
class
5. 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.
link time
method
memory leak
instance
6. _____ allow you to add new methods to existing classes
Categories
asynchronous message
reference counting
struct
7. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
outlet
doubles
@implementation
mutex
8. Xcode sequence to examine an app for memory leaks or retain cycles
mutex
dispatch table
structures
Product>Profile>Leaks>Profile
9. In the Objective-C language the declaration of a group of methods not associated with any particular class.
implementation
protocol
chars
square brackets
10. Property attribute that synthesizes accessors that are not thread safe
ampersand (&)
floating-point
nonatomic
factory
11. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
inheritance
Cocoa
factory
link time
12. An object that acts on behalf of another object.
C operators
delegate
abstract superclass
strong
13. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
abstract class
%@
framework
14. A variable that points to the memory address of another value
factory
compile time
runtime
pointer
15. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
long long
Categories
anonymous object
deprecated
16. 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
interface
Product>Profile>Leaks>Profile
selector
conform
17. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
subclass
class
inheritance
18. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
formal protocol
Cocoa
cannot
instance method
19. 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
ARC
mutex
NSString
AppKit
20. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
category
message
chars
conform
21. _____ allow indirect access and modification of a variable's value.
Pointers
framework
Unsigned
object
22. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
method
printf( )
formal protocol
inheritance
23. A message sent from one application to an object in another application.
+
synchronous message
remote message
procedures
24. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
heap
polymorphism
abstract class
zero
25. Finding the method implementation to invoke in response to the message
formal protocol
dynamic binding
NSObject
distributed objects
26. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
runtime
outlet
Product>Profile>Leaks>Profile
27. An object of unknown class. Interface is published through protocol declaration.
anonymous object
strong
asynchronous message
Cocoa
28. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
double
protocol
remote message
29. 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
assignment
abstract superclass
object
30. 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
Unsigned
struct
ARC
31. 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.
conform
memory leak
mutex
runtime
32. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
interface
class object
instance
namespace
33. _____ data types can be both positive and negative
Signed
instance method
fields
Pointers
34. Property attribute that causes the setter to store a copy of the assigned value
namespace
@implementation
protocol
copy
35. The most flexible C data type: ______
instance
NSString
struct
readwrite
36. Placing a ____ before a normal variable name gives it's address
distributed objects
instance variable
inheritance
ampersand (&)
37. 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.
reference counting
formal protocol
class
id
38. Objective-C binds methods and arguments at _____ instead of compile time
9
anonymous object
dynamic allocation
runtime
39. 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
developer intent
dangling pointer
abstract class
structures
40. 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.
Interface Builder
procedures
strong
Product>Profile>Leaks>Profile
41. _____ operators take 2 operands
synchronous message
runtime
Binary
NSObject
42. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
square brackets
conform
designated
weak
43. Property attribute that synthesizes only a getter for the property
readonly
synchronous message
Enumerations
object
44. 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
inheritance hierarchy
%@
synchronous message
instance
45. Objective-C's protocols are really about communicating _____ _______
%@
procedural programming language
informal protocol
developer intent
46. 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.
delegate
dynamic allocation
instance
chars
47. There are ____ fundamental building blocks in Objective-C
9
Unsigned
dispatch table
pointer
48. The first index in an array is valued at ____
nonatomic
Enumerations
abstract class
zero
49. ______ operators take a single operand
framework
Unitary
printf( )
chars
50. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
Encapsulation
%
procedures