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. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
nil
dispatch table
adopt
2. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
factory
chars
runtime
3. _____ data types can be both positive and negative
procedural programming language
AppKit
Signed
Edit>Refactor>Convert to Objective-C ARC
4. A compiler feature that provides automated memory management
runtime
adopt
ARC
category
5. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
%@
nonatomic
static typing
Encapsulation
6. Property attribute that causes the setter to store a copy of the assigned value
Encapsulation
deprecated
informal protocol
copy
7. A message sent from one application to an object in another application.
%@
ampersand (&)
remote message
readwrite
8. In object-oriented programming a procedure that can be executed by an object.
method
inheritance hierarchy
link time
formal protocol
9. Data types are divided into two main categories: integer and ______
dereference (dereferencing)
floating-point
printf( )
superclass
10. An object in another application - one that's a potential receiver for a remote message.
remote object
readonly
long long
abstract class
11. An object that acts on behalf of another object.
%
delegate
inheritance
subclass
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.
struct
id
anonymous object
delegates
13. The most flexible C data type: ______
@implementation
ampersand (&)
struct
instance
14. All objects are created on the _____
structures
[receiver message];
heap
adopt
15. A struct may contain multiple ____ consisting of different data types
event
fields
reference counting
message
16. C-style strings are stored in an array of _____
Unitary
static typing
chars
compile time
17. 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
selector
cycles
designated initializer
distributed objects
18. To destroy an object set the variable that points to it to _____
+
framework
structures
nil
19. A protocol declared as a category usually as a category of the NSObject class.
precedence
informal protocol
adopt
square brackets
20. 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.
message expression
encapsulation
-
printf( )
21. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
AppKit
class
informal protocol
22. Initializer method traditionally begin with the _____ prefix
delegate
double
remote object
init
23. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
instance variable
nil
abstract superclass
value
24. In a home building analogy a ____ is the blueprint and the object is the house
class
Product>Profile>Leaks>Profile
nil
formal protocol
25. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
attributes
C operators
Protocols
AppKit
26. Square bracket syntax for calling a method
Categories
asterisk (*)
[receiver message];
dynamic typing
27. When creating a class header file you begin with the _____ keyword and close with the @end keyword
Categories
square brackets
mutex
@interface
28. 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.
procedural programming language
message
instance
mutex
29. 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.
chars
anonymous object
weak
inheritance hierarchy
30. 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.
conform
dereference (dereferencing)
mutex
link time
31. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
AppKit
Protocols
link time
32. In a format string the place holder for an object is ______
%@
designated initializer
message expression
Binary
33. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
memory leak
AppKit
implementation
34. The first index in an array is valued at ____
zero
method
cannot
instance
35. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
factory
@implementation
Categories
cannot
36. A set of method definitions that is segregated from the rest of the class definition.
category
properties
long long
message
37. ____ provide a concise & elegant method for defining a discrete set of values
Pointers
properties
Enumerations
adopt
38. 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.
message
formal protocol
dynamic allocation
Encapsulation
39. _____ allow you to add new methods to existing classes
Categories
strong
class object
protocol
40. 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.
delegate
dereference (dereferencing)
comma-separated
runtime
41. A ____ _____ is where you forget to free up memory
chars
memory leak
floating-point
static typing
42. 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.
structures
superclass
outlet
Edit>Refactor>Convert to Objective-C ARC
43. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
anonymous object
Pointers
message
44. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
event
procedural programming language
readwrite
dangling pointer
45. Same as class object. (first way to say it.)
Unsigned
+
factory
protocol
46. The process of setting or reading the value at an address pointed to by a pointer
message expression
comma-separated
dereference (dereferencing)
procedural programming language
47. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
dynamic typing
assignment
Encapsulation
event
48. An object id with a value of 0.
nil
cycles
@implementation
selector
49. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
asterisk (*)
delegates
developer intent
50. Property attribute that causes the setter to store a strong reference to the assigned value
copy
assignment
strong
conform