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. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
floating-point
class object
comma-separated
synchronous message
2. C-style strings always end with a ____ character
Interface Builder
copy
Unsigned
null
3. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
attributes
readwrite
@interface
precedence
4. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.
NSString
long long
copy
link time
5. A method that can operate on class objects rather than instances of the class.
outlet
class method
nil
attributes
6. Xcode sequence to examine an app for memory leaks or retain cycles
assign
Product>Profile>Leaks>Profile
Edit>Refactor>Convert to Objective-C ARC
inheritance hierarchy
7. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
id
object
delegates
procedures
8. A struct may contain multiple ____ consisting of different data types
init
fields
procedural programming language
link time
9. Property attribute that synthesizes both a getter and setter for the property
method
readwrite
inheritance
+
10. 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.
selector
pointers
structures
AppKit
11. ____ provide a concise & elegant method for defining a discrete set of values
abstract superclass
Enumerations
asynchronous message
inheritance
12. ______ data types are always zero or greate
anonymous object
ampersand (&)
Unsigned
%
13. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
attributes
category
NSObject
deprecated
14. Another name for a class that's defined solely so that other classes can inherit from it.
instance
%
abstract superclass
class object
15. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
instance
Smalltalk
inheritance
memory leak
16. 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
assignment
cannot
strong
conform
17. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
Encapsulation
long long
message expression
inheritance
18. 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
struct
runtime
structures
Product>Profile>Leaks>Profile
19. An object in another application - one that's a potential receiver for a remote message.
Cocoa
namespace
remote object
Binary
20. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
message
mutex
class object
event
21. 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
class
remote object
namespace
22. The root class in Objective-C
Smalltalk
asynchronous message
pointers
NSObject
23. C-style strings are stored in an array of _____
chars
factory
cycles
polymorphism
24. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
remote object
zero
class
assign
25. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.
abstract class
doubles
reference counting
nonatomic
26. Objective-C is a _____ of the C language
superset
encapsulation
factory object
distributed objects
27. In object-oriented programming a procedure that can be executed by an object.
method
delegates
+
object
28. Property attribute that causes the setter to store a strong reference to the assigned value
strong
+
struct
namespace
29. Property attribute that synthesizes accessors that are not thread safe
dynamic allocation
nonatomic
9
abstract class
30. a++; is an example of using a _____ operator
pointers
designated initializer
weak
unitary
31. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
reference counting
ARC
@implementation
polymorphism
32. Any method that can be used by an instance of a class rather than by the class object.
dynamic binding
instance method
assignment
assign
33. Property attribute where the setter stores the assigned value but does not perform any memory management.
superset
assign
Interface Builder
abstract superclass
34. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
deprecated
instance method
strong
interface
35. Finding the method implementation to invoke in response to the message
floating-point
dynamic binding
link time
dangling pointer
36. When creating a class header file you begin with the _____ keyword and close with the @end keyword
assignment
factory object
precedence
@interface
37. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
9
NSString
developer intent
38. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
strong
-
class
mutex
39. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
init
assign
procedural programming language
dereference (dereferencing)
40. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
doubles
class
developer intent
41. Same as class object. (first way to say it.)
Product>Profile>Leaks>Profile
class
factory
readwrite
42. This symbol denotes a method as being an instance method
memory leak
-
selector
Unitary
43. Any class that's one step below another class in the inheritance hierarchy.
subclass
category
dynamic binding
conform
44. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
NSObject
NSString
properties
event
45. _____ allow you to add new methods to existing classes
NSObject
object
Categories
instance method
46. 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.
properties
zero
Interface Builder
designated initializer
47. In object-oriented programming the object that is sent a message.
Unsigned
receiver
AppKit
strong
48. _____ allow indirect access and modification of a variable's value.
binary
pointer
long long
Pointers
49. In Objective-C floats are more commonly used than ______
doubles
nil
%
adopt
50. There are ____ fundamental building blocks in Objective-C
procedures
9
conform
interface