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. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
instance
attributes
@implementation
readonly
2. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
NSString
double
[receiver message];
comma-separated
3. 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
Signed
dynamic binding
procedural programming language
4. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
Pointers
struct
developer intent
5. 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.
dynamic allocation
@interface
factory
superset
6. 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.
comma-separated
9
runtime
Unsigned
7. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
doubles
superclass
procedural programming language
mutex
8. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
instance method
polymorphism
designated
remote object
9. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
distributed objects
delegates
comma-separated
class object
10. In Objective-C floats are more commonly used than ______
class object
instance variable
doubles
zero
11. Property attribute that causes the setter to store a copy of the assigned value
copy
framework
printf( )
event
12. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
attributes
heap
procedural programming language
properties
13. 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.
polymorphism
encapsulation
selector
mutex
14. This symbol denotes a method as being an instance method
comma-separated
-
double
procedural programming language
15. An object in another application - one that's a potential receiver for a remote message.
dereference (dereferencing)
strong
-
remote object
16. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
square brackets
@interface
Interface Builder
17. This symbol denotes a method as being a class method
+
Protocols
encapsulation
procedures
18. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
chars
superset
binary
long long
19. _____ allow you to add new methods to existing classes
Categories
static typing
formal protocol
factory object
20. Property attribute that synthesizes both a getter and setter for the property
remote message
dynamic typing
class
readwrite
21. There are ____ fundamental building blocks in Objective-C
distributed objects
dereference (dereferencing)
readwrite
9
22. A compiler feature that provides automated memory management
ARC
double
weak
square brackets
23. In object-oriented programming the object that is sent a message.
receiver
link time
anonymous object
strong
24. A method that can operate on class objects rather than instances of the class.
subclass
informal protocol
pointer
class method
25. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
Encapsulation
designated
structures
26. 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).
procedures
remote message
message expression
fields
27. ____ provide a concise & elegant method for defining a discrete set of values
selector
Enumerations
readonly
null
28. An object of unknown class. Interface is published through protocol declaration.
anonymous object
message
instance
encapsulation
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.
formal protocol
remote object
inheritance hierarchy
static typing
30. A message sent from one application to an object in another application.
remote message
nonatomic
class method
factory object
31. Objective-C is a _____ of the C language
delegates
null
-
superset
32. 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
printf( )
asynchronous message
synchronous message
nonatomic
33. All objects are created on the _____
inheritance hierarchy
superclass
heap
double
34. ______ operators take a single operand
receiver
polymorphism
Unitary
AppKit
35. 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
dynamic binding
designated
Edit>Refactor>Convert to Objective-C ARC
36. Any class that's one step below another class in the inheritance hierarchy.
subclass
doubles
ARC
%
37. Same as class object. (first way to say it.)
factory
class
NSObject
nil
38. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
9
designated initializer
memory leak
compile time
39. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
pointers
event
AppKit
+
40. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
NSString
remote object
outlet
designated
41. 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.
doubles
subclass
reference counting
Enumerations
42. Initializer method traditionally begin with the _____ prefix
protocol
init
cycles
floating-point
43. Square bracket syntax for calling a method
printf( )
strong
anonymous object
[receiver message];
44. In a format string the place holder for an object is ______
static typing
AppKit
%@
init
45. 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).
dereference (dereferencing)
doubles
implementation
runtime
46. The root class in Objective-C
implementation
NSObject
Categories
asynchronous message
47. Data types are divided into two main categories: integer and ______
Product>Profile>Leaks>Profile
floating-point
pointers
comma-separated
48. In object-oriented programming a procedure that can be executed by an object.
nil
structures
method
@interface
49. 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.
+
outlet
namespace
nil
50. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
implementation
+
C operators