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. 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
Unsigned
developer intent
NSString
message expression
2. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
outlet
reference counting
framework
runtime
3. All objects are created on the _____
id
heap
namespace
instance
4. ARC is susceptible to retain _____
formal protocol
delegates
polymorphism
cycles
5. 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.
chars
category
inheritance hierarchy
Encapsulation
6. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects
outlet
Unsigned
asterisk (*)
structures
7. C-style strings always end with a ____ character
binary
null
category
polymorphism
8. 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
instance method
memory leak
NSString
9. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.
pointer
framework
id
message
10. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
precedence
@implementation
dynamic typing
floating-point
11. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
dynamic binding
cannot
link time
pointers
12. 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
weak
dangling pointer
Signed
13. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
instance
Smalltalk
interface
receiver
14. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
binary
delegates
instance
Categories
15. Xcode sequence to examine an app for memory leaks or retain cycles
assignment
structures
Product>Profile>Leaks>Profile
pointers
16. Objective-C methods are called using ____ _____
square brackets
synchronous message
instance
factory
17. Property attribute where the setter stores the assigned value but does not perform any memory management.
-
interface
class
assign
18. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
%@
@implementation
deprecated
message expression
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
-
Unsigned
conform
20. Objective-C's protocols are really about communicating _____ _______
conform
designated
asynchronous message
developer intent
21. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
ampersand (&)
static typing
designated
class object
22. 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
C operators
instance
formal protocol
23. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
dynamic typing
precedence
superset
pointers
24. 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
designated initializer
nonatomic
compile time
zero
25. A method that can operate on class objects rather than instances of the class.
instance
cycles
procedures
class method
26. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.
@interface
class object
readonly
dynamic binding
27. Property attribute that causes the setter to store a copy of the assigned value
copy
superclass
conform
@interface
28. Property attribute that causes the setter to store a strong reference to the assigned value
C operators
strong
Smalltalk
printf( )
29. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
link time
runtime
inheritance
double
30. An architecture that facilitates communication between objects in different address spaces.
distributed objects
instance
dynamic binding
printf( )
31. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
dispatch table
square brackets
factory
class
32. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
implementation
selector
event
Cocoa
33. Any class that's one step below another class in the inheritance hierarchy.
subclass
readwrite
NSObject
assignment
34. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
readwrite
conform
value
abstract superclass
35. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
abstract superclass
pointer
comma-separated
compile time
36. In object-oriented programming the object that is sent a message.
distributed objects
receiver
compile time
Smalltalk
37. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
instance
developer intent
procedures
instance method
38. A variable that points to the memory address of another value
Unitary
superset
encapsulation
pointer
39. This symbol denotes a method as being an instance method
@implementation
protocol
square brackets
-
40. C-style strings are stored in an array of _____
NSObject
message
delegates
chars
41. 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).
dynamic typing
implementation
procedural programming language
dynamic allocation
42. Property attribute that synthesizes both a getter and setter for the property
readwrite
NSObject
heap
doubles
43. An object in another application - one that's a potential receiver for a remote message.
encapsulation
nonatomic
message expression
remote object
44. _____ allow you to add new methods to existing classes
init
Categories
Unitary
category
45. Xcode sequence to convert non-ARC apps to ARC
ARC
long long
Edit>Refactor>Convert to Objective-C ARC
selector
46. 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.
anonymous object
runtime
distributed objects
remote object
47. Objective-C is a _____ of the C language
method
cannot
superset
Unsigned
48. 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.
nil
9
compile time
abstract class
49. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
superclass
printf( )
Encapsulation
50. Initializer method traditionally begin with the _____ prefix
init
mutex
dereference (dereferencing)
printf( )