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. The process of setting or reading the value at an address pointed to by a pointer
+
Product>Profile>Leaks>Profile
dereference (dereferencing)
null
2. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
+
class
protocol
nil
3. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
Enumerations
procedures
Unitary
fields
4. Initializer method traditionally begin with the _____ prefix
cannot
remote object
init
structures
5. ____ provide a concise & elegant method for defining a discrete set of values
developer intent
runtime
event
Enumerations
6. ARC is susceptible to retain _____
unitary
protocol
cycles
designated initializer
7. 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.
readwrite
link time
memory leak
abstract superclass
8. Xcode sequence to examine an app for memory leaks or retain cycles
Encapsulation
protocol
subclass
Product>Profile>Leaks>Profile
9. An object in another application - one that's a potential receiver for a remote message.
ampersand (&)
remote object
instance
asterisk (*)
10. 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.
Unsigned
Unitary
id
remote message
11. ______ data types are always zero or greate
NSString
AppKit
superset
Unsigned
12. Instance variables are optional in iOS if ________ are used
inheritance
properties
dispatch table
init
13. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
floating-point
designated
Unitary
unitary
14. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
@implementation
AppKit
C operators
object
15. C-style strings always end with a ____ character
runtime
dynamic binding
init
null
16. a+b; is an example of using a _____ operator
Edit>Refactor>Convert to Objective-C ARC
Protocols
binary
remote message
17. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
runtime
class
@implementation
18. 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
assignment
adopt
id
19. In object-oriented programming the object that is sent a message.
static typing
receiver
link time
instance
20. Objective-C is a _____ of the C language
asynchronous message
superset
Cocoa
weak
21. Xcode sequence to convert non-ARC apps to ARC
Pointers
Edit>Refactor>Convert to Objective-C ARC
message expression
delegate
22. 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.
class method
runtime
instance variable
-
23. A ____ _____ is where you forget to free up memory
memory leak
dereference (dereferencing)
zero
factory
24. An architecture that facilitates communication between objects in different address spaces.
procedural programming language
namespace
interface
distributed objects
25. 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.
9
instance variable
dereference (dereferencing)
object
26. 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.
method
AppKit
pointer
dynamic allocation
27. Objective-C methods are called using ____ _____
Product>Profile>Leaks>Profile
NSObject
ampersand (&)
square brackets
28. 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
strong
informal protocol
chars
29. C-style strings are stored in an array of _____
fields
chars
category
message expression
30. An object of unknown class. Interface is published through protocol declaration.
anonymous object
value
procedural programming language
Encapsulation
31. 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.
assignment
class object
instance
memory leak
32. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
ampersand (&)
procedural programming language
nil
mutex
33. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
class
anonymous object
cycles
34. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
nil
designated
delegates
message
35. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
message expression
subclass
message
superset
36. An object that acts on behalf of another object.
%
fields
floating-point
delegate
37. All objects are created on the _____
doubles
heap
designated
assign
38. Property attribute that synthesizes accessors that are not thread safe
Protocols
nonatomic
doubles
delegates
39. In a format string the place holder for an object is ______
dynamic allocation
%@
superset
readwrite
40. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
receiver
static typing
adopt
weak
41. 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).
assign
memory leak
namespace
message expression
42. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
factory object
-
NSObject
43. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
instance variable
interface
superclass
properties
44. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
struct
conform
binary
inheritance
45. An object id with a value of 0.
message expression
nil
Unsigned
subclass
46. 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.
Interface Builder
distributed objects
compile time
asynchronous message
47. A protocol declared as a category usually as a category of the NSObject class.
long long
doubles
link time
informal protocol
48. Property attribute that synthesizes only a getter for the property
readonly
distributed objects
deprecated
category
49. A set of method definitions that is segregated from the rest of the class definition.
category
inheritance hierarchy
class
synchronous message
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.
anonymous object
designated
formal protocol
factory object