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. Same as class object. (second way to say it.)
pointer
factory object
selector
Cocoa
2. Objective-C's protocols are really about communicating _____ _______
zero
long long
static typing
developer intent
3. A variable that points to the memory address of another value
delegate
pointer
null
formal protocol
4. Placing a ____ before a normal variable name gives it's address
ampersand (&)
structures
compile time
memory leak
5. _____ data types can be both positive and negative
Signed
static typing
category
doubles
6. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.
protocol
framework
class method
selector
7. A method that can operate on class objects rather than instances of the class.
class method
message
category
zero
8. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
outlet
cannot
dynamic binding
comma-separated
9. Property attribute that synthesizes accessors that are not thread safe
AppKit
Enumerations
nonatomic
-
10. 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
protocol
factory
Unitary
11. _____ 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'.
anonymous object
superclass
Encapsulation
inheritance
12. In Objective-C floats are more commonly used than ______
doubles
dangling pointer
%@
strong
13. C-style strings are stored in an array of _____
factory object
nil
struct
chars
14. Xcode sequence to convert non-ARC apps to ARC
assign
conform
Edit>Refactor>Convert to Objective-C ARC
Categories
15. Symbol used to denote a placeholder in a format string
%
protocol
polymorphism
designated
16. Data types are divided into two main categories: integer and ______
floating-point
delegates
nonatomic
synchronous message
17. 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.
+
class object
AppKit
properties
18. ____ provide a concise & elegant method for defining a discrete set of values
static typing
assign
%@
Enumerations
19. The most flexible C data type: ______
event
struct
+
fields
20. 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.
implementation
link time
selector
event
21. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
AppKit
procedural programming language
subclass
22. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
runtime
namespace
compile time
procedural programming language
23. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
delegates
object
class object
C operators
24. In a format string the place holder for an object is ______
%@
asterisk (*)
nil
ampersand (&)
25. An architecture that facilitates communication between objects in different address spaces.
link time
distributed objects
selector
floating-point
26. The process of setting or reading the value at an address pointed to by a pointer
cannot
dereference (dereferencing)
inheritance
%@
27. _____ allow you to add new methods to existing classes
assign
remote message
Categories
pointers
28. _____ allow indirect access and modification of a variable's value.
long long
class method
fields
Pointers
29. 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.
fields
instance
nil
9
30. ______ data types are always zero or greate
class
long long
Unsigned
outlet
31. Property attribute where the setter stores the assigned value but does not perform any memory management.
developer intent
assign
Edit>Refactor>Convert to Objective-C ARC
remote object
32. An object that acts on behalf of another object.
delegate
factory
class method
double
33. 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.
interface
remote message
superset
id
34. A struct may contain multiple ____ consisting of different data types
Unsigned
fields
message
class object
35. 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.
Interface Builder
id
encapsulation
polymorphism
36. Property attribute that causes the setter to store a strong reference to the assigned value
properties
readwrite
strong
remote message
37. ______ operators take a single operand
conform
[receiver message];
Unitary
interface
38. Any class that's one step below another class in the inheritance hierarchy.
Binary
link time
remote message
subclass
39. a+b; is an example of using a _____ operator
polymorphism
compile time
Protocols
binary
40. 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).
properties
superclass
designated
implementation
41. A programming technique that hides the implementation of an operation from its users behind an abstract interface; allows the implementation to be updated or changed without impacting the users of the interface.
encapsulation
Protocols
anonymous object
polymorphism
42. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro
AppKit
abstract class
Interface Builder
designated initializer
43. a++; is an example of using a _____ operator
unitary
event
class
framework
44. 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
conform
framework
struct
event
45. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
asterisk (*)
static typing
framework
doubles
46. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
dispatch table
structures
adopt
47. Objective-C objects should use strong or weak ______
instance
-
attributes
unitary
48. An object of unknown class. Interface is published through protocol declaration.
binary
floating-point
Categories
anonymous object
49. Property attribute that synthesizes only a getter for the property
assign
asynchronous message
readonly
null
50. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
Edit>Refactor>Convert to Objective-C ARC
properties
abstract class