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 variable that points to the memory address of another value
Cocoa
unitary
pointer
method
2. In the Objective-C language the declaration of a group of methods not associated with any particular class.
class method
delegates
protocol
pointer
3. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
@interface
copy
method
deprecated
4. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
attributes
procedural programming language
reference counting
long long
5. Same as class object. (second way to say it.)
binary
factory object
unitary
attributes
6. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
Pointers
attributes
namespace
polymorphism
7. In object-oriented programming the object that is sent a message.
encapsulation
NSString
receiver
pointer
8. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
[receiver message];
binary
message
unitary
9. In a format string the place holder for an object is ______
%@
nil
readonly
comma-separated
10. 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.
namespace
instance
runtime
abstract class
11. A compiler feature that provides automated memory management
synchronous message
ARC
weak
nil
12. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
reference counting
readonly
floating-point
class
13. An object that acts on behalf of another object.
Protocols
class
delegate
Signed
14. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
delegate
memory leak
cannot
framework
15. An architecture that facilitates communication between objects in different address spaces.
Product>Profile>Leaks>Profile
distributed objects
reference counting
[receiver message];
16. All objects are created on the _____
procedures
readonly
doubles
heap
17. 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.
class
reference counting
attributes
instance
18. 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.
informal protocol
Interface Builder
framework
-
19. In Objective-C floats are more commonly used than ______
Pointers
id
doubles
cycles
20. A method that can operate on class objects rather than instances of the class.
remote object
inheritance hierarchy
init
class method
21. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met
conform
square brackets
dynamic typing
Cocoa
22. 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
properties
designated initializer
asynchronous message
assignment
23. Property attribute that synthesizes only a getter for the property
message
readonly
namespace
ampersand (&)
24. ARC is susceptible to retain _____
cycles
factory object
static typing
message expression
25. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
message expression
Edit>Refactor>Convert to Objective-C ARC
precedence
26. This symbol denotes a method as being a class method
9
AppKit
+
dispatch table
27. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
dynamic binding
abstract class
@implementation
Unitary
28. _____ operators take 2 operands
%@
namespace
unitary
Binary
29. The process of setting or reading the value at an address pointed to by a pointer
printf( )
encapsulation
inheritance
dereference (dereferencing)
30. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
polymorphism
static typing
Unitary
compile time
31. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects
heap
Encapsulation
AppKit
structures
32. In object-oriented programming a procedure that can be executed by an object.
NSObject
AppKit
method
id
33. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
synchronous message
subclass
class
34. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
delegates
factory object
Cocoa
class
35. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
object
zero
Unsigned
Smalltalk
36. Any method that can be used by an instance of a class rather than by the class object.
Smalltalk
null
instance method
binary
37. Objective-C is a _____ of the C language
selector
dynamic binding
message expression
superset
38. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
comma-separated
assignment
Unsigned
static typing
39. 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.
formal protocol
Edit>Refactor>Convert to Objective-C ARC
synchronous message
dynamic allocation
40. C-style strings always end with a ____ character
Unitary
Interface Builder
conform
null
41. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
AppKit
assignment
abstract class
receiver
42. Data types are divided into two main categories: integer and ______
delegates
floating-point
zero
value
43. Xcode sequence to convert non-ARC apps to ARC
Edit>Refactor>Convert to Objective-C ARC
framework
Interface Builder
instance
44. 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).
%@
ampersand (&)
weak
message expression
45. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
polymorphism
dynamic typing
dispatch table
superset
46. 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.
%
protocol
factory object
abstract class
47. A protocol declared as a category usually as a category of the NSObject class.
zero
procedures
deprecated
informal protocol
48. 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.
designated
class object
instance
receiver
49. 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.
value
delegates
+
runtime
50. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
memory leak
asterisk (*)
message
designated initializer