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 _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
id
category
deprecated
procedural programming language
2. Same as class object. (second way to say it.)
instance variable
factory object
message expression
[receiver message];
3. 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
category
conform
Smalltalk
link time
4. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.
outlet
properties
fields
class method
5. 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.
instance variable
NSString
remote object
synchronous message
6. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
adopt
strong
designated
polymorphism
7. Property attribute that causes the setter to store a strong reference to the assigned value
precedence
strong
nonatomic
abstract superclass
8. Discovering the class of an object at runtime rather than at compile time.
heap
asynchronous message
@interface
dynamic typing
9. Property attribute that synthesizes accessors that are not thread safe
reference counting
nonatomic
Binary
Unsigned
10. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
+
instance
NSString
11. 3 Common Float data types: float - _____ - CGFloat
double
class object
mutex
delegates
12. ______ operators take a single operand
printf( )
Unitary
remote message
double
13. A method that can operate on class objects rather than instances of the class.
designated
class method
delegate
procedures
14. A variable that points to the memory address of another value
remote message
delegates
Categories
pointer
15. 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.
anonymous object
instance
selector
double
16. 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.
printf( )
abstract class
strong
cycles
17. In object-oriented programming the object that is sent a message.
developer intent
receiver
polymorphism
readwrite
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
@implementation
object
informal protocol
19. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
delegates
Categories
runtime
static typing
20. _____ operators take 2 operands
implementation
inheritance
polymorphism
Binary
21. A ____ _____ is where you forget to free up memory
informal protocol
%@
distributed objects
memory leak
22. ______ data types are always zero or greate
distributed objects
struct
Unsigned
outlet
23. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
ARC
protocol
event
inheritance hierarchy
24. Any class that's one step below another class in the inheritance hierarchy.
dynamic typing
@implementation
subclass
struct
25. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
class method
Binary
pointers
26. All objects are created on the _____
assign
dynamic typing
abstract class
heap
27. The most flexible C data type: ______
framework
%@
inheritance
struct
28. 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).
superset
AppKit
implementation
Smalltalk
29. 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.
Protocols
cannot
[receiver message];
id
30. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
strong
Smalltalk
Product>Profile>Leaks>Profile
mutex
31. The process of setting or reading the value at an address pointed to by a pointer
id
ARC
Edit>Refactor>Convert to Objective-C ARC
dereference (dereferencing)
32. 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.
NSObject
selector
object
reference counting
33. 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
readonly
synchronous message
Unsigned
attributes
34. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
comma-separated
Cocoa
nonatomic
method
35. Square bracket syntax for calling a method
dynamic allocation
[receiver message];
attributes
runtime
36. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
Pointers
class object
Encapsulation
message
37. 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.
conform
assign
inheritance hierarchy
designated
38. In a home building analogy a ____ is the blueprint and the object is the house
init
class
pointers
factory
39. In a format string the place holder for an object is ______
%@
interface
designated initializer
synchronous message
40. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
id
weak
Smalltalk
framework
41. _____ allow you to add new methods to existing classes
Protocols
implementation
factory
Categories
42. Objective-C's protocols are really about communicating _____ _______
delegate
delegates
long long
developer intent
43. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
%
framework
NSObject
runtime
44. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
runtime
polymorphism
nil
zero
45. 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.
AppKit
namespace
class object
double
46. Objective-C methods are called using ____ _____
printf( )
nil
square brackets
deprecated
47. There are ____ fundamental building blocks in Objective-C
copy
9
Edit>Refactor>Convert to Objective-C ARC
compile time
48. An object of unknown class. Interface is published through protocol declaration.
anonymous object
link time
NSObject
Signed
49. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
attributes
object
compile time
Protocols
50. Objective-C objects should use strong or weak ______
fields
subclass
attributes
delegate