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 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
+
dereference (dereferencing)
receiver
assignment
2. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
id
method
polymorphism
heap
3. _____ 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'.
object
class method
NSString
Encapsulation
4. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
informal protocol
adopt
namespace
5. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
precedence
distributed objects
event
link time
6. A set of method definitions that is segregated from the rest of the class definition.
category
double
Pointers
protocol
7. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
instance method
Pointers
Protocols
informal protocol
8. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
inheritance hierarchy
synchronous message
comma-separated
subclass
9. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
reference counting
nonatomic
@interface
procedural programming language
10. To destroy an object set the variable that points to it to _____
Smalltalk
formal protocol
nil
compile time
11. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
properties
inheritance
interface
value
12. 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
instance variable
selector
conform
synchronous message
13. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
polymorphism
anonymous object
id
14. Same as class object. (first way to say it.)
reference counting
double
superclass
factory
15. _____ allow you to add new methods to existing classes
Categories
runtime
inheritance
Unitary
16. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
+
init
ARC
17. The root class in Objective-C
NSObject
cycles
inheritance hierarchy
procedural programming language
18. A message sent from one application to an object in another application.
Smalltalk
AppKit
remote message
object
19. 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.
Unsigned
dereference (dereferencing)
category
reference counting
20. ______ operators take a single operand
Unitary
+
outlet
pointers
21. An object id with a value of 0.
Pointers
C operators
runtime
nil
22. Any class that's one step below another class in the inheritance hierarchy.
distributed objects
Interface Builder
subclass
NSString
23. Objective-C binds methods and arguments at _____ instead of compile time
mutex
informal protocol
Protocols
runtime
24. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
Binary
[receiver message];
asterisk (*)
framework
25. In object-oriented programming a procedure that can be executed by an object.
runtime
binary
method
dynamic binding
26. The _____ function can be used to print a message to the console
printf( )
@implementation
strong
delegates
27. Property attribute that causes the setter to store a strong reference to the assigned value
instance
struct
Signed
strong
28. A struct may contain multiple ____ consisting of different data types
fields
developer intent
doubles
conform
29. Three main categories of more complicated data structures:_______ - arrays and structs
instance variable
Unsigned
pointers
protocol
30. An object in another application - one that's a potential receiver for a remote message.
remote object
framework
precedence
structures
31. Objective-C objects should use strong or weak ______
pointers
attributes
asterisk (*)
delegates
32. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
nil
[receiver message];
precedence
superclass
33. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
designated initializer
factory
memory leak
34. 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.
object
pointer
copy
-
35. Finding the method implementation to invoke in response to the message
square brackets
dynamic binding
nil
NSObject
36. An architecture that facilitates communication between objects in different address spaces.
strong
distributed objects
factory
receiver
37. A ____ _____ is where you forget to free up memory
assign
instance method
memory leak
dynamic binding
38. 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
NSString
implementation
synchronous message
mutex
39. Symbol used to denote a placeholder in a format string
receiver
message expression
%
deprecated
40. 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).
compile time
implementation
abstract superclass
structures
41. An object that acts on behalf of another object.
delegate
developer intent
selector
%
42. Objective-C's protocols are really about communicating _____ _______
weak
delegates
readonly
developer intent
43. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
class
dynamic allocation
Unsigned
44. a+b; is an example of using a _____ operator
Encapsulation
binary
copy
delegates
45. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
polymorphism
delegate
Pointers
46. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
struct
compile time
reference counting
message
47. _____ data types can be both positive and negative
assign
comma-separated
encapsulation
Signed
48. 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.
doubles
inheritance hierarchy
developer intent
class
49. ______ data types are always zero or greate
Unsigned
static typing
message
doubles
50. In the Objective-C language the declaration of a group of methods not associated with any particular class.
procedural programming language
protocol
comma-separated
NSString