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. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
NSObject
message expression
factory
Protocols
2. 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).
Categories
id
implementation
receiver
3. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
dereference (dereferencing)
mutex
deprecated
delegate
4. C-style strings are stored in an array of _____
Encapsulation
static typing
chars
Pointers
5. 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.
attributes
null
Interface Builder
formal protocol
6. A class is said to do this when it declares that it implements all the methods in the protocol.
strong
Protocols
adopt
%@
7. A variable that points to the memory address of another value
%@
implementation
Smalltalk
pointer
8. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
deprecated
procedural programming language
comma-separated
polymorphism
9. An architecture that facilitates communication between objects in different address spaces.
runtime
nil
distributed objects
@implementation
10. Objective-C is a _____ of the C language
superset
cycles
link time
pointers
11. Instance variables are optional in iOS if ________ are used
properties
instance
inheritance
weak
12. A method that can operate on class objects rather than instances of the class.
properties
class method
implementation
dynamic binding
13. Property attribute that synthesizes accessors that are not thread safe
dynamic allocation
%@
nonatomic
encapsulation
14. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
dispatch table
instance
zero
Unitary
15. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
-
binary
event
runtime
16. Same as class object. (second way to say it.)
remote message
fields
formal protocol
factory object
17. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
delegate
binary
static typing
18. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
-
asterisk (*)
receiver
event
19. An object that acts on behalf of another object.
deprecated
pointers
delegate
outlet
20. Data types are divided into two main categories: integer and ______
Protocols
doubles
floating-point
cannot
21. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
static typing
interface
deprecated
22. A set of method definitions that is segregated from the rest of the class definition.
class
category
pointers
inheritance hierarchy
23. A ____ _____ is where you forget to free up memory
memory leak
9
assign
doubles
24. a+b; is an example of using a _____ operator
-
Unitary
%
binary
25. A message sent from one application to an object in another application.
message
remote message
memory leak
class
26. The most flexible C data type: ______
struct
conform
9
Binary
27. _____ allow you to add new methods to existing classes
interface
Smalltalk
Categories
assignment
28. Three main categories of more complicated data structures:_______ - arrays and structs
subclass
pointers
doubles
instance
29. 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.
synchronous message
selector
developer intent
Enumerations
30. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
link time
+
compile time
id
31. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
comma-separated
id
heap
32. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
value
weak
Unsigned
static typing
33. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
remote message
Cocoa
Unsigned
procedures
34. 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
method
inheritance hierarchy
synchronous message
weak
35. All objects are created on the _____
Unitary
dangling pointer
value
heap
36. The first index in an array is valued at ____
zero
inheritance
readwrite
remote message
37. Placing a ____ before a normal variable name gives it's address
informal protocol
properties
ampersand (&)
chars
38. The root class in Objective-C
ampersand (&)
synchronous message
NSObject
informal protocol
39. 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.
class
square brackets
asynchronous message
dynamic binding
40. Symbol used to denote a placeholder in a format string
%
anonymous object
nil
instance variable
41. In Objective-C floats are more commonly used than ______
developer intent
class method
doubles
ARC
42. In the Objective-C language the declaration of a group of methods not associated with any particular class.
long long
protocol
Protocols
Smalltalk
43. 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
nil
conform
readwrite
instance
44. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
Cocoa
designated
double
attributes
45. _____ operators take 2 operands
unitary
message
Binary
compile time
46. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
null
memory leak
developer intent
message
47. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
instance variable
instance
reference counting
delegates
48. 3 Common Float data types: float - _____ - CGFloat
printf( )
nil
double
event
49. Property attribute that synthesizes both a getter and setter for the property
protocol
readwrite
comma-separated
properties
50. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
informal protocol
precedence
method
procedures