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 causes the setter to store a strong reference to the assigned value
structures
strong
attributes
mutex
2. Same as class object. (second way to say it.)
C operators
factory object
factory
dynamic allocation
3. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.
nil
copy
reference counting
dynamic typing
4. _____ data types can be both positive and negative
Signed
heap
dangling pointer
C operators
5. Square bracket syntax for calling a method
Cocoa
unitary
dispatch table
[receiver message];
6. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
Pointers
delegate
deprecated
comma-separated
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.
namespace
static typing
heap
inheritance hierarchy
8. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.
id
reference counting
Unitary
comma-separated
9. C-style strings are stored in an array of _____
chars
dispatch table
nonatomic
instance
10. 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.
+
delegates
namespace
precedence
11. 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).
fields
instance method
implementation
NSObject
12. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
9
framework
link time
%@
13. 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
synchronous message
readonly
AppKit
value
14. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
namespace
precedence
Unsigned
Smalltalk
15. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
assignment
message
compile time
Smalltalk
16. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
distributed objects
nil
static typing
class
17. 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.
attributes
class object
long long
procedural programming language
18. Another name for a class that's defined solely so that other classes can inherit from it.
%
abstract superclass
mutex
link time
19. 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
dynamic allocation
conform
delegates
informal protocol
20. 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.
subclass
dynamic allocation
value
protocol
21. 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.
Signed
encapsulation
pointers
binary
22. Xcode sequence to examine an app for memory leaks or retain cycles
doubles
Product>Profile>Leaks>Profile
instance method
instance variable
23. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
unitary
readwrite
9
24. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
subclass
cannot
attributes
encapsulation
25. Three main categories of more complicated data structures:_______ - arrays and structs
[receiver message];
pointers
polymorphism
ampersand (&)
26. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
value
[receiver message];
null
27. In a home building analogy a ____ is the blueprint and the object is the house
null
pointers
class
Encapsulation
28. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
double
procedures
zero
assignment
29. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
NSString
class method
cannot
procedural programming language
30. 3 Common Float data types: float - _____ - CGFloat
factory
developer intent
double
abstract class
31. A ____ _____ is where you forget to free up memory
Cocoa
null
outlet
memory leak
32. Property attribute that causes the setter to store a copy of the assigned value
init
dangling pointer
informal protocol
copy
33. ______ operators take a single operand
Unitary
dereference (dereferencing)
long long
Pointers
34. To destroy an object set the variable that points to it to _____
distributed objects
nil
Edit>Refactor>Convert to Objective-C ARC
dangling pointer
35. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
properties
9
delegate
C operators
36. a+b; is an example of using a _____ operator
NSString
%
binary
assign
37. A variable that points to the memory address of another value
pointer
interface
NSObject
polymorphism
38. Objective-C methods are called using ____ _____
assign
9
square brackets
event
39. A protocol declared as a category usually as a category of the NSObject class.
pointers
event
procedural programming language
informal protocol
40. This symbol denotes a method as being an instance method
-
deprecated
mutex
dynamic allocation
41. ARC is susceptible to retain _____
dynamic allocation
asynchronous message
cycles
double
42. Placing a ____ before a normal variable name gives it's address
Binary
null
ampersand (&)
dynamic binding
43. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
cycles
9
comma-separated
pointers
44. Property attribute where the setter stores the assigned value but does not perform any memory management.
designated initializer
NSString
assign
method
45. 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.
Interface Builder
instance variable
remote message
inheritance hierarchy
46. A message sent from one application to an object in another application.
synchronous message
abstract class
strong
remote message
47. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
floating-point
conform
Binary
long long
48. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
factory
event
memory leak
Signed
49. A set of method definitions that is segregated from the rest of the class definition.
class
dynamic binding
Cocoa
category
50. An architecture that facilitates communication between objects in different address spaces.
@interface
remote message
distributed objects
memory leak