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. ____ provide a concise & elegant method for defining a discrete set of values
delegates
Enumerations
distributed objects
runtime
2. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
message
Pointers
double
comma-separated
3. To destroy an object set the variable that points to it to _____
nil
event
instance variable
class
4. 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.
C operators
asynchronous message
factory
developer intent
5. An object in another application - one that's a potential receiver for a remote message.
synchronous message
remote object
%
strong
6. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
factory object
inheritance
formal protocol
cannot
7. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
abstract superclass
%@
Signed
8. Property attribute that synthesizes both a getter and setter for the property
class method
reference counting
informal protocol
readwrite
9. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
Enumerations
init
asterisk (*)
subclass
10. Objective-C's protocols are really about communicating _____ _______
runtime
dynamic typing
developer intent
message expression
11. 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
%
fields
structures
procedural programming language
12. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
Smalltalk
heap
NSString
deprecated
13. 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.
mutex
Interface Builder
factory
init
14. In a format string the place holder for an object is ______
%@
formal protocol
cycles
class
15. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
conform
outlet
dereference (dereferencing)
superclass
16. Finding the method implementation to invoke in response to the message
unitary
Interface Builder
dynamic binding
class object
17. _____ operators take 2 operands
dynamic binding
deprecated
Binary
double
18. 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.
instance
doubles
encapsulation
category
19. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
@interface
static typing
%
-
20. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
floating-point
precedence
fields
message
21. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
protocol
id
dynamic allocation
interface
22. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.
procedural programming language
class object
inheritance hierarchy
Unsigned
23. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
deprecated
interface
id
Smalltalk
24. An object id with a value of 0.
inheritance
nil
reference counting
dynamic allocation
25. 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.
namespace
link time
distributed objects
Cocoa
26. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
pointer
namespace
compile time
long long
27. Same as class object. (first way to say it.)
inheritance
Pointers
factory
Smalltalk
28. 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.
developer intent
class object
inheritance
subclass
29. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
class
long long
chars
dynamic binding
30. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
+
Binary
receiver
polymorphism
31. Property attribute that synthesizes accessors that are not thread safe
floating-point
struct
nonatomic
copy
32. In object-oriented programming a procedure that can be executed by an object.
method
instance
strong
distributed objects
33. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
C operators
value
outlet
34. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
developer intent
procedures
Cocoa
ampersand (&)
35. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
properties
Protocols
abstract superclass
inheritance hierarchy
36. An architecture that facilitates communication between objects in different address spaces.
object
protocol
distributed objects
ARC
37. 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.
memory leak
inheritance hierarchy
namespace
subclass
38. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
+
@implementation
-
abstract superclass
39. 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.
fields
object
anonymous object
class
40. 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.
comma-separated
compile time
binary
runtime
41. Square bracket syntax for calling a method
Pointers
square brackets
unitary
[receiver message];
42. 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.
designated
instance variable
id
printf( )
43. A message sent from one application to an object in another application.
superset
remote message
Product>Profile>Leaks>Profile
informal protocol
44. A variable that points to the memory address of another value
nil
class method
pointer
asynchronous message
45. C-style strings always end with a ____ character
null
remote object
protocol
superclass
46. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
long long
developer intent
dispatch table
Edit>Refactor>Convert to Objective-C ARC
47. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
link time
delegates
double
instance method
48. Three main categories of more complicated data structures:_______ - arrays and structs
cannot
pointers
encapsulation
Binary
49. An object that acts on behalf of another object.
runtime
delegate
dispatch table
-
50. a+b; is an example of using a _____ operator
asterisk (*)
null
binary
remote object