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. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
comma-separated
%
instance
zero
2. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
structures
compile time
remote object
%@
3. 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.
chars
Interface Builder
instance variable
receiver
4. 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.
Interface Builder
%
floating-point
strong
5. 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.
runtime
dynamic allocation
cycles
-
6. 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
binary
object
selector
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
compile time
conform
NSString
fields
8. Square bracket syntax for calling a method
memory leak
[receiver message];
value
Product>Profile>Leaks>Profile
9. Property attribute where the setter stores the assigned value but does not perform any memory management.
long long
superset
method
assign
10. A ____ _____ is where you forget to free up memory
memory leak
Enumerations
Smalltalk
Interface Builder
11. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
message expression
deprecated
superclass
Pointers
12. Property attribute that causes the setter to store a copy of the assigned value
NSString
pointers
copy
factory object
13. _____ allow indirect access and modification of a variable's value.
encapsulation
nil
Smalltalk
Pointers
14. Data types are divided into two main categories: integer and ______
Enumerations
abstract superclass
floating-point
dynamic binding
15. C-style strings always end with a ____ character
formal protocol
null
remote object
Unitary
16. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
Unitary
memory leak
implementation
17. Property attribute that synthesizes both a getter and setter for the property
nil
+
readwrite
NSObject
18. All objects are created on the _____
factory object
abstract class
heap
long long
19. A struct may contain multiple ____ consisting of different data types
fields
Signed
asterisk (*)
pointers
20. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
namespace
chars
deprecated
21. 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
weak
synchronous message
class method
Enumerations
22. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Encapsulation
long long
Smalltalk
dispatch table
23. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.
selector
class object
Encapsulation
reference counting
24. 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.
Smalltalk
procedures
dereference (dereferencing)
runtime
25. An object that acts on behalf of another object.
doubles
delegate
synchronous message
square brackets
26. 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.
ARC
dynamic typing
object
zero
27. a+b; is an example of using a _____ operator
binary
distributed objects
AppKit
factory
28. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
asterisk (*)
framework
polymorphism
runtime
29. A set of method definitions that is segregated from the rest of the class definition.
@interface
doubles
category
adopt
30. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
AppKit
encapsulation
abstract superclass
31. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
long long
subclass
event
32. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
long long
remote message
subclass
receiver
33. 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.
nil
Categories
AppKit
square brackets
34. 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.
Cocoa
delegates
copy
id
35. When creating a class header file you begin with the _____ keyword and close with the @end keyword
struct
cycles
@interface
C operators
36. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
delegate
precedence
delegates
reference counting
37. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
@interface
cannot
doubles
38. Same as class object. (second way to say it.)
factory object
dynamic allocation
formal protocol
cannot
39. Objective-C binds methods and arguments at _____ instead of compile time
cycles
Categories
runtime
synchronous message
40. An object of unknown class. Interface is published through protocol declaration.
implementation
anonymous object
value
instance
41. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
asterisk (*)
ampersand (&)
null
42. Finding the method implementation to invoke in response to the message
interface
runtime
dynamic binding
inheritance
43. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
message
interface
pointers
selector
44. 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.
long long
encapsulation
heap
instance
45. This symbol denotes a method as being a class method
[receiver message];
mutex
Product>Profile>Leaks>Profile
+
46. Property attribute that synthesizes only a getter for the property
floating-point
Signed
readonly
link time
47. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
superset
doubles
receiver
48. ______ operators take a single operand
nonatomic
Unitary
procedural programming language
cycles
49. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
delegate
printf( )
polymorphism
NSObject
50. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
subclass
[receiver message];
printf( )