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 ____ _____ is where you forget to free up memory
memory leak
Unitary
superset
+
2. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
abstract class
Unitary
@interface
@implementation
3. Initializer method traditionally begin with the _____ prefix
designated initializer
init
nil
Categories
4. An object in another application - one that's a potential receiver for a remote message.
AppKit
chars
distributed objects
remote object
5. A protocol declared as a category usually as a category of the NSObject class.
developer intent
runtime
informal protocol
remote message
6. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
weak
dynamic typing
event
static typing
7. There are ____ fundamental building blocks in Objective-C
9
procedural programming language
square brackets
pointer
8. In Objective-C floats are more commonly used than ______
doubles
printf( )
distributed objects
reference counting
9. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
Product>Profile>Leaks>Profile
designated initializer
framework
heap
10. 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
interface
superclass
%
11. In object-oriented programming a procedure that can be executed by an object.
structures
method
properties
fields
12. 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.
attributes
id
runtime
class
13. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
NSString
inheritance
AppKit
14. 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
compile time
properties
15. An object that acts on behalf of another object.
delegate
abstract class
floating-point
inheritance hierarchy
16. Objective-C objects should use strong or weak ______
procedural programming language
Enumerations
dynamic typing
attributes
17. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.
cycles
class object
asynchronous message
NSObject
18. The process of setting or reading the value at an address pointed to by a pointer
assignment
namespace
category
dereference (dereferencing)
19. An object of unknown class. Interface is published through protocol declaration.
dangling pointer
anonymous object
dispatch table
informal protocol
20. Objective-C binds methods and arguments at _____ instead of compile time
runtime
assignment
Pointers
designated
21. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
Unsigned
dangling pointer
framework
class
22. Xcode sequence to examine an app for memory leaks or retain cycles
AppKit
designated
inheritance
Product>Profile>Leaks>Profile
23. In object-oriented programming the object that is sent a message.
Cocoa
receiver
event
class object
24. C-style strings always end with a ____ character
comma-separated
copy
null
Smalltalk
25. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
procedures
@implementation
Edit>Refactor>Convert to Objective-C ARC
comma-separated
26. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
ARC
struct
anonymous object
polymorphism
27. All objects are created on the _____
dispatch table
Smalltalk
heap
mutex
28. The most flexible C data type: ______
double
struct
receiver
chars
29. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
reference counting
weak
procedural programming language
id
30. Property attribute that synthesizes both a getter and setter for the property
designated initializer
remote message
-
readwrite
31. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
message expression
cycles
asterisk (*)
32. Any method that can be used by an instance of a class rather than by the class object.
instance method
double
category
NSObject
33. 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.
@implementation
procedural programming language
runtime
object
34. 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
procedural programming language
fields
NSString
id
35. 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).
abstract superclass
developer intent
NSObject
implementation
36. The root class in Objective-C
double
NSObject
instance variable
ARC
37. An architecture that facilitates communication between objects in different address spaces.
instance method
distributed objects
class
nil
38. A compiler feature that provides automated memory management
floating-point
ampersand (&)
%@
ARC
39. A struct may contain multiple ____ consisting of different data types
chars
fields
dynamic allocation
selector
40. 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
reference counting
dereference (dereferencing)
outlet
41. _____ allow you to add new methods to existing classes
inheritance hierarchy
delegate
asynchronous message
Categories
42. 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
protocol
Cocoa
attributes
43. ______ data types are always zero or greate
Unsigned
developer intent
adopt
remote object
44. 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.
dangling pointer
mutex
class method
AppKit
45. 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.
dynamic allocation
square brackets
polymorphism
assignment
46. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).
Product>Profile>Leaks>Profile
developer intent
message expression
compile time
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.
selector
instance variable
receiver
+
48. Three main categories of more complicated data structures:_______ - arrays and structs
procedural programming language
adopt
pointer
pointers
49. _____ 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
class
Product>Profile>Leaks>Profile
remote message
50. C-style strings are stored in an array of _____
nil
value
anonymous object
chars