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+b; is an example of using a _____ operator
runtime
conform
binary
dangling pointer
2. An architecture that facilitates communication between objects in different address spaces.
long long
double
distributed objects
abstract class
3. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
dynamic typing
compile time
nonatomic
4. A protocol declared as a category usually as a category of the NSObject class.
floating-point
informal protocol
asterisk (*)
formal protocol
5. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
Encapsulation
anonymous object
binary
6. a++; is an example of using a _____ operator
category
AppKit
static typing
unitary
7. 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.
event
instance variable
class object
dereference (dereferencing)
8. ARC is susceptible to retain _____
static typing
Pointers
cycles
conform
9. Objective-C's protocols are really about communicating _____ _______
compile time
developer intent
unitary
dereference (dereferencing)
10. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
fields
Product>Profile>Leaks>Profile
chars
Smalltalk
11. 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.
precedence
properties
asynchronous message
outlet
12. A set of method definitions that is segregated from the rest of the class definition.
category
formal protocol
remote message
dynamic typing
13. ______ data types are always zero or greate
Unsigned
struct
Protocols
long long
14. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
category
dynamic binding
ARC
superclass
15. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
selector
strong
nonatomic
message
16. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
conform
superset
procedural programming language
17. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
binary
9
distributed objects
cannot
18. A class is said to do this when it declares that it implements all the methods in the protocol.
synchronous message
adopt
developer intent
dynamic allocation
19. Objective-C is a _____ of the C language
superset
init
class method
%@
20. 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
receiver
binary
Protocols
21. To destroy an object set the variable that points to it to _____
nil
message
AppKit
runtime
22. A compiler feature that provides automated memory management
floating-point
delegates
pointer
ARC
23. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
NSObject
link time
dispatch table
dangling pointer
24. A message sent from one application to an object in another application.
instance
structures
interface
remote message
25. 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.
conform
Interface Builder
Pointers
distributed objects
26. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
class
mutex
interface
27. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
encapsulation
implementation
cannot
28. Instance variables are optional in iOS if ________ are used
Smalltalk
instance method
long long
properties
29. In a format string the place holder for an object is ______
instance method
memory leak
%@
delegate
30. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
abstract superclass
class
Protocols
pointers
31. Property attribute that causes the setter to store a strong reference to the assigned value
id
Product>Profile>Leaks>Profile
Protocols
strong
32. Square bracket syntax for calling a method
nil
developer intent
[receiver message];
+
33. Symbol used to denote a placeholder in a format string
%
weak
strong
dynamic allocation
34. 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
designated initializer
memory leak
superset
Unsigned
35. 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
conform
cannot
class
deprecated
36. Objective-C objects should use strong or weak ______
message
remote object
memory leak
attributes
37. 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.
superclass
message
link time
designated initializer
38. 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.
distributed objects
NSString
chars
instance
39. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
instance variable
designated
instance method
printf( )
40. _____ allow indirect access and modification of a variable's value.
Pointers
nil
NSObject
message expression
41. Finding the method implementation to invoke in response to the message
factory
nonatomic
class
dynamic binding
42. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
mutex
receiver
heap
comma-separated
43. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
Pointers
dereference (dereferencing)
heap
44. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
Cocoa
floating-point
event
45. _____ operators take 2 operands
@implementation
receiver
asynchronous message
Binary
46. An object of unknown class. Interface is published through protocol declaration.
anonymous object
class
dynamic binding
AppKit
47. Initializer method traditionally begin with the _____ prefix
readonly
synchronous message
compile time
init
48. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
encapsulation
static typing
class method
compile time
49. 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).
AppKit
fields
abstract superclass
implementation
50. 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.
pointer
dynamic binding
runtime
-