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 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.
%
fields
reference counting
mutex
2. In a format string the place holder for an object is ______
interface
%@
unitary
pointer
3. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
message
dynamic allocation
precedence
C operators
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.
instance method
interface
message
outlet
5. Another name for a class that's defined solely so that other classes can inherit from it.
mutex
dynamic binding
static typing
abstract superclass
6. Placing a ____ before a normal variable name gives it's address
@implementation
framework
Encapsulation
ampersand (&)
7. The most flexible C data type: ______
struct
floating-point
precedence
assign
8. 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.
Enumerations
encapsulation
-
pointers
9. A variable that points to the memory address of another value
printf( )
link time
pointer
strong
10. Objective-C's protocols are really about communicating _____ _______
class
asterisk (*)
selector
developer intent
11. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
Categories
Protocols
runtime
12. 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.
instance
dereference (dereferencing)
factory object
Enumerations
13. Objective-C is a _____ of the C language
NSObject
message expression
developer intent
superset
14. Property attribute that synthesizes both a getter and setter for the property
double
square brackets
readwrite
null
15. C-style strings are stored in an array of _____
chars
nonatomic
instance
category
16. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
delegate
nil
deprecated
static typing
17. Property attribute that causes the setter to store a strong reference to the assigned value
fields
strong
receiver
printf( )
18. Property attribute that synthesizes accessors that are not thread safe
designated
procedural programming language
protocol
nonatomic
19. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
Smalltalk
+
class method
20. Discovering the class of an object at runtime rather than at compile time.
abstract superclass
delegate
dynamic typing
init
21. Objective-C objects should use strong or weak ______
NSString
ampersand (&)
mutex
attributes
22. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
Product>Profile>Leaks>Profile
inheritance hierarchy
NSObject
23. Property attribute that synthesizes only a getter for the property
encapsulation
zero
compile time
readonly
24. _____ allow indirect access and modification of a variable's value.
deprecated
Pointers
interface
dereference (dereferencing)
25. The root class in Objective-C
init
adopt
outlet
NSObject
26. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
Enumerations
attributes
instance
outlet
27. Initializer method traditionally begin with the _____ prefix
namespace
init
Categories
selector
28. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
precedence
@implementation
Binary
developer intent
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).
comma-separated
implementation
copy
@interface
30. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
comma-separated
Smalltalk
%@
Binary
31. Finding the method implementation to invoke in response to the message
dynamic binding
doubles
%
receiver
32. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
printf( )
weak
unitary
33. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
nonatomic
superclass
polymorphism
Binary
34. Symbol used to denote a placeholder in a format string
Unitary
%
interface
precedence
35. ______ data types are always zero or greate
Unsigned
inheritance hierarchy
remote object
procedural programming language
36. This symbol denotes a method as being an instance method
Binary
NSString
-
structures
37. In object-oriented programming a procedure that can be executed by an object.
method
Cocoa
distributed objects
+
38. A set of method definitions that is segregated from the rest of the class definition.
category
subclass
structures
event
39. 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.
Pointers
designated
abstract class
asterisk (*)
40. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
implementation
factory object
assignment
41. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings
framework
Edit>Refactor>Convert to Objective-C ARC
factory object
NSString
42. A message sent from one application to an object in another application.
remote message
AppKit
runtime
properties
43. 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.
class
dynamic binding
struct
instance variable
44. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
class
procedural programming language
value
zero
45. In object-oriented programming the object that is sent a message.
NSObject
receiver
9
struct
46. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
@interface
designated initializer
instance variable
47. An object in another application - one that's a potential receiver for a remote message.
remote object
encapsulation
copy
value
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.
inheritance hierarchy
class
long long
Signed
49. 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
strong
conform
message
readwrite
50. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.
Pointers
C operators
dynamic allocation
printf( )