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. This symbol denotes a method as being an instance method
assign
runtime
-
encapsulation
2. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
id
runtime
message
double
3. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica
dereference (dereferencing)
NSObject
protocol
synchronous message
4. Property attribute where the setter stores the assigned value but does not perform any memory management.
superclass
asterisk (*)
assign
fields
5. An architecture that facilitates communication between objects in different address spaces.
outlet
chars
distributed objects
AppKit
6. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
designated
inheritance
copy
7. 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.
dangling pointer
link time
runtime
instance
8. Square bracket syntax for calling a method
anonymous object
dispatch table
[receiver message];
implementation
9. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
attributes
superclass
procedural programming language
structures
10. Property attribute that synthesizes accessors that are not thread safe
precedence
method
nonatomic
9
11. 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
delegate
class
NSString
conform
12. 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.
adopt
Signed
link time
object
13. In object-oriented programming a procedure that can be executed by an object.
receiver
pointers
anonymous object
method
14. In a home building analogy a ____ is the blueprint and the object is the house
class
delegates
framework
Unsigned
15. _____ allow indirect access and modification of a variable's value.
Categories
Pointers
framework
ampersand (&)
16. A struct may contain multiple ____ consisting of different data types
assignment
procedures
procedural programming language
fields
17. 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
class object
protocol
9
18. This symbol denotes a method as being a class method
struct
+
NSString
designated initializer
19. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
square brackets
mutex
%@
comma-separated
20. A message sent from one application to an object in another application.
instance variable
remote message
struct
[receiver message];
21. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
pointers
Product>Profile>Leaks>Profile
+
22. A class is said to do this when it declares that it implements all the methods in the protocol.
formal protocol
adopt
readwrite
printf( )
23. Symbol used to denote a placeholder in a format string
formal protocol
Pointers
%
value
24. 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
%@
inheritance
pointers
25. _____ allow you to add new methods to existing classes
adopt
selector
Categories
Enumerations
26. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
double
C operators
strong
Interface Builder
27. The _____ function can be used to print a message to the console
AppKit
structures
Protocols
printf( )
28. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Smalltalk
weak
NSString
Protocols
29. Same as class object. (first way to say it.)
factory
readonly
Unsigned
instance
30. C-style strings are stored in an array of _____
precedence
chars
category
Edit>Refactor>Convert to Objective-C ARC
31. Discovering the class of an object at runtime rather than at compile time.
interface
dynamic typing
runtime
attributes
32. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
namespace
Unsigned
assignment
33. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
subclass
zero
-
framework
34. A compiler feature that provides automated memory management
factory object
chars
ARC
instance
35. A ____ _____ is where you forget to free up memory
doubles
selector
memory leak
properties
36. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
inheritance hierarchy
static typing
cannot
abstract class
37. Any class that's one step below another class in the inheritance hierarchy.
dynamic typing
ampersand (&)
subclass
dispatch table
38. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
struct
message expression
Binary
precedence
39. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
Cocoa
inheritance
Pointers
object
40. Any method that can be used by an instance of a class rather than by the class object.
zero
instance method
strong
remote object
41. 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
encapsulation
[receiver message];
-
42. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
abstract superclass
attributes
inheritance
value
43. Xcode sequence to examine an app for memory leaks or retain cycles
compile time
Product>Profile>Leaks>Profile
class object
superset
44. Objective-C binds methods and arguments at _____ instead of compile time
@interface
runtime
factory object
compile time
45. 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.
anonymous object
developer intent
instance variable
message
46. 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.
informal protocol
runtime
struct
attributes
47. An object in another application - one that's a potential receiver for a remote message.
Unitary
remote object
pointers
struct
48. a+b; is an example of using a _____ operator
readonly
binary
class object
+
49. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
synchronous message
Cocoa
null
class object
50. Property attribute that causes the setter to store a strong reference to the assigned value
object
strong
instance variable
dereference (dereferencing)