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. a+b; is an example of using a _____ operator
unitary
assign
fields
binary
2. Objective-C is a _____ of the C language
Cocoa
superset
designated
readonly
3. In a format string the place holder for an object is ______
link time
asterisk (*)
superclass
%@
4. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
strong
polymorphism
long long
formal protocol
5. A method that can operate on class objects rather than instances of the class.
designated
class method
outlet
Unsigned
6. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
dynamic typing
inheritance
floating-point
memory leak
7. 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.
asynchronous message
strong
link time
namespace
8. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
procedures
NSObject
compile time
copy
9. A variable that points to the memory address of another value
pointer
Encapsulation
superclass
fields
10. The root class in Objective-C
encapsulation
procedures
NSObject
conform
11. 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.
square brackets
weak
instance
Interface Builder
12. 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
dangling pointer
synchronous message
designated
adopt
13. Initializer method traditionally begin with the _____ prefix
event
init
pointers
value
14. Any method that can be used by an instance of a class rather than by the class object.
ampersand (&)
instance method
C operators
Edit>Refactor>Convert to Objective-C ARC
15. ARC is susceptible to retain _____
message expression
heap
delegate
cycles
16. 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
nonatomic
Categories
remote object
17. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
Unsigned
assign
link time
long long
18. 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.
Unitary
attributes
instance variable
ampersand (&)
19. 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
framework
heap
-
20. A protocol that's declared with the @protocol directive. Classes can adopt these - objects can respond at runtime when asked if they conform to them and instances can be typed by those that they conform to.
anonymous object
formal protocol
memory leak
floating-point
21. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
memory leak
event
abstract class
protocol
22. An object in another application - one that's a potential receiver for a remote message.
Edit>Refactor>Convert to Objective-C ARC
NSString
remote object
receiver
23. Symbol used to denote a placeholder in a format string
%
pointers
message expression
Protocols
24. The first index in an array is valued at ____
memory leak
zero
assignment
class
25. The _____ function can be used to print a message to the console
remote object
Enumerations
printf( )
structures
26. 3 Common Float data types: float - _____ - CGFloat
double
assign
instance variable
Smalltalk
27. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
class object
9
synchronous message
28. An object of unknown class. Interface is published through protocol declaration.
anonymous object
Encapsulation
runtime
remote object
29. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
zero
nil
deprecated
encapsulation
30. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
abstract superclass
+
dispatch table
designated initializer
31. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
outlet
comma-separated
+
procedures
32. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
pointers
precedence
Pointers
pointer
33. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
square brackets
9
Edit>Refactor>Convert to Objective-C ARC
34. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
ampersand (&)
Interface Builder
assignment
superclass
35. 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.
Interface Builder
abstract superclass
[receiver message];
object
36. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
message expression
method
zero
value
37. a++; is an example of using a _____ operator
link time
pointers
unitary
factory object
38. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
Enumerations
cannot
protocol
class
39. 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.
receiver
selector
Edit>Refactor>Convert to Objective-C ARC
asynchronous message
40. C-style strings always end with a ____ character
attributes
null
interface
init
41. Three main categories of more complicated data structures:_______ - arrays and structs
binary
pointers
protocol
anonymous object
42. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
interface
structures
Enumerations
nil
43. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
factory object
heap
interface
44. Objective-C's protocols are really about communicating _____ _______
comma-separated
developer intent
polymorphism
assignment
45. In object-oriented programming a procedure that can be executed by an object.
heap
method
nil
asterisk (*)
46. _____ 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'.
binary
Encapsulation
Unsigned
comma-separated
47. 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.
dynamic allocation
Cocoa
receiver
value
48. A compiler feature that provides automated memory management
procedures
class object
abstract superclass
ARC
49. 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.
attributes
class object
%
factory object
50. This symbol denotes a method as being an instance method
link time
NSString
cycles
-