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 part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
interface
delegate
%
readwrite
2. There are ____ fundamental building blocks in Objective-C
9
inheritance
floating-point
procedural programming language
3. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
Enumerations
framework
chars
Interface Builder
4. In the Objective-C language the declaration of a group of methods not associated with any particular class.
properties
protocol
value
instance method
5. 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.
mutex
Encapsulation
selector
polymorphism
6. Placing a ____ before a normal variable name gives it's address
instance method
Protocols
memory leak
ampersand (&)
7. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
ampersand (&)
zero
class object
8. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
readwrite
instance
cycles
%
9. This symbol denotes a method as being a class method
strong
remote message
+
instance method
10. 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.
message expression
instance variable
binary
Interface Builder
11. ____ provide a concise & elegant method for defining a discrete set of values
attributes
cannot
subclass
Enumerations
12. 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.
inheritance hierarchy
precedence
formal protocol
memory leak
13. _____ data types can be both positive and negative
null
Signed
@interface
inheritance hierarchy
14. An object of unknown class. Interface is published through protocol declaration.
dynamic binding
anonymous object
Signed
assignment
15. A message sent from one application to an object in another application.
remote message
abstract class
[receiver message];
subclass
16. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
unitary
C operators
doubles
superclass
17. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
cycles
method
Smalltalk
developer intent
18. _____ 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'.
Encapsulation
procedural programming language
chars
selector
19. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
assign
dispatch table
unitary
comma-separated
20. Property attribute that synthesizes only a getter for the property
class object
assign
@implementation
readonly
21. An object that acts on behalf of another object.
developer intent
delegate
%
superset
22. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
message
static typing
dereference (dereferencing)
polymorphism
23. 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.
nil
event
mutex
encapsulation
24. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
link time
inheritance
cannot
instance method
25. A struct may contain multiple ____ consisting of different data types
dynamic binding
fields
doubles
outlet
26. 3 Common Float data types: float - _____ - CGFloat
double
Interface Builder
remote object
init
27. An architecture that facilitates communication between objects in different address spaces.
C operators
distributed objects
superclass
class object
28. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
Cocoa
distributed objects
delegates
reference counting
29. 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).
protocol
remote object
method
message expression
30. _____ allow you to add new methods to existing classes
Categories
method
anonymous object
comma-separated
31. 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).
Protocols
Pointers
Unitary
implementation
32. A method that can operate on class objects rather than instances of the class.
developer intent
class method
inheritance
memory leak
33. 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.
receiver
zero
runtime
instance
34. Any class that's one step below another class in the inheritance hierarchy.
Edit>Refactor>Convert to Objective-C ARC
Signed
subclass
fields
35. 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.
weak
value
reference counting
assignment
36. 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
structures
Unsigned
assign
instance variable
37. Property attribute that causes the setter to store a copy of the assigned value
asterisk (*)
informal protocol
copy
deprecated
38. Property attribute that causes the setter to store a strong reference to the assigned value
cycles
dynamic allocation
strong
Edit>Refactor>Convert to Objective-C ARC
39. C-style strings always end with a ____ character
runtime
anonymous object
dispatch table
null
40. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
floating-point
deprecated
static typing
compile time
41. Data types are divided into two main categories: integer and ______
cannot
floating-point
polymorphism
conform
42. Objective-C objects should use strong or weak ______
attributes
+
struct
init
43. 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.
class method
struct
asynchronous message
asterisk (*)
44. 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
comma-separated
unitary
conform
value
45. ARC is susceptible to retain _____
Signed
cycles
ampersand (&)
binary
46. The root class in Objective-C
remote message
id
category
NSObject
47. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
square brackets
category
procedural programming language
48. Property attribute where the setter stores the assigned value but does not perform any memory management.
null
assign
dynamic typing
init
49. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
@implementation
Unsigned
encapsulation
50. Xcode sequence to examine an app for memory leaks or retain cycles
id
Product>Profile>Leaks>Profile
pointers
superclass