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. _____ allow you to add new methods to existing classes
object
Categories
link time
structures
2. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
dangling pointer
instance method
Unsigned
3. 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.
procedural programming language
outlet
Pointers
remote message
4. There are ____ fundamental building blocks in Objective-C
9
delegates
memory leak
square brackets
5. 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.
namespace
message
procedures
C operators
6. A struct may contain multiple ____ consisting of different data types
interface
fields
assignment
copy
7. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
distributed objects
asterisk (*)
anonymous object
designated
8. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
designated
zero
id
9. A method that can operate on class objects rather than instances of the class.
runtime
class method
factory object
formal protocol
10. 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.
factory
zero
abstract class
floating-point
11. Another name for a class that's defined solely so that other classes can inherit from it.
copy
implementation
reference counting
abstract superclass
12. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.
nil
class object
static typing
inheritance
13. 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.
distributed objects
Unitary
runtime
static typing
14. This symbol denotes a method as being an instance method
C operators
weak
-
memory leak
15. _____ allow indirect access and modification of a variable's value.
fields
Pointers
Categories
pointer
16. ______ operators take a single operand
nonatomic
Unitary
method
factory
17. The _____ function can be used to print a message to the console
superclass
distributed objects
printf( )
properties
18. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
doubles
designated
message
static typing
19. The most flexible C data type: ______
properties
class
struct
anonymous object
20. A protocol that's declared with the @protocol directive. Classes can adopt these - objects can respond at runtime when asked if they conform to them and instances can be typed by those that they conform to.
Edit>Refactor>Convert to Objective-C ARC
formal protocol
abstract superclass
factory object
21. Any method that can be used by an instance of a class rather than by the class object.
instance method
category
superclass
cycles
22. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
link time
procedural programming language
properties
heap
23. C-style strings are stored in an array of _____
@implementation
chars
Signed
deprecated
24. A class is said to do this when it declares that it implements all the methods in the protocol.
Pointers
weak
memory leak
adopt
25. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
Binary
structures
@implementation
readwrite
26. 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.
class
chars
selector
asterisk (*)
27. 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.
receiver
instance variable
implementation
assign
28. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
inheritance
Binary
dereference (dereferencing)
29. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
instance variable
superclass
precedence
init
30. Property attribute where the setter stores the assigned value but does not perform any memory management.
square brackets
assign
namespace
inheritance hierarchy
31. 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
memory leak
object
receiver
32. In the Objective-C language the declaration of a group of methods not associated with any particular class.
null
event
protocol
procedures
33. Data types are divided into two main categories: integer and ______
properties
mutex
floating-point
reference counting
34. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dangling pointer
remote object
Unsigned
dispatch table
35. An object that acts on behalf of another object.
delegate
long long
instance
copy
36. 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.
link time
class
compile time
dynamic allocation
37. Property attribute that synthesizes only a getter for the property
readonly
abstract class
assign
inheritance
38. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
NSObject
superclass
outlet
39. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance hierarchy
Pointers
event
inheritance
40. A compiler feature that provides automated memory management
Cocoa
chars
ARC
link time
41. Same as class object. (second way to say it.)
factory object
zero
factory
9
42. 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
doubles
designated
asynchronous message
synchronous message
43. a+b; is an example of using a _____ operator
properties
floating-point
NSObject
binary
44. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
copy
runtime
@implementation
delegates
45. 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).
precedence
message expression
factory
Unsigned
46. Xcode sequence to examine an app for memory leaks or retain cycles
implementation
superclass
class method
Product>Profile>Leaks>Profile
47. In object-oriented programming a procedure that can be executed by an object.
square brackets
method
ampersand (&)
chars
48. 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.
Enumerations
square brackets
binary
AppKit
49. _____ 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'.
receiver
Encapsulation
Unitary
procedures
50. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
procedural programming language
Smalltalk
weak
readonly