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. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
readonly
+
chars
2. _____ data types can be both positive and negative
reference counting
Unitary
instance
Signed
3. A method that can operate on class objects rather than instances of the class.
Interface Builder
floating-point
class method
formal protocol
4. Objective-C binds methods and arguments at _____ instead of compile time
formal protocol
nil
runtime
NSString
5. Finding the method implementation to invoke in response to the message
factory
namespace
class method
dynamic binding
6. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
mutex
class
Smalltalk
inheritance
7. The most flexible C data type: ______
adopt
ARC
struct
weak
8. Property attribute that synthesizes both a getter and setter for the property
readwrite
ampersand (&)
factory
remote message
9. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
dereference (dereferencing)
polymorphism
reference counting
event
10. 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.
instance
protocol
inheritance
comma-separated
11. ______ data types are always zero or greate
Unsigned
instance
heap
interface
12. 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).
formal protocol
message expression
namespace
pointers
13. Data types are divided into two main categories: integer and ______
Smalltalk
designated
floating-point
category
14. a+b; is an example of using a _____ operator
polymorphism
weak
binary
remote object
15. Three main categories of more complicated data structures:_______ - arrays and structs
%
NSObject
ARC
pointers
16. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
interface
link time
class
17. A struct may contain multiple ____ consisting of different data types
pointers
reference counting
fields
precedence
18. Property attribute that synthesizes accessors that are not thread safe
nonatomic
runtime
Smalltalk
deprecated
19. This symbol denotes a method as being a class method
9
@interface
+
compile time
20. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
readonly
struct
event
synchronous message
21. ARC is susceptible to retain _____
cycles
floating-point
value
ARC
22. There are ____ fundamental building blocks in Objective-C
9
message expression
-
designated initializer
23. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
ampersand (&)
inheritance
pointers
@implementation
24. 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.
Categories
Edit>Refactor>Convert to Objective-C ARC
reference counting
%
25. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
pointers
Encapsulation
nonatomic
designated
26. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
Signed
Encapsulation
adopt
dispatch table
27. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
remote message
anonymous object
delegates
nil
28. In a home building analogy a ____ is the blueprint and the object is the house
[receiver message];
Signed
protocol
class
29. The first index in an array is valued at ____
class method
zero
-
Unitary
30. A message sent from one application to an object in another application.
fields
copy
class object
remote message
31. 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.
init
dynamic typing
Signed
AppKit
32. 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
id
factory object
inheritance hierarchy
33. Placing a ____ before a normal variable name gives it's address
9
static typing
ampersand (&)
instance method
34. C-style strings always end with a ____ character
null
-
value
distributed objects
35. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
heap
class
message expression
message
36. 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.
double
method
@interface
id
37. In Objective-C floats are more commonly used than ______
deprecated
doubles
precedence
binary
38. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.
asynchronous message
designated
binary
Cocoa
39. Objective-C methods are called using ____ _____
square brackets
struct
subclass
cannot
40. The root class in Objective-C
AppKit
NSObject
superset
object
41. An object that acts on behalf of another object.
namespace
@implementation
-
delegate
42. The process of setting or reading the value at an address pointed to by a pointer
cannot
copy
dereference (dereferencing)
class method
43. _____ allow indirect access and modification of a variable's value.
readonly
@implementation
Pointers
Encapsulation
44. Any class that's one step below another class in the inheritance hierarchy.
subclass
procedural programming language
runtime
superset
45. An architecture that facilitates communication between objects in different address spaces.
inheritance
distributed objects
Smalltalk
chars
46. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
Categories
interface
delegate
abstract class
47. Any method that can be used by an instance of a class rather than by the class object.
unitary
Cocoa
9
instance method
48. 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
%
namespace
NSString
ampersand (&)
49. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
asynchronous message
attributes
Cocoa
50. 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.
compile time
zero
selector
runtime