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. 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.
instance variable
@implementation
heap
runtime
2. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
binary
delegates
memory leak
procedures
3. 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.
Interface Builder
Categories
@implementation
link time
4. 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.
Interface Builder
inheritance
selector
abstract class
5. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).
message expression
dangling pointer
NSObject
ampersand (&)
6. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
Pointers
strong
distributed objects
7. The most flexible C data type: ______
Cocoa
%
binary
struct
8. _____ operators take 2 operands
asterisk (*)
Edit>Refactor>Convert to Objective-C ARC
comma-separated
Binary
9. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
abstract class
Product>Profile>Leaks>Profile
event
Signed
10. An object that acts on behalf of another object.
delegate
link time
null
class object
11. A set of method definitions that is segregated from the rest of the class definition.
readonly
weak
anonymous object
category
12. Property attribute that causes the setter to store a copy of the assigned value
Pointers
copy
cycles
designated
13. In the Objective-C language the declaration of a group of methods not associated with any particular class.
fields
anonymous object
protocol
attributes
14. Property attribute that synthesizes both a getter and setter for the property
readwrite
properties
implementation
class object
15. 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
Interface Builder
%@
memory leak
16. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
remote object
link time
-
17. Three main categories of more complicated data structures:_______ - arrays and structs
informal protocol
static typing
pointers
heap
18. A variable that points to the memory address of another value
pointer
abstract class
object
square brackets
19. Objective-C objects should use strong or weak ______
attributes
implementation
struct
deprecated
20. Any class that's one step below another class in the inheritance hierarchy.
subclass
+
readonly
superset
21. In Objective-C floats are more commonly used than ______
AppKit
class
attributes
doubles
22. 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.
strong
double
encapsulation
init
23. Xcode sequence to examine an app for memory leaks or retain cycles
subclass
Product>Profile>Leaks>Profile
square brackets
value
24. In object-oriented programming the object that is sent a message.
receiver
Cocoa
abstract class
event
25. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
dispatch table
designated
strong
dangling pointer
26. 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
heap
-
%
27. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
Categories
distributed objects
value
polymorphism
28. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
properties
Edit>Refactor>Convert to Objective-C ARC
long long
abstract superclass
29. A ____ ____ is a situation where you free memory and then accidentally continue to use it
mutex
procedural programming language
comma-separated
dangling pointer
30. 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.
Encapsulation
object
link time
Smalltalk
31. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
adopt
outlet
formal protocol
value
32. 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.
delegate
message expression
instance variable
Categories
33. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
delegate
runtime
inheritance
pointer
34. An architecture that facilitates communication between objects in different address spaces.
runtime
%
distributed objects
null
35. C-style strings are stored in an array of _____
class
chars
[receiver message];
polymorphism
36. Objective-C methods are called using ____ _____
synchronous message
NSObject
square brackets
copy
37. Objective-C's protocols are really about communicating _____ _______
Interface Builder
developer intent
class
encapsulation
38. In a format string the place holder for an object is ______
value
Pointers
instance
%@
39. A compiler feature that provides automated memory management
attributes
ARC
chars
procedures
40. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.
struct
procedural programming language
asynchronous message
id
41. _____ allow indirect access and modification of a variable's value.
implementation
Unsigned
message expression
Pointers
42. Objective-C is a _____ of the C language
[receiver message];
superset
cannot
Unsigned
43. 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
synchronous message
subclass
deprecated
adopt
44. In object-oriented programming a procedure that can be executed by an object.
class object
Encapsulation
method
id
45. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
formal protocol
nil
subclass
46. All objects are created on the _____
delegates
delegate
heap
doubles
47. A class is said to do this when it declares that it implements all the methods in the protocol.
strong
delegate
superset
adopt
48. In a home building analogy a ____ is the blueprint and the object is the house
class
ampersand (&)
structures
dereference (dereferencing)
49. a+b; is an example of using a _____ operator
procedural programming language
Protocols
binary
framework
50. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).
%@
implementation
method
cycles