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. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
doubles
Protocols
conform
asynchronous message
2. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
C operators
procedural programming language
remote message
inheritance
3. a+b; is an example of using a _____ operator
reference counting
framework
NSString
binary
4. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
selector
conform
Signed
5. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
-
nil
@implementation
inheritance
6. 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.
adopt
long long
reference counting
class object
7. Property attribute that synthesizes both a getter and setter for the property
readwrite
AppKit
attributes
compile time
8. Property attribute that causes the setter to store a copy of the assigned value
cannot
interface
class
copy
9. An object of unknown class. Interface is published through protocol declaration.
structures
anonymous object
nonatomic
Pointers
10. A ____ _____ is where you forget to free up memory
nonatomic
informal protocol
@implementation
memory leak
11. _____ data types can be both positive and negative
pointers
Edit>Refactor>Convert to Objective-C ARC
encapsulation
Signed
12. Xcode sequence to examine an app for memory leaks or retain cycles
id
assignment
properties
Product>Profile>Leaks>Profile
13. 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
designated initializer
dereference (dereferencing)
cannot
readwrite
14. A message sent from one application to an object in another application.
protocol
deprecated
remote message
printf( )
15. 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.
id
class object
receiver
attributes
16. Objective-C methods are called using ____ _____
structures
square brackets
precedence
9
17. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
cannot
doubles
procedures
value
18. 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.
ampersand (&)
synchronous message
method
selector
19. Property attribute that synthesizes accessors that are not thread safe
comma-separated
nonatomic
class
pointers
20. In the Objective-C language the declaration of a group of methods not associated with any particular class.
instance
protocol
informal protocol
init
21. 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).
9
struct
message expression
properties
22. 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.
struct
@implementation
AppKit
structures
23. A variable that points to the memory address of another value
designated
readonly
pointer
event
24. 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.
adopt
class
instance method
outlet
25. To destroy an object set the variable that points to it to _____
compile time
encapsulation
nil
static typing
26. 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).
implementation
class method
class
ARC
27. Property attribute where the setter stores the assigned value but does not perform any memory management.
delegate
readonly
@implementation
assign
28. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
formal protocol
Binary
designated
long long
29. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
Pointers
floating-point
designated initializer
30. _____ allow you to add new methods to existing classes
@interface
@implementation
Categories
class object
31. Objective-C's protocols are really about communicating _____ _______
developer intent
Enumerations
dispatch table
dynamic typing
32. _____ 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'.
dereference (dereferencing)
informal protocol
runtime
Encapsulation
33. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
nil
framework
long long
object
34. The _____ function can be used to print a message to the console
Smalltalk
printf( )
Enumerations
Unsigned
35. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Smalltalk
Cocoa
anonymous object
class method
36. Same as class object. (first way to say it.)
event
+
abstract superclass
factory
37. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
subclass
NSObject
procedural programming language
precedence
38. _____ allow indirect access and modification of a variable's value.
delegates
class
factory object
Pointers
39. 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.
delegates
Signed
Interface Builder
dynamic binding
40. The process of setting or reading the value at an address pointed to by a pointer
%
anonymous object
init
dereference (dereferencing)
41. a++; is an example of using a _____ operator
@interface
unitary
memory leak
init
42. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
weak
receiver
square brackets
43. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
square brackets
heap
object
44. 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.
developer intent
Signed
instance variable
%
45. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
Binary
receiver
framework
cannot
46. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
protocol
static typing
event
procedures
47. The most flexible C data type: ______
class object
inheritance
struct
Product>Profile>Leaks>Profile
48. Same as class object. (second way to say it.)
fields
factory object
cannot
Smalltalk
49. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
runtime
nonatomic
message
doubles
50. An object id with a value of 0.
nil
synchronous message
dangling pointer
abstract class