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. Objective-C binds methods and arguments at _____ instead of compile time
Unsigned
formal protocol
runtime
inheritance
2. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
9
delegate
long long
interface
3. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.
double
implementation
dynamic allocation
instance method
4. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
doubles
factory object
id
event
5. An object in another application - one that's a potential receiver for a remote message.
ampersand (&)
class object
remote object
+
6. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Signed
designated initializer
Cocoa
instance
7. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
class object
structures
procedural programming language
dynamic typing
8. A variable that points to the memory address of another value
zero
pointer
Protocols
message expression
9. Same as class object. (second way to say it.)
factory object
NSString
synchronous message
Product>Profile>Leaks>Profile
10. Objective-C methods are called using ____ _____
dynamic binding
memory leak
cannot
square brackets
11. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
compile time
runtime
class object
dispatch table
12. Another name for a class that's defined solely so that other classes can inherit from it.
Protocols
cycles
struct
abstract superclass
13. Any class that's one step below another class in the inheritance hierarchy.
id
subclass
mutex
outlet
14. 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).
instance variable
implementation
static typing
assign
15. Discovering the class of an object at runtime rather than at compile time.
message
ampersand (&)
dynamic typing
superclass
16. A ____ ____ is a situation where you free memory and then accidentally continue to use it
%@
framework
copy
dangling pointer
17. The process of setting or reading the value at an address pointed to by a pointer
strong
asynchronous message
anonymous object
dereference (dereferencing)
18. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
receiver
inheritance hierarchy
init
framework
19. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
cannot
link time
mutex
Unitary
20. A struct may contain multiple ____ consisting of different data types
NSString
static typing
fields
designated
21. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings
NSString
nil
outlet
ampersand (&)
22. The _____ function can be used to print a message to the console
memory leak
reference counting
printf( )
C operators
23. 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.
static typing
implementation
namespace
@interface
24. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
ARC
designated
message expression
readonly
25. In object-oriented programming a procedure that can be executed by an object.
nil
method
Unsigned
comma-separated
26. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
@interface
zero
runtime
27. Property attribute that synthesizes accessors that are not thread safe
Product>Profile>Leaks>Profile
instance
delegate
nonatomic
28. Symbol used to denote a placeholder in a format string
Cocoa
message
chars
%
29. 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
copy
remote object
-
structures
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.
link time
nil
conform
ampersand (&)
31. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
Unsigned
nil
Signed
32. 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.
factory
remote message
outlet
Unsigned
33. 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.
fields
anonymous object
Interface Builder
9
34. Finding the method implementation to invoke in response to the message
precedence
class method
delegates
dynamic binding
35. 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).
Product>Profile>Leaks>Profile
synchronous message
class
message expression
36. To destroy an object set the variable that points to it to _____
abstract superclass
assign
long long
nil
37. 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
Encapsulation
polymorphism
developer intent
38. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
attributes
readonly
Protocols
[receiver message];
39. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
comma-separated
assign
designated
40. 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.
selector
event
long long
instance
41. 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.
event
runtime
abstract superclass
AppKit
42. An object of unknown class. Interface is published through protocol declaration.
instance variable
printf( )
anonymous object
procedural programming language
43. All objects are created on the _____
heap
delegates
square brackets
Signed
44. 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.
ARC
binary
object
id
45. In the Objective-C language the declaration of a group of methods not associated with any particular class.
struct
protocol
attributes
class object
46. ARC is susceptible to retain _____
remote object
Unsigned
dangling pointer
cycles
47. Square bracket syntax for calling a method
ampersand (&)
[receiver message];
%
Unsigned
48. There are ____ fundamental building blocks in Objective-C
fields
weak
value
9
49. A message sent from one application to an object in another application.
remote message
mutex
properties
link time
50. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
receiver
assignment
selector
class object