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 class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
superclass
-
Edit>Refactor>Convert to Objective-C ARC
ampersand (&)
2. 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.
fields
superclass
abstract superclass
Interface Builder
3. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
message
namespace
Signed
double
4. An object of unknown class. Interface is published through protocol declaration.
anonymous object
memory leak
superset
receiver
5. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
procedural programming language
mutex
Signed
@interface
6. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
Unitary
asterisk (*)
reference counting
7. _____ allow indirect access and modification of a variable's value.
method
Pointers
heap
floating-point
8. 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.
Binary
inheritance hierarchy
class object
anonymous object
9. When creating a class header file you begin with the _____ keyword and close with the @end keyword
runtime
@interface
nil
remote message
10. Another name for a class that's defined solely so that other classes can inherit from it.
cannot
abstract superclass
object
null
11. Same as class object. (first way to say it.)
event
procedures
factory
framework
12. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
Unitary
Unsigned
distributed objects
13. 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.
comma-separated
object
message expression
asynchronous message
14. To destroy an object set the variable that points to it to _____
distributed objects
pointer
nil
instance variable
15. The root class in Objective-C
method
outlet
anonymous object
NSObject
16. Objective-C methods are called using ____ _____
reference counting
method
square brackets
Protocols
17. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
message expression
@implementation
C operators
conform
18. A method that can operate on class objects rather than instances of the class.
structures
class method
C operators
delegate
19. Objective-C objects should use strong or weak ______
outlet
attributes
Unsigned
dangling pointer
20. ______ data types are always zero or greate
Unsigned
[receiver message];
long long
Enumerations
21. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
superset
designated initializer
[receiver message];
C operators
22. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
factory object
%
dispatch table
23. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
runtime
chars
asynchronous message
asterisk (*)
24. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
interface
delegates
dereference (dereferencing)
-
25. A set of method definitions that is segregated from the rest of the class definition.
id
category
designated initializer
mutex
26. This symbol denotes a method as being an instance method
anonymous object
-
id
class method
27. ______ operators take a single operand
Unitary
%@
ampersand (&)
delegate
28. An architecture that facilitates communication between objects in different address spaces.
@implementation
distributed objects
message expression
runtime
29. Property attribute that causes the setter to store a copy of the assigned value
pointer
copy
adopt
subclass
30. Data types are divided into two main categories: integer and ______
runtime
floating-point
struct
nonatomic
31. 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
Protocols
selector
NSString
Interface Builder
32. In a format string the place holder for an object is ______
struct
implementation
%@
precedence
33. 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).
implementation
dangling pointer
id
+
34. Xcode sequence to convert non-ARC apps to ARC
Edit>Refactor>Convert to Objective-C ARC
Pointers
polymorphism
comma-separated
35. A protocol declared as a category usually as a category of the NSObject class.
nil
informal protocol
%@
mutex
36. C-style strings always end with a ____ character
null
dynamic allocation
designated
Signed
37. _____ allow you to add new methods to existing classes
@implementation
readwrite
synchronous message
Categories
38. Property attribute that synthesizes both a getter and setter for the property
readonly
namespace
readwrite
interface
39. ARC is susceptible to retain _____
Categories
C operators
Unitary
cycles
40. Placing a ____ before a normal variable name gives it's address
mutex
Encapsulation
ampersand (&)
procedures
41. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
compile time
cannot
procedural programming language
link time
42. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
Unitary
square brackets
designated
namespace
43. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
ampersand (&)
doubles
dynamic allocation
44. 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
Binary
dispatch table
ampersand (&)
45. Three main categories of more complicated data structures:_______ - arrays and structs
cannot
distributed objects
fields
pointers
46. a+b; is an example of using a _____ operator
protocol
printf( )
Pointers
binary
47. 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.
unitary
id
delegate
[receiver message];
48. 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
selector
AppKit
message expression
49. Property attribute that causes the setter to store a strong reference to the assigned value
abstract superclass
dangling pointer
strong
9
50. 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
Smalltalk
dynamic allocation
Cocoa