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. 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.
asynchronous message
dynamic binding
instance
assign
2. Instance variables are optional in iOS if ________ are used
class object
properties
procedures
readonly
3. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
anonymous object
implementation
remote message
4. 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
@interface
AppKit
Categories
5. a+b; is an example of using a _____ operator
binary
abstract superclass
abstract class
Smalltalk
6. There are ____ fundamental building blocks in Objective-C
superclass
instance variable
9
Unitary
7. 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.
class object
synchronous message
dereference (dereferencing)
doubles
8. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
distributed objects
%@
interface
dereference (dereferencing)
9. In a format string the place holder for an object is ______
designated initializer
cycles
protocol
%@
10. The first index in an array is valued at ____
+
assignment
zero
runtime
11. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
nil
weak
interface
compile time
12. Any class that's one step below another class in the inheritance hierarchy.
subclass
doubles
nil
instance variable
13. Objective-C methods are called using ____ _____
abstract class
asynchronous message
square brackets
remote object
14. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
procedural programming language
procedures
instance
dangling pointer
15. ____ provide a concise & elegant method for defining a discrete set of values
printf( )
selector
asterisk (*)
Enumerations
16. 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.
square brackets
precedence
outlet
long long
17. Data types are divided into two main categories: integer and ______
assignment
null
floating-point
instance
18. An object id with a value of 0.
nil
cycles
Categories
framework
19. Objective-C binds methods and arguments at _____ instead of compile time
pointers
polymorphism
double
runtime
20. An object that acts on behalf of another object.
subclass
delegate
Protocols
doubles
21. 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.
namespace
factory
Unsigned
Encapsulation
22. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
Interface Builder
cannot
NSString
Pointers
23. _____ allow indirect access and modification of a variable's value.
implementation
Pointers
cycles
interface
24. ______ data types are always zero or greate
Unsigned
properties
designated initializer
Signed
25. Initializer method traditionally begin with the _____ prefix
init
Categories
floating-point
Encapsulation
26. In object-oriented programming the object that is sent a message.
9
ARC
Interface Builder
receiver
27. 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).
Edit>Refactor>Convert to Objective-C ARC
class
message expression
double
28. To destroy an object set the variable that points to it to _____
%
nil
superclass
dispatch table
29. This symbol denotes a method as being a class method
message expression
compile time
assign
+
30. An object of unknown class. Interface is published through protocol declaration.
Product>Profile>Leaks>Profile
Protocols
Unitary
anonymous object
31. 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.
pointers
instance
Categories
id
32. Placing a ____ before a normal variable name gives it's address
factory object
ampersand (&)
@implementation
class
33. Symbol used to denote a placeholder in a format string
Encapsulation
printf( )
%
nil
34. 3 Common Float data types: float - _____ - CGFloat
runtime
double
Categories
long long
35. _____ allow you to add new methods to existing classes
factory
Categories
pointer
instance
36. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings
NSString
class
framework
9
37. A ____ _____ is where you forget to free up memory
procedures
mutex
nonatomic
memory leak
38. Property attribute that synthesizes only a getter for the property
cannot
readonly
dynamic allocation
dispatch table
39. Xcode sequence to examine an app for memory leaks or retain cycles
properties
designated initializer
informal protocol
Product>Profile>Leaks>Profile
40. 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.
binary
framework
unitary
object
41. Square bracket syntax for calling a method
[receiver message];
weak
static typing
Unitary
42. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
AppKit
readwrite
Smalltalk
distributed objects
43. A class is said to do this when it declares that it implements all the methods in the protocol.
instance method
adopt
NSString
nil
44. 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.
adopt
Cocoa
AppKit
long long
45. C-style strings are stored in an array of _____
[receiver message];
chars
dangling pointer
link time
46. 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.
Edit>Refactor>Convert to Objective-C ARC
readonly
encapsulation
[receiver message];
47. This symbol denotes a method as being an instance method
-
Edit>Refactor>Convert to Objective-C ARC
heap
fields
48. 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.
class method
selector
floating-point
synchronous message
49. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
%@
anonymous object
Binary
50. A variable that points to the memory address of another value
method
pointer
instance variable
binary