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 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.
dispatch table
dereference (dereferencing)
informal protocol
dynamic allocation
2. 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.
double
abstract superclass
event
AppKit
3. ______ data types are always zero or greate
NSObject
instance variable
dynamic binding
Unsigned
4. In a home building analogy a ____ is the blueprint and the object is the house
message expression
protocol
NSObject
class
5. _____ allow you to add new methods to existing classes
compile time
formal protocol
class
Categories
6. In Objective-C floats are more commonly used than ______
link time
id
null
doubles
7. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
superclass
[receiver message];
superset
@interface
8. This symbol denotes a method as being a class method
instance
remote message
+
Unsigned
9. _____ data types can be both positive and negative
asynchronous message
printf( )
Signed
floating-point
10. Property attribute that synthesizes only a getter for the property
Categories
superset
readonly
runtime
11. The most flexible C data type: ______
floating-point
Encapsulation
dynamic typing
struct
12. C-style strings always end with a ____ character
null
delegates
asynchronous message
procedures
13. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
receiver
comma-separated
procedures
asynchronous message
14. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
Pointers
deprecated
reference counting
properties
15. 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
abstract class
class method
informal protocol
16. Placing a ____ before a normal variable name gives it's address
ampersand (&)
synchronous message
Smalltalk
procedural programming language
17. An architecture that facilitates communication between objects in different address spaces.
adopt
Categories
distributed objects
Pointers
18. An object of unknown class. Interface is published through protocol declaration.
link time
remote message
deprecated
anonymous object
19. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
init
delegates
precedence
square brackets
20. Three main categories of more complicated data structures:_______ - arrays and structs
asterisk (*)
pointers
polymorphism
distributed objects
21. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
properties
static typing
weak
chars
22. Any method that can be used by an instance of a class rather than by the class object.
@interface
%@
instance method
link time
23. 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
conform
encapsulation
polymorphism
asynchronous message
24. 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).
dangling pointer
protocol
implementation
%@
25. Objective-C binds methods and arguments at _____ instead of compile time
inheritance
assign
dangling pointer
runtime
26. An object in another application - one that's a potential receiver for a remote message.
instance method
remote object
designated initializer
9
27. 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
zero
NSString
dynamic binding
NSObject
28. Same as class object. (second way to say it.)
procedures
factory object
NSString
precedence
29. 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.
class object
memory leak
AppKit
selector
30. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
delegates
informal protocol
nil
message
31. A set of method definitions that is segregated from the rest of the class definition.
category
runtime
structures
weak
32. Objective-C's protocols are really about communicating _____ _______
reference counting
square brackets
developer intent
event
33. A class is said to do this when it declares that it implements all the methods in the protocol.
readonly
cannot
adopt
-
34. A compiler feature that provides automated memory management
ARC
instance variable
Smalltalk
@implementation
35. 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.
receiver
AppKit
binary
formal protocol
36. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
unitary
inheritance
cannot
assign
37. Objective-C methods are called using ____ _____
interface
square brackets
instance
ampersand (&)
38. Property attribute that causes the setter to store a strong reference to the assigned value
subclass
procedures
zero
strong
39. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
struct
%@
class method
class
40. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
ARC
polymorphism
mutex
@implementation
41. a++; is an example of using a _____ operator
abstract superclass
%
delegate
unitary
42. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
fields
Edit>Refactor>Convert to Objective-C ARC
event
readwrite
43. ARC is susceptible to retain _____
namespace
Signed
encapsulation
cycles
44. 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.
Interface Builder
remote message
dynamic allocation
unitary
45. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
informal protocol
link time
NSObject
long long
46. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
-
dangling pointer
instance
@interface
47. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
Unitary
inheritance hierarchy
properties
procedural programming language
48. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
subclass
polymorphism
struct
inheritance
49. ______ operators take a single operand
nil
Unitary
adopt
structures
50. a+b; is an example of using a _____ operator
Enumerations
reference counting
binary
procedural programming language
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests