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. Initializer method traditionally begin with the _____ prefix
class method
fields
init
assign
2. A ____ _____ is where you forget to free up memory
mutex
cannot
designated
memory leak
3. Three main categories of more complicated data structures:_______ - arrays and structs
C operators
abstract class
procedural programming language
pointers
4. When creating a class header file you begin with the _____ keyword and close with the @end keyword
Encapsulation
-
dynamic typing
@interface
5. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
%@
anonymous object
static typing
cycles
6. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
designated
instance
memory leak
delegate
7. An architecture that facilitates communication between objects in different address spaces.
distributed objects
AppKit
Smalltalk
deprecated
8. In a format string the place holder for an object is ______
subclass
%@
unitary
class
9. 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).
Product>Profile>Leaks>Profile
anonymous object
namespace
message expression
10. Property attribute that synthesizes accessors that are not thread safe
long long
properties
instance
nonatomic
11. This symbol denotes a method as being a class method
remote message
informal protocol
+
developer intent
12. A variable that points to the memory address of another value
heap
double
pointer
weak
13. 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.
Unsigned
abstract class
superset
encapsulation
14. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
compile time
inheritance
dispatch table
Protocols
15. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
protocol
ARC
anonymous object
long long
16. Xcode sequence to examine an app for memory leaks or retain cycles
informal protocol
NSString
properties
Product>Profile>Leaks>Profile
17. A struct may contain multiple ____ consisting of different data types
implementation
Unsigned
Pointers
fields
18. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
message
Unitary
remote message
dispatch table
19. C-style strings always end with a ____ character
developer intent
null
Signed
designated initializer
20. C-style strings are stored in an array of _____
binary
pointers
chars
Cocoa
21. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
Categories
class
framework
polymorphism
22. 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
informal protocol
factory object
Pointers
23. A compiler feature that provides automated memory management
runtime
namespace
ARC
category
24. 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.
class
floating-point
instance variable
Pointers
25. 3 Common Float data types: float - _____ - CGFloat
instance variable
dynamic allocation
dynamic binding
double
26. A logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.
implementation
namespace
precedence
Smalltalk
27. The first index in an array is valued at ____
nonatomic
zero
@interface
method
28. In object-oriented programming the object that is sent a message.
receiver
long long
Cocoa
runtime
29. 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.
ampersand (&)
link time
developer intent
protocol
30. Instance variables are optional in iOS if ________ are used
long long
properties
abstract class
Product>Profile>Leaks>Profile
31. Same as class object. (first way to say it.)
comma-separated
cycles
nil
factory
32. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
runtime
instance variable
polymorphism
doubles
33. a++; is an example of using a _____ operator
attributes
deprecated
reference counting
unitary
34. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
runtime
printf( )
asterisk (*)
@interface
35. An object id with a value of 0.
subclass
nil
readwrite
selector
36. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
readonly
Protocols
dispatch table
Edit>Refactor>Convert to Objective-C ARC
37. The root class in Objective-C
factory
attributes
NSString
NSObject
38. 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
chars
developer intent
39. Same as class object. (second way to say it.)
receiver
factory object
method
abstract class
40. In a home building analogy a ____ is the blueprint and the object is the house
class
AppKit
compile time
nil
41. Property attribute that synthesizes only a getter for the property
readonly
fields
[receiver message];
remote message
42. A protocol declared as a category usually as a category of the NSObject class.
nil
Cocoa
informal protocol
link time
43. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
chars
formal protocol
procedural programming language
event
44. In Objective-C floats are more commonly used than ______
superclass
adopt
Interface Builder
doubles
45. Placing a ____ before a normal variable name gives it's address
anonymous object
dangling pointer
ampersand (&)
Product>Profile>Leaks>Profile
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.
Enumerations
%
asynchronous message
designated initializer
47. 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.
mutex
Interface Builder
strong
developer intent
48. ______ operators take a single operand
dynamic binding
superclass
Unitary
superset
49. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
@implementation
Encapsulation
encapsulation
50. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
deprecated
compile time
Enumerations
@implementation