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. There are ____ fundamental building blocks in Objective-C
9
doubles
outlet
framework
2. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
readwrite
superset
init
3. a++; is an example of using a _____ operator
floating-point
formal protocol
unitary
message
4. In a format string the place holder for an object is ______
double
remote object
%@
copy
5. 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.
instance
link time
%
Smalltalk
6. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
runtime
dereference (dereferencing)
compile time
class
7. Objective-C binds methods and arguments at _____ instead of compile time
long long
runtime
static typing
structures
8. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
link time
framework
+
asynchronous message
9. To destroy an object set the variable that points to it to _____
Cocoa
superclass
procedures
nil
10. Same as class object. (first way to say it.)
factory object
chars
factory
delegate
11. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Product>Profile>Leaks>Profile
Smalltalk
link time
remote object
12. A protocol declared as a category usually as a category of the NSObject class.
unitary
NSString
informal protocol
framework
13. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
receiver
readonly
deprecated
9
14. Property attribute that causes the setter to store a strong reference to the assigned value
strong
remote object
superclass
@implementation
15. ______ operators take a single operand
Unitary
class method
Protocols
abstract class
16. An object id with a value of 0.
category
class object
nil
AppKit
17. _____ data types can be both positive and negative
Signed
assign
interface
attributes
18. The process of setting or reading the value at an address pointed to by a pointer
floating-point
dereference (dereferencing)
selector
value
19. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
designated
asterisk (*)
Categories
properties
20. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
dangling pointer
zero
long long
subclass
21. 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.
factory object
instance variable
dangling pointer
Edit>Refactor>Convert to Objective-C ARC
22. A compiler feature that provides automated memory management
ARC
comma-separated
inheritance hierarchy
precedence
23. This symbol denotes a method as being a class method
instance
%@
runtime
+
24. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
dangling pointer
strong
id
cannot
25. Placing a ____ before a normal variable name gives it's address
9
namespace
dynamic binding
ampersand (&)
26. _____ allow indirect access and modification of a variable's value.
ARC
subclass
abstract class
Pointers
27. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
message
message expression
link time
Interface Builder
28. Objective-C objects should use strong or weak ______
designated initializer
attributes
reference counting
unitary
29. The _____ function can be used to print a message to the console
unitary
printf( )
structures
long long
30. ____ provide a concise & elegant method for defining a discrete set of values
struct
distributed objects
link time
Enumerations
31. A ____ ____ is a situation where you free memory and then accidentally continue to use it
binary
dangling pointer
unitary
precedence
32. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
cycles
static typing
procedural programming language
instance
33. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro
unitary
message
designated initializer
class
34. An object of unknown class. Interface is published through protocol declaration.
Enumerations
implementation
doubles
anonymous object
35. 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
binary
asynchronous message
designated
conform
36. Symbol used to denote a placeholder in a format string
printf( )
%
adopt
instance variable
37. In object-oriented programming a procedure that can be executed by an object.
receiver
mutex
nil
method
38. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
delegates
selector
@implementation
long long
39. Property attribute that synthesizes accessors that are not thread safe
Protocols
nonatomic
Interface Builder
instance
40. 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.
dynamic allocation
attributes
inheritance
Product>Profile>Leaks>Profile
41. Square bracket syntax for calling a method
+
runtime
[receiver message];
interface
42. 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.
[receiver message];
procedures
protocol
outlet
43. A method that can operate on class objects rather than instances of the class.
class method
@implementation
instance
precedence
44. In object-oriented programming the object that is sent a message.
ARC
+
receiver
attributes
45. A set of method definitions that is segregated from the rest of the class definition.
message expression
pointers
category
Interface Builder
46. Data types are divided into two main categories: integer and ______
floating-point
printf( )
NSObject
id
47. 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.
instance
chars
Unitary
-
48. 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.
encapsulation
event
class object
dynamic typing
49. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
structures
weak
strong
9
50. In a home building analogy a ____ is the blueprint and the object is the house
class
heap
adopt
selector