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. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
+
readwrite
abstract superclass
2. 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
[receiver message];
synchronous message
informal protocol
anonymous object
3. C-style strings always end with a ____ character
Unsigned
null
event
Encapsulation
4. In the Objective-C language the declaration of a group of methods not associated with any particular class.
informal protocol
nonatomic
compile time
protocol
5. The process of setting or reading the value at an address pointed to by a pointer
formal protocol
delegate
dereference (dereferencing)
precedence
6. A method that can operate on class objects rather than instances of the class.
inheritance hierarchy
Smalltalk
distributed objects
class method
7. In object-oriented programming a procedure that can be executed by an object.
abstract superclass
method
pointers
Smalltalk
8. 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.
developer intent
instance variable
link time
struct
9. a+b; is an example of using a _____ operator
runtime
binary
printf( )
compile time
10. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
delegate
polymorphism
abstract superclass
properties
11. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
NSObject
assign
Unitary
12. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
reference counting
assignment
@implementation
superset
13. Objective-C methods are called using ____ _____
square brackets
reference counting
informal protocol
designated initializer
14. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
superclass
nil
event
square brackets
15. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
designated
delegates
protocol
readonly
16. A compiler feature that provides automated memory management
polymorphism
ARC
zero
instance
17. All objects are created on the _____
inheritance hierarchy
long long
@implementation
heap
18. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
category
struct
static typing
dereference (dereferencing)
19. 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
abstract class
ARC
designated initializer
readonly
20. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
distributed objects
category
Edit>Refactor>Convert to Objective-C ARC
delegates
21. 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.
superclass
properties
subclass
abstract class
22. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
@interface
nil
namespace
23. Placing a ____ before a normal variable name gives it's address
Enumerations
ampersand (&)
procedures
attributes
24. An architecture that facilitates communication between objects in different address spaces.
value
Interface Builder
distributed objects
dynamic typing
25. In a format string the place holder for an object is ______
attributes
%@
procedures
synchronous message
26. A struct may contain multiple ____ consisting of different data types
nonatomic
AppKit
binary
fields
27. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
conform
@interface
instance method
@implementation
28. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
object
compile time
formal protocol
29. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
readwrite
implementation
Cocoa
distributed objects
30. 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.
square brackets
memory leak
Interface Builder
Unsigned
31. ____ provide a concise & elegant method for defining a discrete set of values
structures
cannot
dynamic allocation
Enumerations
32. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.
designated initializer
dynamic allocation
remote message
message expression
33. Another name for a class that's defined solely so that other classes can inherit from it.
inheritance hierarchy
implementation
abstract superclass
Product>Profile>Leaks>Profile
34. A ____ _____ is where you forget to free up memory
deprecated
memory leak
static typing
class
35. 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).
properties
Signed
conform
message expression
36. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
Cocoa
weak
value
Enumerations
37. _____ allow indirect access and modification of a variable's value.
Pointers
@interface
ampersand (&)
instance method
38. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
printf( )
cycles
dynamic typing
comma-separated
39. 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.
id
dynamic binding
delegates
selector
40. C-style strings are stored in an array of _____
designated
chars
%@
NSObject
41. 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.
id
NSObject
factory
inheritance hierarchy
42. In a home building analogy a ____ is the blueprint and the object is the house
class
%@
Interface Builder
nil
43. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
+
object
designated initializer
mutex
44. Property attribute that causes the setter to store a copy of the assigned value
copy
dangling pointer
AppKit
encapsulation
45. 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.
nonatomic
message
factory
id
46. Xcode sequence to examine an app for memory leaks or retain cycles
chars
Product>Profile>Leaks>Profile
link time
abstract class
47. An object in another application - one that's a potential receiver for a remote message.
id
remote object
distributed objects
square brackets
48. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
class
struct
Smalltalk
@implementation
49. The root class in Objective-C
NSObject
%@
unitary
designated
50. 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).
double
implementation
inheritance
Enumerations