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++; is an example of using a _____ operator
unitary
ampersand (&)
-
reference counting
2. In a home building analogy a ____ is the blueprint and the object is the house
unitary
class
instance
ARC
3. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
procedural programming language
Signed
[receiver message];
dynamic typing
4. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
category
value
NSString
+
5. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
Unsigned
inheritance hierarchy
dynamic typing
6. Property attribute that synthesizes accessors that are not thread safe
synchronous message
nonatomic
dynamic binding
nil
7. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.
abstract superclass
memory leak
inheritance hierarchy
Signed
8. Another name for a class that's defined solely so that other classes can inherit from it.
fields
message expression
square brackets
abstract superclass
9. ______ data types are always zero or greate
Unsigned
Binary
framework
unitary
10. 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
dereference (dereferencing)
factory object
Protocols
11. Objective-C methods are called using ____ _____
inheritance hierarchy
assign
square brackets
9
12. 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.
factory object
readonly
selector
adopt
13. C-style strings are stored in an array of _____
delegate
abstract superclass
chars
assign
14. 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
selector
Smalltalk
Categories
15. The root class in Objective-C
ampersand (&)
cycles
NSObject
double
16. Xcode sequence to convert non-ARC apps to ARC
static typing
floating-point
Edit>Refactor>Convert to Objective-C ARC
ARC
17. 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
distributed objects
superset
namespace
18. In a format string the place holder for an object is ______
procedures
NSString
%@
9
19. In Objective-C floats are more commonly used than ______
static typing
doubles
long long
weak
20. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
zero
assignment
delegates
precedence
21. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).
Signed
implementation
double
deprecated
22. Data types are divided into two main categories: integer and ______
+
instance variable
floating-point
ampersand (&)
23. The most flexible C data type: ______
[receiver message];
class object
struct
class
24. In the Objective-C language the declaration of a group of methods not associated with any particular class.
9
chars
protocol
printf( )
25. _____ operators take 2 operands
double
Binary
mutex
AppKit
26. 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
attributes
%@
pointers
27. 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
AppKit
assignment
conform
encapsulation
28. A set of method definitions that is segregated from the rest of the class definition.
category
factory object
NSObject
dynamic binding
29. Property attribute that causes the setter to store a strong reference to the assigned value
inheritance
class object
struct
strong
30. 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.
nil
runtime
dangling pointer
comma-separated
31. The _____ function can be used to print a message to the console
Protocols
value
printf( )
comma-separated
32. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica
strong
designated initializer
assign
synchronous message
33. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
instance
abstract superclass
designated initializer
distributed objects
34. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
instance
mutex
assign
Signed
35. A compiler feature that provides automated memory management
link time
long long
subclass
ARC
36. 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.
copy
receiver
asynchronous message
ARC
37. To destroy an object set the variable that points to it to _____
nil
attributes
assignment
precedence
38. An object that acts on behalf of another object.
factory
delegate
long long
C operators
39. A ____ _____ is where you forget to free up memory
inheritance
memory leak
@implementation
encapsulation
40. 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.
C operators
instance
class object
formal protocol
41. An object in another application - one that's a potential receiver for a remote message.
remote object
anonymous object
strong
class
42. Property attribute that synthesizes both a getter and setter for the property
readwrite
superclass
comma-separated
receiver
43. Placing a ____ before a normal variable name gives it's address
procedural programming language
@interface
printf( )
ampersand (&)
44. There are ____ fundamental building blocks in Objective-C
asynchronous message
conform
9
synchronous message
45. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
zero
ARC
long long
46. All objects are created on the _____
heap
compile time
Unitary
informal protocol
47. This symbol denotes a method as being a class method
precedence
+
procedures
binary
48. Property attribute that causes the setter to store a copy of the assigned value
remote object
category
copy
-
49. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
designated
cannot
Smalltalk
50. Instance variables are optional in iOS if ________ are used
nonatomic
properties
event
mutex