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. 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
Product>Profile>Leaks>Profile
runtime
protocol
2. Objective-C methods are called using ____ _____
remote object
delegate
Encapsulation
square brackets
3. 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
Binary
asterisk (*)
structures
compile time
4. Xcode sequence to examine an app for memory leaks or retain cycles
class method
Product>Profile>Leaks>Profile
inheritance hierarchy
printf( )
5. Three main categories of more complicated data structures:_______ - arrays and structs
struct
%
class
pointers
6. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
inheritance
heap
class object
superclass
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
assign
dynamic allocation
compile time
conform
8. 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
remote object
null
%@
9. 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.
readwrite
pointer
event
Interface Builder
10. Property attribute that synthesizes both a getter and setter for the property
readwrite
double
zero
long long
11. 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.
unitary
abstract class
dereference (dereferencing)
9
12. In a format string the place holder for an object is ______
long long
id
%@
Enumerations
13. Same as class object. (first way to say it.)
nil
Pointers
factory
zero
14. C-style strings always end with a ____ character
null
runtime
protocol
Product>Profile>Leaks>Profile
15. 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.
cannot
message expression
dynamic allocation
framework
16. A method that can operate on class objects rather than instances of the class.
comma-separated
class method
dynamic binding
Interface Builder
17. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
delegate
9
deprecated
Unsigned
18. A class is said to do this when it declares that it implements all the methods in the protocol.
structures
encapsulation
adopt
[receiver message];
19. _____ allow you to add new methods to existing classes
subclass
C operators
category
Categories
20. Square bracket syntax for calling a method
unitary
+
[receiver message];
class
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
memory leak
synchronous message
fields
nil
22. Property attribute where the setter stores the assigned value but does not perform any memory management.
@interface
class method
assign
message expression
23. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
event
inheritance
anonymous object
formal protocol
24. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
Enumerations
AppKit
Categories
25. 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.
inheritance
selector
message
binary
26. Property attribute that synthesizes accessors that are not thread safe
pointer
comma-separated
protocol
nonatomic
27. _____ allow indirect access and modification of a variable's value.
Pointers
long long
selector
Product>Profile>Leaks>Profile
28. The _____ function can be used to print a message to the console
printf( )
event
assign
chars
29. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
procedures
runtime
weak
30. Objective-C objects should use strong or weak ______
link time
NSString
cycles
attributes
31. Property attribute that causes the setter to store a copy of the assigned value
assignment
copy
id
pointers
32. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
procedural programming language
memory leak
compile time
link time
33. A variable that points to the memory address of another value
outlet
Smalltalk
pointer
polymorphism
34. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
unitary
structures
asterisk (*)
35. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
dynamic allocation
subclass
weak
method
36. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
procedural programming language
instance variable
formal protocol
anonymous object
37. The root class in Objective-C
NSObject
floating-point
asterisk (*)
memory leak
38. There are ____ fundamental building blocks in Objective-C
runtime
9
NSObject
abstract superclass
39. In Objective-C floats are more commonly used than ______
doubles
Pointers
id
runtime
40. The most flexible C data type: ______
synchronous message
@implementation
struct
[receiver message];
41. Objective-C binds methods and arguments at _____ instead of compile time
ARC
abstract class
runtime
namespace
42. A struct may contain multiple ____ consisting of different data types
fields
instance
floating-point
Edit>Refactor>Convert to Objective-C ARC
43. 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.
attributes
instance variable
link time
dereference (dereferencing)
44. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
+
mutex
comma-separated
polymorphism
45. In a home building analogy a ____ is the blueprint and the object is the house
class method
null
class
synchronous message
46. Any class that's one step below another class in the inheritance hierarchy.
subclass
long long
runtime
developer intent
47. Same as class object. (second way to say it.)
polymorphism
factory object
distributed objects
strong
48. In object-oriented programming a procedure that can be executed by an object.
implementation
method
Cocoa
dynamic allocation
49. A ____ _____ is where you forget to free up memory
remote object
receiver
memory leak
comma-separated
50. A ____ ____ is a situation where you free memory and then accidentally continue to use it
Unitary
cycles
dangling pointer
Pointers