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. 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.
readonly
subclass
dangling pointer
outlet
2. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
assignment
static typing
dynamic typing
asterisk (*)
3. Property attribute that synthesizes both a getter and setter for the property
encapsulation
readwrite
dispatch table
double
4. Property attribute where the setter stores the assigned value but does not perform any memory management.
outlet
assign
namespace
binary
5. An object of unknown class. Interface is published through protocol declaration.
remote message
distributed objects
Unitary
anonymous object
6. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
nil
chars
Unitary
class
7. 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).
dereference (dereferencing)
message expression
floating-point
remote object
8. ARC is susceptible to retain _____
C operators
Protocols
Signed
cycles
9. Same as class object. (second way to say it.)
abstract class
factory object
@interface
heap
10. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
interface
value
Protocols
dispatch table
11. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
comma-separated
AppKit
Protocols
polymorphism
12. In Objective-C floats are more commonly used than ______
asterisk (*)
procedural programming language
doubles
Encapsulation
13. 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.
static typing
Interface Builder
printf( )
dynamic typing
14. Discovering the class of an object at runtime rather than at compile time.
weak
static typing
dynamic typing
pointers
15. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
dynamic typing
instance
unitary
procedural programming language
16. a++; is an example of using a _____ operator
delegates
Interface Builder
init
unitary
17. Objective-C methods are called using ____ _____
square brackets
protocol
interface
structures
18. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
runtime
object
nil
framework
19. 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.
long long
selector
properties
Protocols
20. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
%@
designated
inheritance hierarchy
interface
21. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
long long
instance
Signed
strong
22. All objects are created on the _____
@interface
Categories
abstract class
heap
23. 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.
struct
namespace
cycles
event
24. 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
NSString
anonymous object
dynamic allocation
inheritance
25. 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
interface
@interface
nonatomic
26. A method that can operate on class objects rather than instances of the class.
deprecated
remote message
class method
init
27. 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.
encapsulation
polymorphism
outlet
+
28. 3 Common Float data types: float - _____ - CGFloat
assign
value
double
comma-separated
29. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
dynamic binding
adopt
cycles
30. Xcode sequence to convert non-ARC apps to ARC
designated
procedures
NSString
Edit>Refactor>Convert to Objective-C ARC
31. This symbol denotes a method as being a class method
message
+
comma-separated
assignment
32. Property attribute that causes the setter to store a strong reference to the assigned value
cycles
abstract superclass
instance variable
strong
33. _____ 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'.
delegate
Encapsulation
designated
struct
34. ______ operators take a single operand
formal protocol
designated initializer
factory object
Unitary
35. Any method that can be used by an instance of a class rather than by the class object.
Interface Builder
unitary
instance method
dispatch table
36. C-style strings always end with a ____ character
null
dangling pointer
selector
factory object
37. Property attribute that causes the setter to store a copy of the assigned value
deprecated
copy
Pointers
reference counting
38. This symbol denotes a method as being an instance method
memory leak
-
delegates
Unsigned
39. There are ____ fundamental building blocks in Objective-C
designated
9
memory leak
deprecated
40. 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.
inheritance hierarchy
asynchronous message
C operators
chars
41. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
abstract superclass
mutex
runtime
copy
42. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
id
Cocoa
designated initializer
assignment
43. Objective-C objects should use strong or weak ______
attributes
asterisk (*)
precedence
floating-point
44. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
message expression
square brackets
compile time
C operators
45. 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.
attributes
assign
AppKit
runtime
46. Initializer method traditionally begin with the _____ prefix
init
@implementation
properties
@interface
47. A struct may contain multiple ____ consisting of different data types
mutex
interface
fields
factory object
48. C-style strings are stored in an array of _____
superset
chars
Unsigned
%@
49. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
designated initializer
weak
struct
mutex
50. Xcode sequence to examine an app for memory leaks or retain cycles
message expression
delegate
Product>Profile>Leaks>Profile
heap