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. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
class
procedures
factory object
mutex
2. a+b; is an example of using a _____ operator
formal protocol
binary
mutex
class
3. The process of setting or reading the value at an address pointed to by a pointer
interface
dereference (dereferencing)
protocol
+
4. A ____ _____ is where you forget to free up memory
outlet
inheritance hierarchy
Binary
memory leak
5. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
readwrite
superset
-
6. 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.
informal protocol
zero
Categories
encapsulation
7. 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.
inheritance hierarchy
receiver
abstract superclass
asynchronous message
8. Initializer method traditionally begin with the _____ prefix
null
Product>Profile>Leaks>Profile
init
nil
9. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
Binary
superclass
designated
10. 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.
namespace
Interface Builder
Product>Profile>Leaks>Profile
deprecated
11. Objective-C is a _____ of the C language
-
strong
superset
attributes
12. An object of unknown class. Interface is published through protocol declaration.
procedures
static typing
anonymous object
@interface
13. 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
message expression
encapsulation
instance
14. ______ operators take a single operand
outlet
Unitary
encapsulation
remote message
15. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
memory leak
object
inheritance
message
16. C-style strings are stored in an array of _____
remote message
pointer
chars
delegates
17. Objective-C objects should use strong or weak ______
asynchronous message
remote object
polymorphism
attributes
18. 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.
attributes
distributed objects
runtime
memory leak
19. 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
synchronous message
inheritance
informal protocol
inheritance hierarchy
20. a++; is an example of using a _____ operator
unitary
ampersand (&)
AppKit
dispatch table
21. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.
Cocoa
instance variable
interface
AppKit
22. In Objective-C floats are more commonly used than ______
doubles
Protocols
interface
reference counting
23. A variable that points to the memory address of another value
pointer
Pointers
subclass
event
24. _____ data types can be both positive and negative
Categories
Signed
object
NSString
25. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
Smalltalk
ampersand (&)
designated
object
26. 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.
floating-point
instance
designated initializer
static typing
27. _____ 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'.
readonly
Encapsulation
strong
message expression
28. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
%@
binary
Product>Profile>Leaks>Profile
assignment
29. To destroy an object set the variable that points to it to _____
nil
binary
readonly
runtime
30. Property attribute that causes the setter to store a strong reference to the assigned value
strong
Smalltalk
Edit>Refactor>Convert to Objective-C ARC
developer intent
31. The root class in Objective-C
9
NSObject
abstract class
receiver
32. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
long long
Unitary
@interface
doubles
33. Property attribute that synthesizes only a getter for the property
readonly
binary
dynamic typing
asterisk (*)
34. Instance variables are optional in iOS if ________ are used
@interface
Binary
class
properties
35. An object that acts on behalf of another object.
class
delegate
long long
dereference (dereferencing)
36. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
chars
selector
compile time
mutex
37. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
precedence
compile time
nonatomic
38. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
asterisk (*)
factory object
NSString
procedural programming language
39. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
deprecated
assign
AppKit
40. This symbol denotes a method as being an instance method
class object
abstract class
-
runtime
41. _____ allow you to add new methods to existing classes
init
chars
Binary
Categories
42. There are ____ fundamental building blocks in Objective-C
class object
selector
id
9
43. 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.
AppKit
-
Edit>Refactor>Convert to Objective-C ARC
adopt
44. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
asterisk (*)
long long
null
45. ____ provide a concise & elegant method for defining a discrete set of values
formal protocol
Enumerations
implementation
Smalltalk
46. An architecture that facilitates communication between objects in different address spaces.
heap
distributed objects
zero
runtime
47. In object-oriented programming the object that is sent a message.
nil
double
deprecated
receiver
48. 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.
AppKit
namespace
encapsulation
remote message
49. Same as class object. (first way to say it.)
readwrite
factory
factory object
chars
50. C-style strings always end with a ____ character
id
procedures
null
superset