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 the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
+
9
class object
2. 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
factory object
strong
synchronous message
dereference (dereferencing)
3. All objects are created on the _____
encapsulation
outlet
heap
implementation
4. 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
heap
readonly
cycles
5. 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.
Protocols
readwrite
dereference (dereferencing)
instance variable
6. 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.
class method
Unitary
Smalltalk
object
7. 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.
remote object
cycles
designated
Interface Builder
8. C-style strings always end with a ____ character
null
designated
object
precedence
9. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
ARC
long long
dynamic typing
synchronous message
10. ______ data types are always zero or greate
static typing
pointers
Unsigned
framework
11. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
doubles
Enumerations
framework
event
12. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
attributes
class
Encapsulation
13. When creating a class header file you begin with the _____ keyword and close with the @end keyword
Cocoa
id
[receiver message];
@interface
14. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
nil
+
doubles
C operators
15. 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
memory leak
printf( )
dynamic typing
16. 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.
dereference (dereferencing)
inheritance hierarchy
@implementation
polymorphism
17. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
polymorphism
asterisk (*)
null
18. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
mutex
comma-separated
message expression
9
19. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
dangling pointer
Protocols
runtime
encapsulation
20. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
procedures
superclass
assignment
double
21. This symbol denotes a method as being an instance method
-
implementation
properties
conform
22. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
class object
AppKit
instance
comma-separated
23. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
framework
message
zero
24. ____ provide a concise & elegant method for defining a discrete set of values
assign
event
receiver
Enumerations
25. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
dynamic allocation
precedence
nonatomic
interface
26. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
subclass
attributes
instance
cannot
27. 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.
copy
remote message
NSObject
selector
28. 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.
abstract superclass
memory leak
dynamic allocation
Unitary
29. In object-oriented programming the object that is sent a message.
receiver
Smalltalk
compile time
C operators
30. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
category
Signed
deprecated
Encapsulation
31. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
method
message
Pointers
value
32. 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.
runtime
Pointers
anonymous object
square brackets
33. Discovering the class of an object at runtime rather than at compile time.
nil
outlet
dynamic typing
Encapsulation
34. 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.
pointers
AppKit
method
instance
35. ______ operators take a single operand
comma-separated
procedural programming language
Unitary
inheritance
36. The root class in Objective-C
runtime
instance
readwrite
NSObject
37. Xcode sequence to convert non-ARC apps to ARC
9
Edit>Refactor>Convert to Objective-C ARC
static typing
[receiver message];
38. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
category
floating-point
framework
mutex
39. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
unitary
ARC
selector
Cocoa
40. 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.
readonly
ampersand (&)
@interface
reference counting
41. a+b; is an example of using a _____ operator
heap
Smalltalk
attributes
binary
42. Objective-C objects should use strong or weak ______
remote message
runtime
nil
attributes
43. Three main categories of more complicated data structures:_______ - arrays and structs
distributed objects
init
namespace
pointers
44. _____ 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'.
designated
square brackets
long long
Encapsulation
45. 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.
AppKit
cycles
formal protocol
namespace
46. 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.
namespace
assignment
C operators
formal protocol
47. C-style strings are stored in an array of _____
@interface
%
chars
outlet
48. Property attribute that causes the setter to store a copy of the assigned value
copy
weak
comma-separated
cycles
49. An object in another application - one that's a potential receiver for a remote message.
class method
remote object
informal protocol
structures
50. A struct may contain multiple ____ consisting of different data types
%
memory leak
fields
instance variable