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 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.
abstract class
designated
cycles
value
2. 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
superset
namespace
NSObject
NSString
3. Objective-C methods are called using ____ _____
square brackets
@implementation
abstract superclass
struct
4. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
superclass
Protocols
C operators
ARC
5. ______ data types are always zero or greate
category
readwrite
Unsigned
binary
6. The process of setting or reading the value at an address pointed to by a pointer
remote object
dereference (dereferencing)
dynamic allocation
object
7. A compiler feature that provides automated memory management
Enumerations
remote object
mutex
ARC
8. The root class in Objective-C
abstract superclass
NSObject
runtime
implementation
9. 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.
9
attributes
properties
reference counting
10. 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
conform
init
asynchronous message
structures
11. 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
heap
+
synchronous message
nonatomic
12. An object id with a value of 0.
binary
reference counting
nil
9
13. In object-oriented programming a procedure that can be executed by an object.
instance variable
@interface
instance method
method
14. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
designated
procedures
inheritance
properties
15. Xcode sequence to examine an app for memory leaks or retain cycles
init
Product>Profile>Leaks>Profile
procedures
dispatch table
16. Discovering the class of an object at runtime rather than at compile time.
doubles
instance
namespace
dynamic typing
17. 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.
readonly
weak
developer intent
class object
18. An architecture that facilitates communication between objects in different address spaces.
category
C operators
distributed objects
nonatomic
19. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
designated
pointer
ARC
event
20. Property attribute that synthesizes both a getter and setter for the property
instance
polymorphism
readwrite
event
21. ____ provide a concise & elegant method for defining a discrete set of values
procedures
superclass
class
Enumerations
22. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
encapsulation
reference counting
inheritance
binary
23. ______ operators take a single operand
Unitary
ARC
Binary
inheritance
24. Property attribute that synthesizes only a getter for the property
precedence
readonly
conform
asynchronous message
25. Property attribute that causes the setter to store a strong reference to the assigned value
cannot
developer intent
dispatch table
strong
26. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
instance
abstract superclass
factory
nil
27. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
reference counting
instance method
NSString
28. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
chars
+
anonymous object
29. Objective-C objects should use strong or weak ______
@interface
attributes
abstract class
protocol
30. 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.
pointer
encapsulation
id
Binary
31. a+b; is an example of using a _____ operator
binary
copy
designated initializer
unitary
32. The _____ function can be used to print a message to the console
nil
printf( )
encapsulation
message expression
33. In object-oriented programming the object that is sent a message.
dynamic typing
deprecated
NSObject
receiver
34. 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.
runtime
superclass
properties
delegate
35. _____ allow you to add new methods to existing classes
interface
memory leak
Categories
strong
36. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
long long
NSString
procedures
floating-point
37. 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.
assign
Enumerations
link time
synchronous message
38. This symbol denotes a method as being an instance method
object
zero
Smalltalk
-
39. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
deprecated
conform
Cocoa
factory object
40. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
precedence
static typing
Smalltalk
superset
41. A variable that points to the memory address of another value
pointer
superclass
Categories
encapsulation
42. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.
superset
subclass
AppKit
-
43. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
nil
floating-point
message
Pointers
44. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
factory object
dereference (dereferencing)
compile time
comma-separated
45. A message sent from one application to an object in another application.
dynamic binding
remote message
superclass
compile time
46. Any class that's one step below another class in the inheritance hierarchy.
subclass
remote object
deprecated
[receiver message];
47. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
framework
Binary
inheritance
delegates
48. Finding the method implementation to invoke in response to the message
dynamic binding
instance method
subclass
Signed
49. A method that can operate on class objects rather than instances of the class.
implementation
class method
zero
message expression
50. C-style strings always end with a ____ character
@interface
deprecated
superset
null