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 C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
dynamic allocation
id
value
properties
2. The first index in an array is valued at ____
asynchronous message
zero
static typing
nil
3. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
Cocoa
event
factory object
inheritance
4. The root class in Objective-C
NSObject
assign
Interface Builder
null
5. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
Enumerations
compile time
floating-point
Categories
6. Finding the method implementation to invoke in response to the message
conform
binary
@interface
dynamic binding
7. C-style strings always end with a ____ character
compile time
null
double
Interface Builder
8. Same as class object. (second way to say it.)
procedural programming language
memory leak
factory object
instance
9. Another name for a class that's defined solely so that other classes can inherit from it.
9
abstract superclass
nonatomic
developer intent
10. a+b; is an example of using a _____ operator
binary
receiver
init
implementation
11. 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
anonymous object
developer intent
designated
12. _____ allow you to add new methods to existing classes
struct
Categories
dynamic typing
strong
13. When creating a class header file you begin with the _____ keyword and close with the @end keyword
method
AppKit
@interface
+
14. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
runtime
nil
instance variable
15. A ____ _____ is where you forget to free up memory
memory leak
runtime
abstract class
null
16. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
designated initializer
runtime
Smalltalk
asterisk (*)
17. _____ allow indirect access and modification of a variable's value.
dynamic allocation
selector
Pointers
ampersand (&)
18. 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.
floating-point
structures
ampersand (&)
AppKit
19. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
deprecated
%
Unitary
framework
20. Objective-C is a _____ of the C language
instance method
superset
printf( )
strong
21. Objective-C binds methods and arguments at _____ instead of compile time
Encapsulation
Binary
memory leak
runtime
22. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
Cocoa
deprecated
superset
inheritance
23. In a format string the place holder for an object is ______
%@
superset
developer intent
assign
24. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
-
instance
superset
25. In a home building analogy a ____ is the blueprint and the object is the house
class
comma-separated
informal protocol
Pointers
26. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
dynamic typing
C operators
Cocoa
readonly
27. A set of method definitions that is segregated from the rest of the class definition.
nonatomic
framework
category
instance variable
28. Data types are divided into two main categories: integer and ______
floating-point
Categories
square brackets
nil
29. 3 Common Float data types: float - _____ - CGFloat
double
assignment
C operators
Cocoa
30. This symbol denotes a method as being an instance method
Pointers
%
method
-
31. Property attribute that causes the setter to store a copy of the assigned value
memory leak
instance variable
procedures
copy
32. ______ data types are always zero or greate
Unsigned
Enumerations
doubles
namespace
33. Same as class object. (first way to say it.)
category
runtime
factory
class
34. 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.
floating-point
doubles
dynamic typing
namespace
35. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
nil
printf( )
-
interface
36. 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.
@implementation
dynamic allocation
message expression
doubles
37. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
remote message
designated
adopt
[receiver message];
38. 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
structures
dynamic typing
NSString
method
39. 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.
informal protocol
factory
dynamic typing
object
40. 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.
inheritance
@interface
encapsulation
remote object
41. C-style strings are stored in an array of _____
inheritance
readonly
long long
chars
42. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
Product>Profile>Leaks>Profile
developer intent
asterisk (*)
instance
43. Objective-C's protocols are really about communicating _____ _______
protocol
instance method
developer intent
chars
44. Any class that's one step below another class in the inheritance hierarchy.
@interface
readonly
instance
subclass
45. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
nil
instance method
weak
NSObject
46. 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
[receiver message];
designated
Categories
47. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.
long long
category
link time
protocol
48. Square bracket syntax for calling a method
weak
double
[receiver message];
floating-point
49. Initializer method traditionally begin with the _____ prefix
outlet
anonymous object
event
init
50. Property attribute that synthesizes accessors that are not thread safe
class object
nonatomic
Unsigned
copy