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. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
memory leak
binary
Cocoa
subclass
2. 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
selector
cycles
square brackets
3. An object id with a value of 0.
abstract class
designated
nil
@interface
4. A protocol declared as a category usually as a category of the NSObject class.
receiver
Unsigned
developer intent
informal protocol
5. A compiler feature that provides automated memory management
Unsigned
conform
ARC
remote object
6. A message sent from one application to an object in another application.
abstract class
delegate
remote message
Smalltalk
7. There are ____ fundamental building blocks in Objective-C
factory object
9
class object
inheritance
8. 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.
instance
asterisk (*)
superset
category
9. 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.
abstract superclass
Protocols
init
formal protocol
10. Square bracket syntax for calling a method
[receiver message];
ARC
interface
receiver
11. 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.
runtime
%
instance variable
Signed
12. Any class that's one step below another class in the inheritance hierarchy.
event
inheritance
cycles
subclass
13. ____ provide a concise & elegant method for defining a discrete set of values
factory object
class method
Enumerations
implementation
14. This symbol denotes a method as being an instance method
class
-
event
Edit>Refactor>Convert to Objective-C ARC
15. _____ 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'.
struct
readonly
Encapsulation
@interface
16. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
binary
developer intent
superclass
@interface
17. 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.
weak
chars
Interface Builder
superclass
18. Xcode sequence to convert non-ARC apps to ARC
Edit>Refactor>Convert to Objective-C ARC
anonymous object
-
printf( )
19. Objective-C's protocols are really about communicating _____ _______
outlet
id
developer intent
event
20. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
instance
Protocols
chars
printf( )
21. 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.
designated
runtime
message
Cocoa
22. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
compile time
strong
null
dispatch table
23. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
struct
+
framework
chars
24. 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.
Unitary
AppKit
properties
Edit>Refactor>Convert to Objective-C ARC
25. Property attribute that synthesizes both a getter and setter for the property
chars
[receiver message];
structures
readwrite
26. 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.
deprecated
Cocoa
inheritance
class object
27. 3 Common Float data types: float - _____ - CGFloat
double
static typing
struct
floating-point
28. Property attribute that synthesizes only a getter for the property
nil
category
comma-separated
readonly
29. All objects are created on the _____
doubles
anonymous object
heap
interface
30. A set of method definitions that is segregated from the rest of the class definition.
category
nil
instance variable
adopt
31. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
designated
procedural programming language
C operators
%
32. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
doubles
designated initializer
mutex
compile time
33. _____ allow indirect access and modification of a variable's value.
Pointers
remote message
assignment
instance variable
34. Any method that can be used by an instance of a class rather than by the class object.
instance
implementation
event
instance method
35. 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
selector
reference counting
mutex
36. Data types are divided into two main categories: integer and ______
instance variable
%
floating-point
long long
37. A struct may contain multiple ____ consisting of different data types
weak
synchronous message
fields
Edit>Refactor>Convert to Objective-C ARC
38. Objective-C binds methods and arguments at _____ instead of compile time
superclass
dangling pointer
static typing
runtime
39. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
mutex
instance
abstract superclass
asynchronous message
40. A variable that points to the memory address of another value
selector
Interface Builder
pointer
nil
41. Discovering the class of an object at runtime rather than at compile time.
copy
@interface
dynamic typing
nil
42. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
init
printf( )
remote message
43. Objective-C is a _____ of the C language
superset
deprecated
binary
delegates
44. Placing a ____ before a normal variable name gives it's address
ampersand (&)
null
readonly
Unsigned
45. In object-oriented programming the object that is sent a message.
receiver
C operators
fields
instance
46. Objective-C methods are called using ____ _____
zero
Encapsulation
precedence
square brackets
47. Finding the method implementation to invoke in response to the message
memory leak
dynamic binding
precedence
framework
48. The process of setting or reading the value at an address pointed to by a pointer
chars
receiver
dereference (dereferencing)
event
49. A method that can operate on class objects rather than instances of the class.
class method
null
category
dispatch table
50. 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.
category
object
zero
ampersand (&)