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. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
Unitary
precedence
outlet
delegate
2. _____ allow indirect access and modification of a variable's value.
polymorphism
inheritance hierarchy
Pointers
[receiver message];
3. Placing a ____ before a normal variable name gives it's address
Edit>Refactor>Convert to Objective-C ARC
ampersand (&)
receiver
Signed
4. A ____ _____ is where you forget to free up memory
memory leak
formal protocol
value
Pointers
5. 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.
instance variable
encapsulation
memory leak
zero
6. Square bracket syntax for calling a method
zero
Encapsulation
copy
[receiver message];
7. 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.
Product>Profile>Leaks>Profile
namespace
pointer
nil
8. Objective-C methods are called using ____ _____
instance
square brackets
ARC
object
9. The root class in Objective-C
Smalltalk
outlet
pointer
NSObject
10. In object-oriented programming a procedure that can be executed by an object.
Cocoa
nil
Encapsulation
method
11. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
copy
dispatch table
compile time
static typing
12. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
null
Unsigned
%
deprecated
13. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
deprecated
superclass
interface
runtime
14. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
synchronous message
Protocols
delegates
link time
15. 3 Common Float data types: float - _____ - CGFloat
nil
init
long long
double
16. In a format string the place holder for an object is ______
chars
doubles
%@
mutex
17. ARC is susceptible to retain _____
cycles
factory
readonly
Pointers
18. 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.
inheritance hierarchy
heap
structures
message
19. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
abstract class
superset
category
20. Xcode sequence to convert non-ARC apps to ARC
Unitary
abstract superclass
Edit>Refactor>Convert to Objective-C ARC
[receiver message];
21. This symbol denotes a method as being a class method
factory object
+
instance method
framework
22. Objective-C is a _____ of the C language
message expression
superset
designated
namespace
23. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
fields
nil
copy
value
24. Objective-C binds methods and arguments at _____ instead of compile time
runtime
unitary
pointer
square brackets
25. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
square brackets
nil
dynamic binding
26. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
zero
cycles
assignment
instance
27. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
readwrite
instance
asterisk (*)
superclass
28. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
abstract class
Cocoa
instance variable
dangling pointer
29. 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
structures
class
dynamic typing
binary
30. 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.
double
runtime
[receiver message];
Interface Builder
31. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
%
long long
superset
mutex
32. Property attribute that causes the setter to store a strong reference to the assigned value
strong
double
category
inheritance hierarchy
33. There are ____ fundamental building blocks in Objective-C
instance
9
@interface
printf( )
34. 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
memory leak
dangling pointer
struct
35. 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
NSString
nil
floating-point
36. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
-
receiver
%
37. 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).
double
implementation
remote object
procedures
38. Property attribute that causes the setter to store a copy of the assigned value
dangling pointer
attributes
Smalltalk
copy
39. 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.
designated initializer
instance
delegates
selector
40. The most flexible C data type: ______
instance
struct
remote object
Encapsulation
41. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
link time
conform
Signed
42. 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.
inheritance hierarchy
event
runtime
protocol
43. _____ allow you to add new methods to existing classes
Categories
nil
zero
instance
44. Same as class object. (first way to say it.)
chars
factory
factory object
assign
45. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.
dynamic binding
Interface Builder
abstract class
class
46. C-style strings are stored in an array of _____
dynamic allocation
chars
selector
-
47. Three main categories of more complicated data structures:_______ - arrays and structs
precedence
pointers
Smalltalk
procedures
48. 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).
id
nonatomic
message expression
properties
49. This symbol denotes a method as being an instance method
designated
superclass
distributed objects
-
50. Objective-C objects should use strong or weak ______
object
attributes
Edit>Refactor>Convert to Objective-C ARC
inheritance