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. Property attribute that synthesizes accessors that are not thread safe
nonatomic
dangling pointer
assignment
protocol
2. An object of unknown class. Interface is published through protocol declaration.
anonymous object
Smalltalk
precedence
polymorphism
3. An object in another application - one that's a potential receiver for a remote message.
Cocoa
floating-point
runtime
remote object
4. 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
Protocols
[receiver message];
structures
abstract class
5. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
C operators
Enumerations
Cocoa
6. ______ data types are always zero or greate
Unsigned
remote object
comma-separated
class method
7. 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
runtime
designated initializer
cycles
conform
8. Property attribute that synthesizes only a getter for the property
developer intent
message
readonly
properties
9. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
weak
interface
@implementation
double
10. 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.
Edit>Refactor>Convert to Objective-C ARC
Interface Builder
@interface
null
11. 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.
instance variable
class
asterisk (*)
abstract superclass
12. A variable that points to the memory address of another value
abstract superclass
asterisk (*)
compile time
pointer
13. A ____ _____ is where you forget to free up memory
zero
%
namespace
memory leak
14. _____ allow you to add new methods to existing classes
square brackets
Categories
remote message
delegates
15. In Objective-C floats are more commonly used than ______
method
value
doubles
Protocols
16. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
interface
floating-point
Signed
17. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
delegates
mutex
NSString
static typing
18. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
message expression
long long
Enumerations
id
19. 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.
asynchronous message
class
NSString
link time
20. In object-oriented programming the object that is sent a message.
distributed objects
receiver
ARC
Unsigned
21. There are ____ fundamental building blocks in Objective-C
class
doubles
9
unitary
22. C-style strings always end with a ____ character
null
instance method
instance variable
message
23. a++; is an example of using a _____ operator
unitary
[receiver message];
formal protocol
init
24. An object that acts on behalf of another object.
message
delegate
conform
pointers
25. 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.
assignment
outlet
encapsulation
Unsigned
26. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
object
readonly
delegates
conform
27. Property attribute that causes the setter to store a strong reference to the assigned value
+
implementation
strong
precedence
28. Square bracket syntax for calling a method
[receiver message];
abstract class
square brackets
deprecated
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.
dangling pointer
@interface
instance
precedence
30. A ____ ____ is a situation where you free memory and then accidentally continue to use it
Unsigned
readonly
link time
dangling pointer
31. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
factory object
Product>Profile>Leaks>Profile
polymorphism
NSObject
32. A protocol declared as a category usually as a category of the NSObject class.
compile time
Edit>Refactor>Convert to Objective-C ARC
informal protocol
%
33. 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.
ampersand (&)
cannot
Smalltalk
runtime
34. Objective-C objects should use strong or weak ______
interface
attributes
Categories
nonatomic
35. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
floating-point
Binary
class
36. An architecture that facilitates communication between objects in different address spaces.
Categories
distributed objects
instance variable
receiver
37. ______ operators take a single operand
formal protocol
Unitary
object
binary
38. _____ data types can be both positive and negative
readonly
comma-separated
link time
Signed
39. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
anonymous object
subclass
instance
adopt
40. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
instance method
NSObject
Enumerations
inheritance
41. When creating a class header file you begin with the _____ keyword and close with the @end keyword
Interface Builder
conform
@interface
struct
42. Instance variables are optional in iOS if ________ are used
runtime
pointers
cycles
properties
43. To destroy an object set the variable that points to it to _____
nil
category
readonly
assign
44. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
long long
interface
conform
45. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
Signed
readonly
implementation
46. 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.
event
AppKit
pointer
distributed objects
47. The process of setting or reading the value at an address pointed to by a pointer
memory leak
structures
dynamic binding
dereference (dereferencing)
48. The first index in an array is valued at ____
link time
unitary
zero
NSString
49. Data types are divided into two main categories: integer and ______
memory leak
@implementation
Protocols
floating-point
50. The _____ function can be used to print a message to the console
procedural programming language
printf( )
outlet
-