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. 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
superclass
memory leak
informal protocol
2. An object of unknown class. Interface is published through protocol declaration.
value
conform
anonymous object
properties
3. 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
structures
message expression
dynamic allocation
formal protocol
4. _____ data types can be both positive and negative
informal protocol
runtime
cycles
Signed
5. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
Smalltalk
dereference (dereferencing)
polymorphism
Product>Profile>Leaks>Profile
6. The root class in Objective-C
NSObject
outlet
subclass
synchronous message
7. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
double
event
Enumerations
instance variable
8. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
designated
square brackets
asynchronous message
9. A set of method definitions that is segregated from the rest of the class definition.
method
category
delegate
square brackets
10. 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.
method
selector
struct
Enumerations
11. Placing a ____ before a normal variable name gives it's address
instance
ampersand (&)
outlet
superclass
12. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
class object
attributes
instance method
13. 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.
abstract class
@interface
encapsulation
Signed
14. A variable that points to the memory address of another value
Unitary
instance
pointer
value
15. A message sent from one application to an object in another application.
NSString
Edit>Refactor>Convert to Objective-C ARC
remote message
synchronous message
16. 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.
runtime
developer intent
Unsigned
formal protocol
17. Discovering the class of an object at runtime rather than at compile time.
+
method
delegate
dynamic typing
18. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
asterisk (*)
compile time
heap
synchronous message
19. The most flexible C data type: ______
struct
class
Pointers
asterisk (*)
20. A struct may contain multiple ____ consisting of different data types
fields
doubles
remote object
synchronous message
21. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
chars
superclass
ARC
long long
22. _____ allow indirect access and modification of a variable's value.
readonly
attributes
asterisk (*)
Pointers
23. In a home building analogy a ____ is the blueprint and the object is the house
Signed
readonly
class
printf( )
24. The first index in an array is valued at ____
zero
nil
selector
NSObject
25. When creating a class header file you begin with the _____ keyword and close with the @end keyword
synchronous message
superclass
@interface
Pointers
26. Square bracket syntax for calling a method
dynamic allocation
[receiver message];
struct
%
27. An architecture that facilitates communication between objects in different address spaces.
%
Enumerations
distributed objects
Cocoa
28. 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.
cycles
copy
polymorphism
namespace
29. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
readwrite
message
weak
30. Another name for a class that's defined solely so that other classes can inherit from it.
synchronous message
init
abstract superclass
delegate
31. Property attribute that synthesizes only a getter for the property
namespace
null
readonly
adopt
32. Property attribute that synthesizes both a getter and setter for the property
message expression
category
-
readwrite
33. To destroy an object set the variable that points to it to _____
[receiver message];
struct
asterisk (*)
nil
34. Any class that's one step below another class in the inheritance hierarchy.
long long
subclass
superclass
chars
35. A method that can operate on class objects rather than instances of the class.
class method
receiver
dangling pointer
@implementation
36. 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.
square brackets
link time
conform
doubles
37. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.
asynchronous message
factory
delegates
binary
38. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
copy
printf( )
comma-separated
long long
39. 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.
object
NSString
cannot
designated initializer
40. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
class
inheritance
framework
object
41. Symbol used to denote a placeholder in a format string
%
Product>Profile>Leaks>Profile
outlet
designated
42. A compiler feature that provides automated memory management
Product>Profile>Leaks>Profile
designated
pointer
ARC
43. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
abstract class
cannot
runtime
subclass
44. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
implementation
asynchronous message
%@
45. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
value
Protocols
readonly
method
46. A ____ ____ is a situation where you free memory and then accidentally continue to use it
Pointers
dangling pointer
Protocols
strong
47. An object that acts on behalf of another object.
Protocols
readwrite
procedures
delegate
48. Property attribute that synthesizes accessors that are not thread safe
nonatomic
-
copy
assign
49. Objective-C binds methods and arguments at _____ instead of compile time
link time
+
distributed objects
runtime
50. 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
zero
properties
+