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 Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
superclass
dispatch table
cycles
factory object
2. Property attribute that causes the setter to store a strong reference to the assigned value
binary
procedural programming language
[receiver message];
strong
3. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
unitary
encapsulation
ampersand (&)
4. C-style strings always end with a ____ character
pointers
copy
null
ampersand (&)
5. 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.
informal protocol
designated initializer
abstract class
chars
6. 3 Common Float data types: float - _____ - CGFloat
double
dynamic typing
event
properties
7. a++; is an example of using a _____ operator
long long
link time
instance
unitary
8. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
event
interface
designated initializer
Unsigned
9. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
asterisk (*)
designated initializer
instance
interface
10. 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.
runtime
heap
encapsulation
compile time
11. _____ allow you to add new methods to existing classes
properties
ARC
procedural programming language
Categories
12. Same as class object. (second way to say it.)
structures
factory object
Signed
instance
13. A ____ ____ is a situation where you free memory and then accidentally continue to use it
compile time
dangling pointer
class
abstract class
14. Property attribute that causes the setter to store a copy of the assigned value
instance
[receiver message];
dynamic typing
copy
15. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
dereference (dereferencing)
receiver
comma-separated
dynamic allocation
16. A compiler feature that provides automated memory management
ARC
object
conform
instance
17. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
remote object
dispatch table
floating-point
18. 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.
adopt
AppKit
cycles
dereference (dereferencing)
19. Finding the method implementation to invoke in response to the message
memory leak
dynamic binding
class object
superclass
20. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
runtime
message expression
informal protocol
21. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
abstract superclass
class
subclass
22. Objective-C's protocols are really about communicating _____ _______
developer intent
@implementation
factory object
reference counting
23. The root class in Objective-C
printf( )
distributed objects
Edit>Refactor>Convert to Objective-C ARC
NSObject
24. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
encapsulation
message expression
polymorphism
[receiver message];
25. All objects are created on the _____
-
heap
9
method
26. A variable that points to the memory address of another value
[receiver message];
instance
pointer
remote object
27. 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.
value
namespace
doubles
+
28. Initializer method traditionally begin with the _____ prefix
asynchronous message
dispatch table
init
NSObject
29. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro
ARC
object
designated initializer
value
30. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
dereference (dereferencing)
designated
AppKit
delegates
31. An architecture that facilitates communication between objects in different address spaces.
floating-point
subclass
distributed objects
C operators
32. Property attribute that synthesizes both a getter and setter for the property
implementation
dispatch table
readwrite
Unitary
33. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.
Interface Builder
weak
+
structures
34. ARC is susceptible to retain _____
Cocoa
C operators
cycles
class object
35. ______ operators take a single operand
static typing
Unitary
value
superset
36. _____ 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'.
heap
developer intent
abstract class
Encapsulation
37. Three main categories of more complicated data structures:_______ - arrays and structs
class object
Interface Builder
struct
pointers
38. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
NSString
message
encapsulation
39. 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.
abstract superclass
Unitary
static typing
link time
40. Objective-C objects should use strong or weak ______
developer intent
instance method
delegate
attributes
41. A ____ _____ is where you forget to free up memory
runtime
message
precedence
memory leak
42. C-style strings are stored in an array of _____
category
chars
Encapsulation
attributes
43. The process of setting or reading the value at an address pointed to by a pointer
printf( )
dereference (dereferencing)
precedence
Cocoa
44. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
printf( )
pointers
Encapsulation
45. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
Edit>Refactor>Convert to Objective-C ARC
event
zero
interface
46. When creating a class header file you begin with the _____ keyword and close with the @end keyword
Edit>Refactor>Convert to Objective-C ARC
fields
@interface
Protocols
47. 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.
delegates
asynchronous message
instance variable
namespace
48. An object id with a value of 0.
static typing
deprecated
nil
Product>Profile>Leaks>Profile
49. 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.
method
selector
delegate
structures
50. This symbol denotes a method as being a class method
readonly
id
+
synchronous message