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. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
selector
%@
Protocols
C operators
2. 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.
link time
comma-separated
dereference (dereferencing)
encapsulation
3. _____ data types can be both positive and negative
Categories
floating-point
Signed
formal protocol
4. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
cannot
runtime
long long
5. _____ operators take 2 operands
instance
informal protocol
Binary
readonly
6. This symbol denotes a method as being a class method
+
implementation
reference counting
interface
7. Another name for a class that's defined solely so that other classes can inherit from it.
event
mutex
abstract superclass
polymorphism
8. Property attribute that synthesizes accessors that are not thread safe
event
subclass
heap
nonatomic
9. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
comma-separated
attributes
informal protocol
factory object
10. _____ allow indirect access and modification of a variable's value.
Cocoa
Pointers
polymorphism
Protocols
11. 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.
instance
link time
receiver
strong
12. 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.
class object
designated initializer
namespace
factory
13. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
precedence
polymorphism
Smalltalk
namespace
14. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro
struct
procedures
runtime
designated initializer
15. 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
class
formal protocol
16. a++; is an example of using a _____ operator
unitary
dynamic typing
Cocoa
event
17. An object id with a value of 0.
polymorphism
nil
informal protocol
class object
18. To destroy an object set the variable that points to it to _____
dynamic allocation
informal protocol
id
nil
19. 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.
dynamic allocation
id
method
receiver
20. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
delegates
encapsulation
Unsigned
21. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
properties
encapsulation
assignment
%
22. 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.
superclass
dereference (dereferencing)
static typing
instance
23. Square bracket syntax for calling a method
class
inheritance hierarchy
nil
[receiver message];
24. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
dynamic allocation
inheritance
compile time
25. A set of method definitions that is segregated from the rest of the class definition.
category
readonly
cycles
factory
26. This symbol denotes a method as being an instance method
anonymous object
inheritance hierarchy
-
Pointers
27. Data types are divided into two main categories: integer and ______
floating-point
attributes
method
distributed objects
28. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
implementation
dynamic binding
delegate
Protocols
29. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
strong
@implementation
abstract class
class object
30. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
procedural programming language
event
AppKit
class object
31. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
square brackets
interface
asynchronous message
32. Same as class object. (first way to say it.)
@interface
factory
dynamic typing
pointer
33. 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).
mutex
implementation
ampersand (&)
selector
34. 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).
remote message
pointers
message expression
NSObject
35. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
Interface Builder
asterisk (*)
asynchronous message
designated
36. Finding the method implementation to invoke in response to the message
NSObject
[receiver message];
zero
dynamic binding
37. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
nil
protocol
asynchronous message
procedures
38. 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
Encapsulation
dereference (dereferencing)
square brackets
39. There are ____ fundamental building blocks in Objective-C
superclass
9
outlet
Smalltalk
40. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
Encapsulation
dynamic binding
reference counting
41. ______ operators take a single operand
zero
Unitary
weak
square brackets
42. C-style strings always end with a ____ character
superset
dispatch table
[receiver message];
null
43. The process of setting or reading the value at an address pointed to by a pointer
Binary
reference counting
dereference (dereferencing)
readwrite
44. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
ampersand (&)
deprecated
square brackets
weak
45. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.
instance variable
outlet
superclass
square brackets
46. A variable that points to the memory address of another value
struct
pointer
heap
AppKit
47. Objective-C objects should use strong or weak ______
NSString
attributes
copy
abstract class
48. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
static typing
link time
instance
framework
49. The most flexible C data type: ______
synchronous message
runtime
square brackets
struct
50. Property attribute that synthesizes both a getter and setter for the property
readwrite
structures
developer intent
class
Sorry!:) No result found.
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