SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
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 implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
receiver
Edit>Refactor>Convert to Objective-C ARC
[receiver message];
2. In Objective-C floats are more commonly used than ______
doubles
Binary
class
factory object
3. a++; is an example of using a _____ operator
AppKit
unitary
designated
implementation
4. Symbol used to denote a placeholder in a format string
%
precedence
remote object
method
5. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
ampersand (&)
interface
long long
9
6. A struct may contain multiple ____ consisting of different data types
encapsulation
selector
fields
pointers
7. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.
Signed
comma-separated
instance variable
@implementation
8. Instance variables are optional in iOS if ________ are used
[receiver message];
properties
reference counting
message
9. Any method that can be used by an instance of a class rather than by the class object.
instance variable
procedures
class object
instance method
10. This symbol denotes a method as being an instance method
-
Product>Profile>Leaks>Profile
pointers
ARC
11. 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.
informal protocol
properties
-
Interface Builder
12. 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.
dangling pointer
double
superclass
runtime
13. 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.
copy
designated
asynchronous message
receiver
14. A ____ ____ is a situation where you free memory and then accidentally continue to use it
synchronous message
@interface
dangling pointer
link time
15. A set of method definitions that is segregated from the rest of the class definition.
fields
value
remote object
category
16. A compiler feature that provides automated memory management
formal protocol
ARC
delegates
subclass
17. Finding the method implementation to invoke in response to the message
dynamic binding
NSString
remote object
instance
18. The root class in Objective-C
attributes
NSObject
remote message
namespace
19. 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.
encapsulation
remote message
superset
AppKit
20. 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.
precedence
selector
implementation
id
21. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
compile time
Protocols
polymorphism
class object
22. In object-oriented programming a procedure that can be executed by an object.
%@
method
struct
+
23. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
%
mutex
runtime
24. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@implementation
@interface
double
abstract class
25. An object of unknown class. Interface is published through protocol declaration.
framework
anonymous object
class object
strong
26. Placing a ____ before a normal variable name gives it's address
ampersand (&)
protocol
dynamic allocation
dynamic typing
27. An architecture that facilitates communication between objects in different address spaces.
comma-separated
superset
distributed objects
square brackets
28. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
dynamic binding
properties
Cocoa
selector
29. 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
asterisk (*)
AppKit
30. 3 Common Float data types: float - _____ - CGFloat
formal protocol
double
null
attributes
31. 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.
deprecated
inheritance hierarchy
formal protocol
@implementation
32. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
comma-separated
dynamic typing
Smalltalk
attributes
33. Square bracket syntax for calling a method
developer intent
dynamic typing
[receiver message];
procedural programming language
34. Initializer method traditionally begin with the _____ prefix
init
Protocols
class method
dispatch table
35. ______ operators take a single operand
asynchronous message
remote object
Unitary
designated
36. Objective-C is a _____ of the C language
printf( )
square brackets
superset
message
37. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
NSString
asterisk (*)
message
event
38. _____ allow you to add new methods to existing classes
nonatomic
9
Categories
attributes
39. In a home building analogy a ____ is the blueprint and the object is the house
%@
delegates
class
weak
40. A class is said to do this when it declares that it implements all the methods in the protocol.
polymorphism
adopt
message expression
nil
41. ______ data types are always zero or greate
object
Unsigned
assignment
struct
42. Property attribute that synthesizes accessors that are not thread safe
null
runtime
nil
nonatomic
43. Same as class object. (second way to say it.)
instance variable
asynchronous message
Enumerations
factory object
44. 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.
formal protocol
dynamic typing
designated
attributes
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.
link time
C operators
%@
category
46. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
id
Edit>Refactor>Convert to Objective-C ARC
procedures
dynamic typing
47. Xcode sequence to convert non-ARC apps to ARC
inheritance hierarchy
nil
assignment
Edit>Refactor>Convert to Objective-C ARC
48. 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.
attributes
reference counting
anonymous object
receiver
49. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
%@
structures
cannot
init
50. To destroy an object set the variable that points to it to _____
reference counting
nil
ARC
Unsigned