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. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
dynamic allocation
memory leak
doubles
2. 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.
printf( )
class object
AppKit
informal protocol
3. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
static typing
method
developer intent
4. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
framework
square brackets
copy
5. Objective-C methods are called using ____ _____
message
asterisk (*)
square brackets
precedence
6. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
+
delegates
Protocols
designated
7. 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
AppKit
conform
interface
8. An object in another application - one that's a potential receiver for a remote message.
Pointers
Signed
ampersand (&)
remote object
9. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
remote message
asynchronous message
instance
10. a+b; is an example of using a _____ operator
anonymous object
procedures
heap
binary
11. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
encapsulation
delegates
remote object
struct
12. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
factory
procedures
superset
instance method
13. This symbol denotes a method as being an instance method
message
dispatch table
-
mutex
14. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
Binary
instance variable
mutex
class
15. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
attributes
pointer
protocol
polymorphism
16. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
inheritance hierarchy
null
dynamic typing
17. _____ allow indirect access and modification of a variable's value.
Pointers
struct
fields
dangling pointer
18. _____ data types can be both positive and negative
+
class
abstract superclass
Signed
19. In a format string the place holder for an object is ______
pointer
Signed
heap
%@
20. Another name for a class that's defined solely so that other classes can inherit from it.
procedures
id
asynchronous message
abstract superclass
21. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
factory object
properties
outlet
designated
22. In Objective-C floats are more commonly used than ______
Unsigned
procedural programming language
delegates
doubles
23. 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.
id
delegate
Product>Profile>Leaks>Profile
synchronous message
24. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
@interface
mutex
procedural programming language
superclass
25. C-style strings are stored in an array of _____
chars
instance variable
Encapsulation
Protocols
26. 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.
comma-separated
remote message
struct
class object
27. A set of method definitions that is segregated from the rest of the class definition.
class
nonatomic
Pointers
category
28. Initializer method traditionally begin with the _____ prefix
selector
class method
init
interface
29. Property attribute that synthesizes accessors that are not thread safe
nonatomic
remote object
inheritance
binary
30. 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
compile time
structures
reference counting
Enumerations
31. ______ operators take a single operand
subclass
Unitary
class object
designated
32. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.
zero
reference counting
framework
asynchronous message
33. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
superclass
Cocoa
unitary
pointer
34. 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.
cannot
framework
NSObject
outlet
35. A variable that points to the memory address of another value
Binary
pointer
Unsigned
binary
36. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
category
dangling pointer
static typing
anonymous object
37. Property attribute that synthesizes only a getter for the property
readonly
conform
zero
polymorphism
38. This symbol denotes a method as being a class method
interface
+
Product>Profile>Leaks>Profile
ampersand (&)
39. 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.
printf( )
link time
conform
compile time
40. In the Objective-C language the declaration of a group of methods not associated with any particular class.
remote object
-
protocol
remote message
41. A ____ _____ is where you forget to free up memory
Unitary
memory leak
asynchronous message
runtime
42. ARC is susceptible to retain _____
nonatomic
cycles
[receiver message];
developer intent
43. Finding the method implementation to invoke in response to the message
Pointers
class
Product>Profile>Leaks>Profile
dynamic binding
44. Data types are divided into two main categories: integer and ______
namespace
class object
comma-separated
floating-point
45. Objective-C objects should use strong or weak ______
attributes
class method
delegates
memory leak
46. 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.
runtime
inheritance
inheritance hierarchy
method
47. Xcode sequence to convert non-ARC apps to ARC
cannot
Edit>Refactor>Convert to Objective-C ARC
nil
assign
48. There are ____ fundamental building blocks in Objective-C
9
factory
Binary
class method
49. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
instance
adopt
floating-point
compile time
50. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
pointer
precedence
cannot
formal protocol