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. In object-oriented programming a procedure that can be executed by an object.
nil
method
factory object
Signed
2. Objective-C methods are called using ____ _____
nonatomic
square brackets
value
AppKit
3. C-style strings always end with a ____ character
null
distributed objects
abstract class
readonly
4. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
class
mutex
comma-separated
instance method
5. Property attribute where the setter stores the assigned value but does not perform any memory management.
class
assign
value
dangling pointer
6. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.
instance
outlet
cycles
AppKit
7. Symbol used to denote a placeholder in a format string
static typing
method
Signed
%
8. _____ data types can be both positive and negative
procedures
%@
Signed
pointers
9. In the Objective-C language the declaration of a group of methods not associated with any particular class.
Unsigned
conform
class
protocol
10. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
dispatch table
compile time
superclass
11. Property attribute that causes the setter to store a copy of the assigned value
remote object
doubles
pointer
copy
12. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
factory
nonatomic
pointer
13. All objects are created on the _____
class
Cocoa
Interface Builder
heap
14. 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
remote object
assign
structures
category
15. 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).
formal protocol
message expression
dispatch table
asynchronous message
16. Square bracket syntax for calling a method
class object
precedence
inheritance hierarchy
[receiver message];
17. A variable that points to the memory address of another value
zero
inheritance hierarchy
delegates
pointer
18. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
Unitary
superclass
protocol
assignment
19. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
selector
event
remote message
20. ______ operators take a single operand
Smalltalk
procedural programming language
Unitary
binary
21. Same as class object. (first way to say it.)
factory
Enumerations
Interface Builder
subclass
22. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
abstract class
cannot
chars
delegates
23. 3 Common Float data types: float - _____ - CGFloat
%
selector
abstract class
double
24. Xcode sequence to convert non-ARC apps to ARC
Edit>Refactor>Convert to Objective-C ARC
formal protocol
floating-point
Categories
25. 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.
unitary
chars
encapsulation
instance method
26. Same as class object. (second way to say it.)
conform
ARC
factory object
ampersand (&)
27. Property attribute that synthesizes both a getter and setter for the property
readwrite
method
runtime
dangling pointer
28. 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.
id
class object
factory object
double
29. When creating a class header file you begin with the _____ keyword and close with the @end keyword
superset
Categories
mutex
@interface
30. Instance variables are optional in iOS if ________ are used
doubles
procedures
dereference (dereferencing)
properties
31. A set of method definitions that is segregated from the rest of the class definition.
implementation
informal protocol
category
class
32. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
link time
9
Signed
Smalltalk
33. A class is said to do this when it declares that it implements all the methods in the protocol.
instance method
doubles
adopt
object
34. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
NSObject
deprecated
weak
Product>Profile>Leaks>Profile
35. The _____ function can be used to print a message to the console
synchronous message
printf( )
Categories
reference counting
36. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
delegates
strong
class object
dispatch table
37. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
pointers
abstract superclass
static typing
delegates
38. 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.
%
object
implementation
method
39. 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.
namespace
delegate
assignment
dynamic allocation
40. 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.
inheritance hierarchy
link time
namespace
runtime
41. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
abstract superclass
cannot
struct
init
42. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
attributes
Binary
procedures
class method
43. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
instance variable
asynchronous message
dispatch table
procedural programming language
44. 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
Cocoa
printf( )
cannot
45. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
Enumerations
@implementation
readwrite
NSString
46. To destroy an object set the variable that points to it to _____
pointers
subclass
informal protocol
nil
47. The first index in an array is valued at ____
Categories
remote object
remote message
zero
48. Xcode sequence to examine an app for memory leaks or retain cycles
zero
Product>Profile>Leaks>Profile
binary
nil
49. A ____ ____ is a situation where you free memory and then accidentally continue to use it
fields
dangling pointer
inheritance
conform
50. _____ allow indirect access and modification of a variable's value.
Pointers
Binary
procedural programming language
runtime