SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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. Three main categories of more complicated data structures:_______ - arrays and structs
Cocoa
pointers
cycles
namespace
2. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
protocol
compile time
structures
3. 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
binary
readwrite
pointers
conform
4. Objective-C objects should use strong or weak ______
Pointers
Cocoa
attributes
superclass
5. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
Binary
class
class
nonatomic
6. An architecture that facilitates communication between objects in different address spaces.
dereference (dereferencing)
distributed objects
properties
Signed
7. The _____ function can be used to print a message to the console
9
Unsigned
printf( )
formal protocol
8. A protocol declared as a category usually as a category of the NSObject class.
implementation
informal protocol
precedence
inheritance hierarchy
9. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
structures
anonymous object
protocol
10. An object id with a value of 0.
nil
readonly
inheritance
comma-separated
11. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
procedural programming language
dynamic typing
comma-separated
memory leak
12. There are ____ fundamental building blocks in Objective-C
id
9
procedures
-
13. Property attribute that causes the setter to store a copy of the assigned value
copy
heap
unitary
Edit>Refactor>Convert to Objective-C ARC
14. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
abstract class
informal protocol
-
15. C-style strings are stored in an array of _____
init
subclass
receiver
chars
16. All objects are created on the _____
heap
%@
message
Binary
17. 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.
NSObject
instance variable
static typing
id
18. 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.
pointers
weak
Encapsulation
inheritance hierarchy
19. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
distributed objects
runtime
namespace
C operators
20. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
dereference (dereferencing)
interface
link time
21. 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.
abstract class
value
Interface Builder
protocol
22. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
dispatch table
compile time
deprecated
null
23. a+b; is an example of using a _____ operator
instance variable
cannot
binary
%@
24. ARC is susceptible to retain _____
framework
inheritance hierarchy
null
cycles
25. 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
runtime
procedures
26. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
class
dynamic allocation
event
27. A ____ _____ is where you forget to free up memory
%
memory leak
NSString
printf( )
28. a++; is an example of using a _____ operator
binary
encapsulation
selector
unitary
29. 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.
object
remote object
structures
synchronous message
30. Same as class object. (first way to say it.)
class
factory
floating-point
asterisk (*)
31. _____ allow indirect access and modification of a variable's value.
Pointers
message expression
[receiver message];
cycles
32. Property attribute that synthesizes both a getter and setter for the property
precedence
subclass
dispatch table
readwrite
33. _____ data types can be both positive and negative
Signed
Encapsulation
class object
mutex
34. In object-oriented programming a procedure that can be executed by an object.
instance
cannot
method
delegates
35. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
Edit>Refactor>Convert to Objective-C ARC
id
AppKit
asterisk (*)
36. To destroy an object set the variable that points to it to _____
implementation
nil
instance variable
Pointers
37. 3 Common Float data types: float - _____ - CGFloat
Binary
reference counting
double
%
38. 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
NSString
dynamic typing
superclass
static typing
39. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
informal protocol
method
Protocols
asterisk (*)
40. 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
floating-point
formal protocol
struct
41. Any class that's one step below another class in the inheritance hierarchy.
instance method
subclass
init
heap
42. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
instance variable
@implementation
dangling pointer
dynamic typing
43. 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
informal protocol
mutex
formal protocol
44. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
encapsulation
Cocoa
precedence
cannot
45. Finding the method implementation to invoke in response to the message
dynamic binding
dynamic typing
abstract class
instance variable
46. In a format string the place holder for an object is ______
pointer
nonatomic
%@
procedures
47. 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.
class object
dynamic typing
adopt
message
48. A compiler feature that provides automated memory management
struct
ARC
delegates
class object
49. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
long long
Unitary
dispatch table
Product>Profile>Leaks>Profile
50. Property attribute that synthesizes only a getter for the property
readonly
pointer
implementation
class