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. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
remote object
cannot
precedence
Encapsulation
2. 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.
procedural programming language
init
outlet
framework
3. _____ data types can be both positive and negative
Signed
id
chars
link time
4. An object id with a value of 0.
AppKit
strong
nil
null
5. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
distributed objects
precedence
object
6. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
protocol
superset
long long
7. 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.
weak
link time
category
conform
8. Property attribute that causes the setter to store a copy of the assigned value
copy
implementation
category
properties
9. An object that acts on behalf of another object.
procedures
[receiver message];
double
delegate
10. A set of method definitions that is segregated from the rest of the class definition.
+
remote message
doubles
category
11. A ____ _____ is where you forget to free up memory
id
memory leak
superclass
synchronous message
12. This symbol denotes a method as being a class method
message expression
%
double
+
13. 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
runtime
assign
Signed
14. Placing a ____ before a normal variable name gives it's address
Smalltalk
asterisk (*)
ampersand (&)
id
15. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.
outlet
reference counting
pointers
C operators
16. A struct may contain multiple ____ consisting of different data types
abstract superclass
link time
fields
dynamic typing
17. Property attribute that synthesizes both a getter and setter for the property
informal protocol
Smalltalk
readwrite
dereference (dereferencing)
18. a+b; is an example of using a _____ operator
binary
link time
class method
weak
19. In object-oriented programming a procedure that can be executed by an object.
zero
method
cannot
AppKit
20. There are ____ fundamental building blocks in Objective-C
procedural programming language
-
9
+
21. An architecture that facilitates communication between objects in different address spaces.
C operators
distributed objects
procedural programming language
dangling pointer
22. Initializer method traditionally begin with the _____ prefix
category
informal protocol
instance
init
23. 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.
selector
null
[receiver message];
interface
24. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.
asynchronous message
assignment
copy
floating-point
25. 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.
instance variable
Edit>Refactor>Convert to Objective-C ARC
structures
ARC
26. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
informal protocol
instance
asterisk (*)
printf( )
27. Data types are divided into two main categories: integer and ______
floating-point
protocol
message expression
Protocols
28. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
runtime
9
dispatch table
C operators
29. Objective-C objects should use strong or weak ______
structures
Protocols
Pointers
attributes
30. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
static typing
Smalltalk
message
informal protocol
31. C-style strings always end with a ____ character
Enumerations
null
@implementation
NSString
32. a++; is an example of using a _____ operator
unitary
instance
class
copy
33. Discovering the class of an object at runtime rather than at compile time.
instance
Encapsulation
dynamic typing
assign
34. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
abstract superclass
Cocoa
doubles
-
35. 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.
nonatomic
cycles
assignment
dynamic allocation
36. 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
unitary
reference counting
designated initializer
37. Objective-C methods are called using ____ _____
delegates
object
square brackets
comma-separated
38. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
value
Protocols
static typing
remote message
39. 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.
class method
cannot
object
instance method
40. A protocol declared as a category usually as a category of the NSObject class.
chars
instance variable
informal protocol
delegate
41. ARC is susceptible to retain _____
polymorphism
designated
class
cycles
42. 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
NSString
method
weak
message
43. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
properties
readwrite
@implementation
NSString
44. 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.
encapsulation
Pointers
cannot
procedural programming language
45. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
class
asterisk (*)
@interface
mutex
46. 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.
formal protocol
chars
receiver
protocol
47. The first index in an array is valued at ____
comma-separated
zero
square brackets
readonly
48. An object of unknown class. Interface is published through protocol declaration.
anonymous object
floating-point
dereference (dereferencing)
id
49. Objective-C binds methods and arguments at _____ instead of compile time
C operators
runtime
Edit>Refactor>Convert to Objective-C ARC
%
50. In Objective-C floats are more commonly used than ______
id
doubles
abstract class
Interface Builder
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