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. Any class that's one step below another class in the inheritance hierarchy.
init
subclass
informal protocol
superclass
2. C-style strings are stored in an array of _____
%@
Product>Profile>Leaks>Profile
chars
instance variable
3. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
nonatomic
comma-separated
readwrite
4. In the Objective-C language the declaration of a group of methods not associated with any particular class.
abstract class
abstract superclass
structures
protocol
5. 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.
long long
receiver
memory leak
instance
6. Objective-C is a _____ of the C language
Categories
Unitary
superset
framework
7. The _____ function can be used to print a message to the console
abstract superclass
printf( )
dynamic typing
runtime
8. 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).
instance
inheritance
adopt
implementation
9. Property attribute that causes the setter to store a strong reference to the assigned value
dynamic allocation
framework
strong
readonly
10. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
NSString
runtime
value
class method
11. 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
pointers
double
developer intent
structures
12. 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.
superclass
instance variable
AppKit
unitary
13. When creating a class header file you begin with the _____ keyword and close with the @end keyword
encapsulation
heap
@interface
dangling pointer
14. In object-oriented programming the object that is sent a message.
receiver
distributed objects
instance
+
15. 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.
floating-point
square brackets
delegates
instance variable
16. _____ allow you to add new methods to existing classes
@implementation
%
inheritance hierarchy
Categories
17. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
pointers
ARC
designated
ampersand (&)
18. An architecture that facilitates communication between objects in different address spaces.
formal protocol
distributed objects
selector
ampersand (&)
19. A variable that points to the memory address of another value
pointer
dangling pointer
static typing
implementation
20. C-style strings always end with a ____ character
null
unitary
dangling pointer
outlet
21. A set of method definitions that is segregated from the rest of the class definition.
class object
category
id
link time
22. _____ data types can be both positive and negative
message expression
factory
formal protocol
Signed
23. a++; is an example of using a _____ operator
unitary
instance method
Protocols
reference counting
24. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
class object
assignment
polymorphism
Pointers
25. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
instance
class
outlet
-
26. Objective-C's protocols are really about communicating _____ _______
double
developer intent
long long
floating-point
27. Objective-C binds methods and arguments at _____ instead of compile time
remote object
Product>Profile>Leaks>Profile
runtime
9
28. Same as class object. (second way to say it.)
heap
factory object
dynamic allocation
ampersand (&)
29. The first index in an array is valued at ____
class method
reference counting
delegates
zero
30. Same as class object. (first way to say it.)
designated
deprecated
factory
cycles
31. ARC is susceptible to retain _____
message
class method
cycles
struct
32. 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.
pointers
asynchronous message
comma-separated
remote object
33. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
framework
+
instance method
superclass
34. 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
procedural programming language
instance method
synchronous message
35. All objects are created on the _____
asynchronous message
heap
instance method
conform
36. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
printf( )
procedural programming language
outlet
ampersand (&)
37. _____ 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'.
nil
formal protocol
designated
Encapsulation
38. 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.
ARC
init
Interface Builder
abstract class
39. A method that can operate on class objects rather than instances of the class.
struct
class method
reference counting
dynamic binding
40. 3 Common Float data types: float - _____ - CGFloat
double
@interface
dynamic binding
Signed
41. Data types are divided into two main categories: integer and ______
pointers
inheritance hierarchy
dangling pointer
floating-point
42. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
cycles
method
Unsigned
inheritance
43. In Objective-C floats are more commonly used than ______
struct
instance variable
doubles
id
44. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
nil
strong
polymorphism
event
45. Property attribute where the setter stores the assigned value but does not perform any memory management.
receiver
superclass
assign
inheritance hierarchy
46. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
Product>Profile>Leaks>Profile
designated
asterisk (*)
AppKit
47. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
Categories
doubles
framework
abstract superclass
48. A ____ _____ is where you forget to free up memory
Binary
printf( )
memory leak
floating-point
49. 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
designated
conform
Signed
distributed objects
50. 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.
formal protocol
superclass
double
attributes