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. This symbol denotes a method as being a class method
procedures
compile time
precedence
+
2. A set of method definitions that is segregated from the rest of the class definition.
event
dynamic binding
category
receiver
3. Objective-C methods are called using ____ _____
outlet
protocol
square brackets
static typing
4. The root class in Objective-C
unitary
ampersand (&)
reference counting
NSObject
5. An object that acts on behalf of another object.
delegate
instance
Categories
nil
6. Square bracket syntax for calling a method
AppKit
anonymous object
[receiver message];
assign
7. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
instance variable
informal protocol
runtime
8. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
anonymous object
object
outlet
deprecated
9. _____ operators take 2 operands
readwrite
Binary
class method
delegates
10. Objective-C is a _____ of the C language
instance
developer intent
superset
selector
11. _____ 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'.
AppKit
-
formal protocol
Encapsulation
12. 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.
polymorphism
dynamic typing
id
implementation
13. In Objective-C floats are more commonly used than ______
doubles
receiver
remote message
memory leak
14. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
category
struct
asterisk (*)
attributes
15. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
Categories
factory object
runtime
precedence
16. 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
reference counting
compile time
ampersand (&)
17. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
object
message
Interface Builder
comma-separated
18. Property attribute that synthesizes both a getter and setter for the property
binary
struct
strong
readwrite
19. An object id with a value of 0.
-
Product>Profile>Leaks>Profile
nil
class object
20. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
distributed objects
strong
readwrite
Smalltalk
21. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
procedural programming language
designated initializer
object
Product>Profile>Leaks>Profile
22. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
[receiver message];
message expression
static typing
mutex
23. Initializer method traditionally begin with the _____ prefix
init
pointer
Unsigned
ampersand (&)
24. 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
subclass
conform
distributed objects
25. Any class that's one step below another class in the inheritance hierarchy.
Unsigned
Product>Profile>Leaks>Profile
subclass
formal protocol
26. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
cycles
fields
abstract superclass
@implementation
27. Placing a ____ before a normal variable name gives it's address
nil
compile time
ampersand (&)
deprecated
28. Finding the method implementation to invoke in response to the message
+
value
dynamic binding
namespace
29. 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
implementation
method
Protocols
30. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
deprecated
Protocols
weak
event
31. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
namespace
inheritance
pointer
AppKit
32. 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.
dispatch table
inheritance hierarchy
superset
Interface Builder
33. Same as class object. (first way to say it.)
readonly
factory
[receiver message];
procedures
34. An architecture that facilitates communication between objects in different address spaces.
Binary
compile time
%@
distributed objects
35. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
+
selector
asterisk (*)
36. This symbol denotes a method as being an instance method
designated initializer
[receiver message];
unitary
-
37. C-style strings always end with a ____ character
null
class method
instance
designated
38. Discovering the class of an object at runtime rather than at compile time.
superclass
dynamic typing
structures
chars
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.
weak
subclass
procedures
Interface Builder
40. C-style strings are stored in an array of _____
method
designated initializer
comma-separated
chars
41. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
encapsulation
class method
unitary
42. When creating a class header file you begin with the _____ keyword and close with the @end keyword
zero
nil
Binary
@interface
43. Objective-C objects should use strong or weak ______
readwrite
reference counting
floating-point
attributes
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
pointer
synchronous message
Encapsulation
remote object
45. A message sent from one application to an object in another application.
class
inheritance hierarchy
delegates
remote message
46. ____ provide a concise & elegant method for defining a discrete set of values
Signed
distributed objects
Enumerations
Unitary
47. Property attribute where the setter stores the assigned value but does not perform any memory management.
formal protocol
instance method
asynchronous message
assign
48. The first index in an array is valued at ____
category
zero
Product>Profile>Leaks>Profile
link time
49. A struct may contain multiple ____ consisting of different data types
runtime
properties
-
fields
50. In a home building analogy a ____ is the blueprint and the object is the house
class
Smalltalk
pointers
class method