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. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
9
delegates
adopt
2. An object of unknown class. Interface is published through protocol declaration.
null
class object
long long
anonymous object
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
class object
structures
pointer
unitary
4. 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.
encapsulation
event
printf( )
@interface
5. 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.
Interface Builder
Encapsulation
runtime
compile time
6. This symbol denotes a method as being a class method
+
instance method
Product>Profile>Leaks>Profile
memory leak
7. _____ allow you to add new methods to existing classes
inheritance hierarchy
protocol
Categories
adopt
8. Symbol used to denote a placeholder in a format string
NSString
@implementation
precedence
%
9. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
protocol
Product>Profile>Leaks>Profile
factory object
10. In a home building analogy a ____ is the blueprint and the object is the house
adopt
deprecated
class
dynamic allocation
11. Data types are divided into two main categories: integer and ______
Binary
floating-point
cycles
Categories
12. The root class in Objective-C
designated
NSObject
instance method
message expression
13. _____ operators take 2 operands
deprecated
printf( )
Binary
factory object
14. A variable that points to the memory address of another value
subclass
pointer
floating-point
doubles
15. 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.
selector
@interface
nil
category
16. ____ provide a concise & elegant method for defining a discrete set of values
instance method
interface
Enumerations
+
17. The most flexible C data type: ______
Edit>Refactor>Convert to Objective-C ARC
init
instance
struct
18. In a format string the place holder for an object is ______
informal protocol
designated initializer
cycles
%@
19. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
Pointers
C operators
Binary
anonymous object
20. Property attribute that synthesizes only a getter for the property
receiver
readonly
Enumerations
%
21. Objective-C is a _____ of the C language
superset
Product>Profile>Leaks>Profile
static typing
Protocols
22. 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
Pointers
synchronous message
-
delegates
23. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
category
interface
inheritance hierarchy
properties
24. C-style strings are stored in an array of _____
chars
class method
subclass
synchronous message
25. ______ operators take a single operand
memory leak
Unitary
long long
delegates
26. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
id
message
comma-separated
developer intent
27. An object that acts on behalf of another object.
delegate
runtime
deprecated
instance
28. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
strong
procedural programming language
class
informal protocol
29. In object-oriented programming the object that is sent a message.
square brackets
pointers
receiver
superset
30. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
ampersand (&)
link time
designated
superclass
31. Square bracket syntax for calling a method
+
message
[receiver message];
comma-separated
32. 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.
struct
static typing
precedence
object
33. A protocol declared as a category usually as a category of the NSObject class.
ARC
weak
informal protocol
structures
34. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
%
printf( )
deprecated
link time
35. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
superset
init
chars
36. Three main categories of more complicated data structures:_______ - arrays and structs
object
message expression
pointers
structures
37. 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
object
assign
chars
conform
38. a+b; is an example of using a _____ operator
chars
NSObject
binary
method
39. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
inheritance hierarchy
instance
static typing
link time
40. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.
outlet
subclass
adopt
conform
41. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
reference counting
pointer
anonymous object
dispatch table
42. 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
%@
unitary
Categories
NSString
43. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.
procedural programming language
instance variable
message expression
double
44. Property attribute that synthesizes both a getter and setter for the property
properties
nonatomic
readwrite
long long
45. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
reference counting
designated initializer
designated
%
46. 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.
dereference (dereferencing)
link time
NSString
designated initializer
47. ______ data types are always zero or greate
receiver
Product>Profile>Leaks>Profile
Unsigned
Edit>Refactor>Convert to Objective-C ARC
48. Any class that's one step below another class in the inheritance hierarchy.
link time
Enumerations
subclass
asterisk (*)
49. 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
delegate
synchronous message
long long
designated initializer
50. Instance variables are optional in iOS if ________ are used
synchronous message
[receiver message];
class object
properties