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. Objective-C binds methods and arguments at _____ instead of compile time
anonymous object
printf( )
subclass
runtime
2. Property attribute where the setter stores the assigned value but does not perform any memory management.
nonatomic
NSString
assign
synchronous message
3. Placing a ____ before a normal variable name gives it's address
distributed objects
dereference (dereferencing)
ampersand (&)
encapsulation
4. Three main categories of more complicated data structures:_______ - arrays and structs
instance
designated
pointers
Unsigned
5. A variable that points to the memory address of another value
pointer
ARC
nil
dynamic allocation
6. A struct may contain multiple ____ consisting of different data types
procedures
abstract superclass
fields
strong
7. 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.
deprecated
Signed
delegates
selector
8. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
NSString
id
comma-separated
dispatch table
9. 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.
synchronous message
instance
AppKit
factory object
10. 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).
superclass
AppKit
%
message expression
11. 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.
class object
instance
anonymous object
attributes
12. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Pointers
polymorphism
designated initializer
Cocoa
13. In a home building analogy a ____ is the blueprint and the object is the house
class
class
receiver
dynamic binding
14. _____ allow indirect access and modification of a variable's value.
interface
AppKit
@implementation
Pointers
15. A method that can operate on class objects rather than instances of the class.
class method
class
@implementation
cycles
16. ARC is susceptible to retain _____
Unsigned
nonatomic
cycles
weak
17. A protocol declared as a category usually as a category of the NSObject class.
%@
informal protocol
procedural programming language
runtime
18. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
printf( )
+
dynamic allocation
19. _____ allow you to add new methods to existing classes
doubles
Categories
cycles
framework
20. The _____ function can be used to print a message to the console
double
remote object
printf( )
dereference (dereferencing)
21. There are ____ fundamental building blocks in Objective-C
9
delegate
dereference (dereferencing)
Smalltalk
22. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
link time
distributed objects
structures
23. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
instance
init
struct
cannot
24. An object in another application - one that's a potential receiver for a remote message.
NSString
remote object
conform
@interface
25. Objective-C's protocols are really about communicating _____ _______
reference counting
Pointers
developer intent
asterisk (*)
26. An object of unknown class. Interface is published through protocol declaration.
fields
anonymous object
delegate
selector
27. Xcode sequence to convert non-ARC apps to ARC
remote object
Edit>Refactor>Convert to Objective-C ARC
init
zero
28. 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.
Pointers
encapsulation
@implementation
Cocoa
29. Square bracket syntax for calling a method
[receiver message];
properties
unitary
@implementation
30. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
asynchronous message
abstract class
message expression
@implementation
31. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
Signed
asterisk (*)
class object
designated
32. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
class
Unsigned
floating-point
compile time
33. Data types are divided into two main categories: integer and ______
runtime
floating-point
Smalltalk
NSString
34. ______ operators take a single operand
Unitary
procedures
remote message
NSObject
35. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
class object
Enumerations
value
doubles
36. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
superclass
class method
instance
heap
37. C-style strings are stored in an array of _____
NSObject
class
delegate
chars
38. Same as class object. (first way to say it.)
abstract class
class
dereference (dereferencing)
factory
39. 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
-
id
Smalltalk
40. An object that acts on behalf of another object.
object
abstract superclass
distributed objects
delegate
41. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
namespace
dangling pointer
weak
42. When creating a class header file you begin with the _____ keyword and close with the @end keyword
%@
superset
@interface
Pointers
43. _____ operators take 2 operands
Binary
abstract class
copy
object
44. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
procedural programming language
class
C operators
dispatch table
45. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
developer intent
procedural programming language
instance method
superset
46. 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).
implementation
factory object
heap
ampersand (&)
47. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
comma-separated
distributed objects
ARC
subclass
48. Symbol used to denote a placeholder in a format string
encapsulation
namespace
dynamic typing
%
49. This symbol denotes a method as being an instance method
strong
mutex
printf( )
-
50. All objects are created on the _____
structures
runtime
encapsulation
heap