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. 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.
dynamic allocation
informal protocol
abstract superclass
Encapsulation
2. A set of method definitions that is segregated from the rest of the class definition.
category
runtime
struct
AppKit
3. Placing a ____ before a normal variable name gives it's address
square brackets
formal protocol
Cocoa
ampersand (&)
4. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
synchronous message
Unsigned
Smalltalk
5. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dangling pointer
id
instance
dispatch table
6. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
dangling pointer
distributed objects
Interface Builder
7. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.
instance
compile time
Encapsulation
protocol
8. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
AppKit
framework
interface
instance
9. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
Edit>Refactor>Convert to Objective-C ARC
factory
copy
10. A message sent from one application to an object in another application.
developer intent
ampersand (&)
superset
remote message
11. 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
subclass
Edit>Refactor>Convert to Objective-C ARC
synchronous message
ampersand (&)
12. 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
procedures
conform
procedural programming language
nil
13. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
instance variable
receiver
attributes
value
14. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
nil
fields
Categories
mutex
15. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
synchronous message
copy
outlet
precedence
16. 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.
reference counting
namespace
floating-point
nil
17. Objective-C methods are called using ____ _____
Edit>Refactor>Convert to Objective-C ARC
square brackets
-
double
18. _____ allow you to add new methods to existing classes
%@
attributes
Categories
Unsigned
19. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
readwrite
Product>Profile>Leaks>Profile
remote object
weak
20. In object-oriented programming a procedure that can be executed by an object.
Unsigned
comma-separated
asterisk (*)
method
21. 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.
delegate
Unitary
Encapsulation
inheritance hierarchy
22. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
factory
doubles
procedures
floating-point
23. 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.
designated initializer
outlet
implementation
chars
24. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
procedural programming language
compile time
pointers
readwrite
25. 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).
distributed objects
message expression
printf( )
init
26. In a home building analogy a ____ is the blueprint and the object is the house
9
class
Signed
pointers
27. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
cannot
Smalltalk
null
distributed objects
28. 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.
instance variable
procedures
printf( )
dangling pointer
29. Another name for a class that's defined solely so that other classes can inherit from it.
doubles
abstract superclass
message
designated initializer
30. Square bracket syntax for calling a method
class
[receiver message];
fields
implementation
31. Xcode sequence to examine an app for memory leaks or retain cycles
Unitary
Product>Profile>Leaks>Profile
binary
printf( )
32. 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.
strong
id
superclass
readwrite
33. 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.
properties
superclass
outlet
asynchronous message
34. The most flexible C data type: ______
runtime
NSObject
struct
Smalltalk
35. An object id with a value of 0.
outlet
ARC
synchronous message
nil
36. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
assign
C operators
cannot
class method
37. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
ARC
event
Signed
procedural programming language
38. An architecture that facilitates communication between objects in different address spaces.
abstract class
copy
class
distributed objects
39. Property attribute that causes the setter to store a strong reference to the assigned value
runtime
implementation
Unitary
strong
40. 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
class
category
instance variable
41. 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.
Smalltalk
nil
instance
framework
42. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
Unitary
strong
framework
binary
43. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
message
NSString
category
remote object
44. Property attribute that synthesizes only a getter for the property
mutex
procedures
readonly
heap
45. In a format string the place holder for an object is ______
dynamic binding
deprecated
%@
namespace
46. Data types are divided into two main categories: integer and ______
Product>Profile>Leaks>Profile
polymorphism
floating-point
nil
47. _____ operators take 2 operands
nonatomic
Binary
implementation
pointers
48. 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.
Signed
link time
polymorphism
object
49. A variable that points to the memory address of another value
dangling pointer
instance
pointer
%
50. Property attribute that causes the setter to store a copy of the assigned value
Edit>Refactor>Convert to Objective-C ARC
copy
assign
delegate