SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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 programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.
fields
asynchronous message
link time
object
2. ______ operators take a single operand
Categories
Unitary
-
runtime
3. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
doubles
struct
asterisk (*)
selector
4. 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.
selector
precedence
asynchronous message
doubles
5. 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.
method
selector
procedures
designated
6. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.
[receiver message];
assignment
method
Encapsulation
7. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
procedural programming language
designated initializer
message expression
attributes
8. Property attribute that causes the setter to store a copy of the assigned value
double
NSString
zero
copy
9. a+b; is an example of using a _____ operator
binary
memory leak
encapsulation
Enumerations
10. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
long long
C operators
NSString
id
11. In a home building analogy a ____ is the blueprint and the object is the house
strong
designated
id
class
12. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro
ampersand (&)
selector
assign
designated initializer
13. A method that can operate on class objects rather than instances of the class.
class method
dynamic allocation
Signed
adopt
14. An architecture that facilitates communication between objects in different address spaces.
distributed objects
class method
assign
anonymous object
15. An object id with a value of 0.
Encapsulation
conform
cannot
nil
16. In the Objective-C language the declaration of a group of methods not associated with any particular class.
precedence
pointers
protocol
value
17. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
value
static typing
instance
procedures
18. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
attributes
instance
C operators
unitary
19. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
struct
asynchronous message
ampersand (&)
20. ______ data types are always zero or greate
superclass
Unsigned
synchronous message
instance
21. Instance variables are optional in iOS if ________ are used
assignment
procedures
properties
inheritance
22. A ____ _____ is where you forget to free up memory
memory leak
conform
designated
id
23. Property attribute where the setter stores the assigned value but does not perform any memory management.
instance
@interface
attributes
assign
24. A set of method definitions that is segregated from the rest of the class definition.
delegates
[receiver message];
category
Pointers
25. Xcode sequence to examine an app for memory leaks or retain cycles
memory leak
Product>Profile>Leaks>Profile
event
deprecated
26. Objective-C objects should use strong or weak ______
developer intent
Unsigned
runtime
attributes
27. The _____ function can be used to print a message to the console
object
printf( )
NSObject
[receiver message];
28. C-style strings are stored in an array of _____
asterisk (*)
@interface
chars
value
29. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
anonymous object
readonly
dispatch table
dynamic binding
30. Data types are divided into two main categories: integer and ______
event
AppKit
floating-point
Categories
31. The process of setting or reading the value at an address pointed to by a pointer
precedence
factory object
dangling pointer
dereference (dereferencing)
32. 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.
runtime
AppKit
encapsulation
double
33. There are ____ fundamental building blocks in Objective-C
struct
attributes
method
9
34. 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).
implementation
asynchronous message
doubles
subclass
35. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
runtime
Smalltalk
procedural programming language
Interface Builder
36. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
link time
message
printf( )
Smalltalk
37. ARC is susceptible to retain _____
Cocoa
method
cycles
Pointers
38. A protocol declared as a category usually as a category of the NSObject class.
long long
procedural programming language
informal protocol
runtime
39. 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
@implementation
mutex
dangling pointer
40. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
floating-point
properties
mutex
long long
41. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
assign
event
protocol
runtime
42. Any method that can be used by an instance of a class rather than by the class object.
instance method
Pointers
long long
designated initializer
43. 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.
designated initializer
polymorphism
encapsulation
readonly
44. Objective-C is a _____ of the C language
factory
superset
Smalltalk
readwrite
45. Initializer method traditionally begin with the _____ prefix
Unsigned
null
factory object
init
46. In Objective-C floats are more commonly used than ______
pointers
interface
inheritance
doubles
47. Square bracket syntax for calling a method
abstract superclass
assignment
message expression
[receiver message];
48. An object in another application - one that's a potential receiver for a remote message.
protocol
[receiver message];
remote object
instance
49. This symbol denotes a method as being a class method
+
id
C operators
Enumerations
50. An object that acts on behalf of another object.
static typing
Unitary
delegate
Interface Builder