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 message sent from one application to an object in another application.
remote message
selector
factory object
struct
2. Placing a ____ before a normal variable name gives it's address
object
deprecated
procedures
ampersand (&)
3. In the Objective-C language the declaration of a group of methods not associated with any particular class.
precedence
@interface
protocol
procedural programming language
4. 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
developer intent
NSString
designated initializer
namespace
5. 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
remote message
unitary
conform
distributed objects
6. Objective-C methods are called using ____ _____
ampersand (&)
informal protocol
pointers
square brackets
7. _____ data types can be both positive and negative
-
id
message
Signed
8. There are ____ fundamental building blocks in Objective-C
instance method
9
mutex
@interface
9. Property attribute that causes the setter to store a copy of the assigned value
superclass
copy
informal protocol
heap
10. In a home building analogy a ____ is the blueprint and the object is the house
encapsulation
class
Pointers
class
11. A set of method definitions that is segregated from the rest of the class definition.
category
cycles
selector
binary
12. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
copy
remote object
double
deprecated
13. 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.
Unitary
class
object
init
14. In Objective-C floats are more commonly used than ______
doubles
method
deprecated
strong
15. To destroy an object set the variable that points to it to _____
nil
protocol
[receiver message];
method
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.
[receiver message];
superclass
doubles
reference counting
17. a++; is an example of using a _____ operator
floating-point
chars
unitary
[receiver message];
18. An object id with a value of 0.
Pointers
long long
runtime
nil
19. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.
Categories
link time
designated
category
20. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
outlet
inheritance
ARC
mutex
21. 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.
Product>Profile>Leaks>Profile
outlet
abstract class
Cocoa
22. Instance variables are optional in iOS if ________ are used
Smalltalk
link time
properties
delegate
23. The process of setting or reading the value at an address pointed to by a pointer
pointer
compile time
reference counting
dereference (dereferencing)
24. C-style strings are stored in an array of _____
instance
chars
nonatomic
superclass
25. A logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.
C operators
namespace
binary
doubles
26. All objects are created on the _____
heap
delegates
binary
square brackets
27. 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.
readonly
instance variable
Encapsulation
class method
28. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
formal protocol
@implementation
readonly
interface
29. An object of unknown class. Interface is published through protocol declaration.
message expression
value
anonymous object
encapsulation
30. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
selector
value
remote message
pointers
31. Initializer method traditionally begin with the _____ prefix
procedural programming language
deprecated
init
square brackets
32. Same as class object. (second way to say it.)
factory object
comma-separated
nil
remote message
33. In object-oriented programming a procedure that can be executed by an object.
%@
instance variable
method
attributes
34. 3 Common Float data types: float - _____ - CGFloat
9
encapsulation
instance
double
35. C-style strings always end with a ____ character
Cocoa
copy
null
designated initializer
36. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
dynamic allocation
Interface Builder
informal protocol
static typing
37. 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
memory leak
C operators
structures
properties
38. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
runtime
nil
synchronous message
39. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
Product>Profile>Leaks>Profile
C operators
polymorphism
class
40. a+b; is an example of using a _____ operator
implementation
binary
receiver
class object
41. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
designated
runtime
protocol
%
42. This symbol denotes a method as being a class method
Edit>Refactor>Convert to Objective-C ARC
abstract class
+
method
43. 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
Smalltalk
informal protocol
readwrite
44. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
interface
instance variable
dispatch table
anonymous object
45. _____ allow you to add new methods to existing classes
dangling pointer
Categories
comma-separated
structures
46. 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.
formal protocol
designated initializer
precedence
pointer
47. Property attribute that synthesizes both a getter and setter for the property
cannot
readwrite
pointers
runtime
48. A variable that points to the memory address of another value
pointer
null
Signed
C operators
49. Objective-C objects should use strong or weak ______
heap
dynamic typing
-
attributes
50. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
superclass
selector
AppKit
receiver