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. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
delegate
Unsigned
developer intent
Protocols
2. Three main categories of more complicated data structures:_______ - arrays and structs
event
runtime
readonly
pointers
3. 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.
chars
Product>Profile>Leaks>Profile
instance
implementation
4. _____ allow indirect access and modification of a variable's value.
Pointers
class object
adopt
receiver
5. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
framework
dynamic allocation
Categories
6. 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.
dynamic allocation
ampersand (&)
runtime
Interface Builder
7. 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.
abstract superclass
AppKit
fields
mutex
8. In a format string the place holder for an object is ______
instance
designated initializer
ARC
%@
9. Objective-C is a _____ of the C language
superset
category
@interface
weak
10. A set of method definitions that is segregated from the rest of the class definition.
category
square brackets
delegate
Smalltalk
11. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
anonymous object
instance
Edit>Refactor>Convert to Objective-C ARC
12. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
null
deprecated
adopt
Interface Builder
13. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
Binary
pointers
encapsulation
14. Placing a ____ before a normal variable name gives it's address
chars
class method
event
ampersand (&)
15. Symbol used to denote a placeholder in a format string
superset
fields
%
Interface Builder
16. 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.
procedural programming language
%
object
procedures
17. 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.
AppKit
protocol
developer intent
dynamic allocation
18. 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
abstract class
class object
NSString
adopt
19. Objective-C methods are called using ____ _____
Pointers
readwrite
event
square brackets
20. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
asterisk (*)
designated
link time
object
21. There are ____ fundamental building blocks in Objective-C
strong
asynchronous message
compile time
9
22. _____ operators take 2 operands
static typing
instance
Binary
synchronous message
23. 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.
weak
asynchronous message
designated
fields
24. Square bracket syntax for calling a method
long long
dynamic binding
[receiver message];
procedures
25. The root class in Objective-C
assign
class
NSObject
superclass
26. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
AppKit
anonymous object
@interface
27. 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
structures
dynamic allocation
init
+
28. Property attribute that synthesizes only a getter for the property
9
readonly
value
message expression
29. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
factory object
-
synchronous message
delegates
30. In the Objective-C language the declaration of a group of methods not associated with any particular class.
Smalltalk
implementation
protocol
structures
31. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
copy
assign
method
32. A method that can operate on class objects rather than instances of the class.
class object
class method
Product>Profile>Leaks>Profile
superclass
33. An object id with a value of 0.
copy
nil
Signed
instance
34. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
instance method
procedural programming language
abstract superclass
long long
35. 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
copy
method
comma-separated
conform
36. Property attribute that causes the setter to store a copy of the assigned value
informal protocol
copy
remote object
NSObject
37. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
encapsulation
-
developer intent
comma-separated
38. Any class that's one step below another class in the inheritance hierarchy.
assign
outlet
subclass
encapsulation
39. C-style strings are stored in an array of _____
instance
dynamic binding
chars
factory
40. _____ data types can be both positive and negative
formal protocol
chars
Signed
namespace
41. 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.
ampersand (&)
precedence
class method
id
42. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
nil
designated initializer
mutex
Unsigned
43. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
instance
deprecated
outlet
44. A variable that points to the memory address of another value
null
runtime
pointer
selector
45. 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.
doubles
null
link time
structures
46. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
long long
superclass
comma-separated
Cocoa
47. An object in another application - one that's a potential receiver for a remote message.
remote object
Unitary
runtime
dynamic binding
48. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
event
polymorphism
square brackets
interface
49. Property attribute that synthesizes accessors that are not thread safe
memory leak
instance
nonatomic
copy
50. A message sent from one application to an object in another application.
remote message
nil
developer intent
delegate