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 object-oriented programming the ability of different objects to respond each in its own way - to the same message.
link time
anonymous object
polymorphism
dereference (dereferencing)
2. Property attribute where the setter stores the assigned value but does not perform any memory management.
cycles
9
assign
receiver
3. 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.
ampersand (&)
floating-point
class
Interface Builder
4. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
interface
pointer
fields
5. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
dynamic typing
init
event
C operators
6. 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
id
instance
runtime
7. A message sent from one application to an object in another application.
fields
message expression
factory object
remote message
8. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
null
category
remote message
deprecated
9. ARC is susceptible to retain _____
Signed
cycles
compile time
precedence
10. 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.
binary
attributes
namespace
dispatch table
11. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
chars
Smalltalk
formal protocol
Enumerations
12. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
nil
instance
%
id
13. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
class method
Product>Profile>Leaks>Profile
inheritance
Cocoa
14. The process of setting or reading the value at an address pointed to by a pointer
floating-point
comma-separated
Signed
dereference (dereferencing)
15. The root class in Objective-C
NSObject
weak
compile time
anonymous object
16. 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
Categories
+
NSString
9
17. A ____ ____ is a situation where you free memory and then accidentally continue to use it
attributes
struct
dangling pointer
delegates
18. An object in another application - one that's a potential receiver for a remote message.
AppKit
asynchronous message
remote object
class method
19. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
assign
designated
class object
subclass
20. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
memory leak
Edit>Refactor>Convert to Objective-C ARC
Protocols
cannot
21. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
class object
asterisk (*)
precedence
fields
22. In Objective-C floats are more commonly used than ______
runtime
doubles
designated initializer
zero
23. Same as class object. (first way to say it.)
factory
instance method
zero
dispatch table
24. ______ data types are always zero or greate
remote message
remote object
Unsigned
Signed
25. Square bracket syntax for calling a method
compile time
abstract superclass
Categories
[receiver message];
26. To destroy an object set the variable that points to it to _____
compile time
%
floating-point
nil
27. 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).
message expression
message
class method
Encapsulation
28. _____ data types can be both positive and negative
Signed
ARC
abstract superclass
NSString
29. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
nil
class
Signed
event
30. 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.
instance variable
protocol
copy
adopt
31. Xcode sequence to convert non-ARC apps to ARC
Edit>Refactor>Convert to Objective-C ARC
null
delegate
mutex
32. 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.
dangling pointer
superset
superclass
selector
33. Three main categories of more complicated data structures:_______ - arrays and structs
dangling pointer
instance
runtime
pointers
34. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
dynamic allocation
@implementation
object
remote message
35. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
remote object
comma-separated
value
36. Data types are divided into two main categories: integer and ______
%
cannot
double
floating-point
37. 3 Common Float data types: float - _____ - CGFloat
double
class object
synchronous message
chars
38. A protocol declared as a category usually as a category of the NSObject class.
designated
informal protocol
encapsulation
dynamic allocation
39. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Product>Profile>Leaks>Profile
framework
Cocoa
Protocols
40. There are ____ fundamental building blocks in Objective-C
cycles
NSObject
remote message
9
41. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.
memory leak
factory object
outlet
anonymous object
42. Objective-C methods are called using ____ _____
ARC
procedural programming language
heap
square brackets
43. a++; is an example of using a _____ operator
unitary
ARC
remote message
dynamic typing
44. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
properties
message
link time
dynamic binding
45. _____ 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'.
Smalltalk
heap
synchronous message
Encapsulation
46. A class is said to do this when it declares that it implements all the methods in the protocol.
Product>Profile>Leaks>Profile
developer intent
selector
adopt
47. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.
ARC
[receiver message];
inheritance hierarchy
dangling pointer
48. _____ operators take 2 operands
receiver
square brackets
instance variable
Binary
49. Property attribute that causes the setter to store a copy of the assigned value
cannot
copy
Pointers
@implementation
50. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
copy
weak
inheritance
properties