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 time when source code is compiled; constrained by the amount and kind of information encoded in source files.
AppKit
weak
compile time
remote message
2. a++; is an example of using a _____ operator
fields
receiver
unitary
anonymous object
3. Same as class object. (second way to say it.)
abstract class
fields
factory object
readwrite
4. To destroy an object set the variable that points to it to _____
readwrite
nil
copy
readonly
5. Any method that can be used by an instance of a class rather than by the class object.
zero
dynamic binding
polymorphism
instance method
6. In object-oriented programming a procedure that can be executed by an object.
method
dispatch table
memory leak
distributed objects
7. Xcode sequence to examine an app for memory leaks or retain cycles
receiver
instance method
Product>Profile>Leaks>Profile
ARC
8. 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).
superset
developer intent
nil
implementation
9. A set of method definitions that is segregated from the rest of the class definition.
unitary
informal protocol
category
@implementation
10. Xcode sequence to convert non-ARC apps to ARC
binary
attributes
Edit>Refactor>Convert to Objective-C ARC
long long
11. 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.
readonly
developer intent
reference counting
runtime
12. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
event
instance
doubles
formal protocol
13. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
interface
dynamic allocation
floating-point
delegates
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.
inheritance
selector
square brackets
AppKit
15. ______ data types are always zero or greate
polymorphism
compile time
Unsigned
memory leak
16. Property attribute that synthesizes accessors that are not thread safe
category
dynamic allocation
dereference (dereferencing)
nonatomic
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.
abstract class
doubles
factory
reference counting
18. The root class in Objective-C
Edit>Refactor>Convert to Objective-C ARC
NSObject
chars
inheritance hierarchy
19. In a format string the place holder for an object is ______
%@
double
Unitary
C operators
20. 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
deprecated
structures
pointer
superclass
21. An object of unknown class. Interface is published through protocol declaration.
null
weak
anonymous object
delegate
22. 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.
Edit>Refactor>Convert to Objective-C ARC
assign
Interface Builder
struct
23. Objective-C objects should use strong or weak ______
dynamic allocation
Encapsulation
Edit>Refactor>Convert to Objective-C ARC
attributes
24. 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
reference counting
dynamic allocation
designated initializer
null
25. An architecture that facilitates communication between objects in different address spaces.
properties
distributed objects
-
init
26. 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.
cannot
instance variable
subclass
properties
27. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
Encapsulation
static typing
runtime
28. When creating a class header file you begin with the _____ keyword and close with the @end keyword
anonymous object
runtime
@interface
attributes
29. A protocol declared as a category usually as a category of the NSObject class.
dispatch table
receiver
selector
informal protocol
30. This symbol denotes a method as being a class method
chars
distributed objects
+
polymorphism
31. A message sent from one application to an object in another application.
assignment
mutex
remote message
+
32. Placing a ____ before a normal variable name gives it's address
ampersand (&)
readonly
doubles
factory object
33. A variable that points to the memory address of another value
object
id
memory leak
pointer
34. 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).
pointer
message expression
asynchronous message
dynamic typing
35. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
floating-point
framework
chars
NSString
36. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
procedures
class
static typing
Smalltalk
37. Square bracket syntax for calling a method
[receiver message];
runtime
instance method
receiver
38. The first index in an array is valued at ____
remote object
zero
class
message expression
39. 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.
factory object
informal protocol
mutex
encapsulation
40. 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.
designated initializer
Unsigned
formal protocol
factory
41. A method that can operate on class objects rather than instances of the class.
struct
class method
inheritance
distributed objects
42. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
dynamic typing
method
Cocoa
43. Another name for a class that's defined solely so that other classes can inherit from it.
instance
abstract superclass
Interface Builder
instance method
44. Property attribute where the setter stores the assigned value but does not perform any memory management.
asynchronous message
assign
fields
-
45. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
abstract superclass
class
Product>Profile>Leaks>Profile
@interface
46. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
Edit>Refactor>Convert to Objective-C ARC
Binary
procedures
structures
47. Objective-C is a _____ of the C language
dangling pointer
superset
Cocoa
assignment
48. a+b; is an example of using a _____ operator
double
abstract superclass
binary
memory leak
49. 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.
mutex
binary
AppKit
abstract class
50. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
procedural programming language
protocol
subclass
comma-separated