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 object that acts on behalf of another object.
structures
delegate
runtime
struct
2. Any method that can be used by an instance of a class rather than by the class object.
mutex
instance method
value
procedural programming language
3. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
factory object
cycles
asynchronous message
4. Property attribute that causes the setter to store a copy of the assigned value
Pointers
copy
Cocoa
nil
5. 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
superclass
designated initializer
mutex
instance variable
6. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
struct
message
anonymous object
@interface
7. a++; is an example of using a _____ operator
unitary
-
Cocoa
procedural programming language
8. There are ____ fundamental building blocks in Objective-C
double
mutex
9
-
9. An object of unknown class. Interface is published through protocol declaration.
anonymous object
Enumerations
Unsigned
outlet
10. Another name for a class that's defined solely so that other classes can inherit from it.
instance variable
polymorphism
namespace
abstract superclass
11. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
link time
selector
superclass
Protocols
12. An object in another application - one that's a potential receiver for a remote message.
pointer
static typing
remote object
Enumerations
13. This symbol denotes a method as being a class method
+
formal protocol
unitary
deprecated
14. Symbol used to denote a placeholder in a format string
weak
printf( )
%
developer intent
15. Square bracket syntax for calling a method
[receiver message];
remote object
precedence
runtime
16. ____ provide a concise & elegant method for defining a discrete set of values
square brackets
Enumerations
struct
memory leak
17. Objective-C objects should use strong or weak ______
chars
Cocoa
Categories
attributes
18. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
9
dispatch table
Edit>Refactor>Convert to Objective-C ARC
AppKit
19. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
developer intent
long long
polymorphism
distributed objects
20. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.
link time
assignment
dynamic typing
object
21. In the Objective-C language an object that belongs to (is a member of) a particular class; created at runtime according to the specification in the class definition.
interface
strong
instance
anonymous object
22. 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.
procedural programming language
nonatomic
value
link time
23. The most flexible C data type: ______
struct
object
anonymous object
floating-point
24. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
Signed
Encapsulation
@implementation
Pointers
25. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
9
delegates
developer intent
weak
26. ______ data types are always zero or greate
Categories
instance
Unsigned
memory leak
27. ______ operators take a single operand
Smalltalk
Signed
object
Unitary
28. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
delegate
cannot
+
C operators
29. 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).
nil
-
implementation
chars
30. A message sent from one application to an object in another application.
abstract class
remote message
Smalltalk
conform
31. 3 Common Float data types: float - _____ - CGFloat
cycles
nil
static typing
double
32. The first index in an array is valued at ____
assignment
class
zero
inheritance
33. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
delegates
Smalltalk
dynamic binding
distributed objects
34. 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.
message
inheritance hierarchy
class
interface
35. Finding the method implementation to invoke in response to the message
asterisk (*)
dynamic binding
remote object
Smalltalk
36. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
instance
printf( )
event
strong
37. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
unitary
dispatch table
%
38. 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.
mutex
memory leak
Interface Builder
static typing
39. Instance variables are optional in iOS if ________ are used
pointer
properties
assignment
Signed
40. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
comma-separated
remote message
method
adopt
41. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
protocol
weak
C operators
chars
42. In a format string the place holder for an object is ______
assignment
doubles
%@
designated initializer
43. An object id with a value of 0.
nil
@implementation
assign
informal protocol
44. In a home building analogy a ____ is the blueprint and the object is the house
struct
class
dereference (dereferencing)
@implementation
45. This symbol denotes a method as being an instance method
remote object
-
dynamic allocation
value
46. Initializer method traditionally begin with the _____ prefix
chars
init
fields
anonymous object
47. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
id
value
mutex
Cocoa
48. _____ allow you to add new methods to existing classes
remote message
superset
%
Categories
49. 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.
zero
AppKit
id
framework
50. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
designated
synchronous message
class
C operators