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. 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
memory leak
cycles
factory object
NSString
2. In Objective-C floats are more commonly used than ______
doubles
%@
comma-separated
AppKit
3. To destroy an object set the variable that points to it to _____
Enumerations
properties
Signed
nil
4. 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.
readwrite
informal protocol
Enumerations
reference counting
5. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
conform
superset
runtime
6. 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.
instance method
outlet
class object
Smalltalk
7. a++; is an example of using a _____ operator
designated initializer
unitary
delegates
@interface
8. 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.
dereference (dereferencing)
anonymous object
link time
delegates
9. A class is said to do this when it declares that it implements all the methods in the protocol.
NSObject
adopt
encapsulation
synchronous message
10. All objects are created on the _____
heap
receiver
interface
developer intent
11. Property attribute that causes the setter to store a strong reference to the assigned value
remote object
Enumerations
init
strong
12. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
precedence
square brackets
static typing
Signed
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.
fields
pointer
object
nil
14. Instance variables are optional in iOS if ________ are used
asynchronous message
designated initializer
chars
properties
15. ______ data types are always zero or greate
Protocols
Unsigned
init
inheritance hierarchy
16. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.
selector
link time
designated initializer
double
17. Any class that's one step below another class in the inheritance hierarchy.
subclass
-
binary
delegates
18. A method that can operate on class objects rather than instances of the class.
class method
memory leak
superset
square brackets
19. Objective-C's protocols are really about communicating _____ _______
Pointers
developer intent
cycles
null
20. The time after a program is launched and while it's running. Decisions made at during this time can be influenced by choices the user makes.
runtime
%@
class object
cannot
21. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
dereference (dereferencing)
%
Cocoa
cannot
22. Property attribute that synthesizes only a getter for the property
readonly
subclass
structures
runtime
23. A message sent from one application to an object in another application.
Smalltalk
C operators
chars
remote message
24. Same as class object. (first way to say it.)
unitary
properties
dereference (dereferencing)
factory
25. Placing a ____ before a normal variable name gives it's address
ampersand (&)
Binary
asterisk (*)
Unsigned
26. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.
dynamic typing
readonly
AppKit
event
27. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
Edit>Refactor>Convert to Objective-C ARC
init
inheritance
28. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
dispatch table
inheritance
static typing
29. The root class in Objective-C
deprecated
Edit>Refactor>Convert to Objective-C ARC
binary
NSObject
30. A ____ ____ is a situation where you free memory and then accidentally continue to use it
static typing
dangling pointer
encapsulation
Categories
31. _____ 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'.
inheritance
C operators
Encapsulation
properties
32. An architecture that facilitates communication between objects in different address spaces.
chars
struct
distributed objects
readwrite
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.
ampersand (&)
superclass
dynamic typing
unitary
34. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
null
instance
procedural programming language
init
35. A variable that points to the memory address of another value
unitary
memory leak
ampersand (&)
pointer
36. This symbol denotes a method as being an instance method
inheritance
remote message
-
formal protocol
37. 3 Common Float data types: float - _____ - CGFloat
dereference (dereferencing)
double
selector
developer intent
38. 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.
id
encapsulation
Binary
dynamic binding
39. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
square brackets
[receiver message];
readwrite
40. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
double
cycles
Interface Builder
41. Any method that can be used by an instance of a class rather than by the class object.
instance method
Cocoa
inheritance hierarchy
pointers
42. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
AppKit
distributed objects
inheritance hierarchy
43. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
assign
instance
unitary
44. In a home building analogy a ____ is the blueprint and the object is the house
reference counting
binary
printf( )
class
45. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
double
nonatomic
namespace
designated
46. 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.
subclass
inheritance hierarchy
instance
encapsulation
47. In object-oriented programming the object that is sent a message.
receiver
Smalltalk
procedures
Protocols
48. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
nil
framework
Protocols
assign
49. Same as class object. (second way to say it.)
fields
factory object
structures
compile time
50. In object-oriented programming a procedure that can be executed by an object.
method
Enumerations
factory object
framework