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.
-
mutex
Cocoa
developer intent
2. In object-oriented programming the object that is sent a message.
Unitary
dynamic allocation
init
receiver
3. Three main categories of more complicated data structures:_______ - arrays and structs
floating-point
pointers
factory
NSObject
4. 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.
dynamic allocation
NSObject
remote message
formal protocol
5. An object of unknown class. Interface is published through protocol declaration.
structures
anonymous object
dynamic binding
ARC
6. When creating a class header file you begin with the _____ keyword and close with the @end keyword
class object
delegate
@interface
+
7. a+b; is an example of using a _____ operator
inheritance
dangling pointer
deprecated
binary
8. A variable that points to the memory address of another value
pointer
instance
unitary
synchronous message
9. 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.
runtime
%
binary
factory object
10. In a format string the place holder for an object is ______
AppKit
superset
null
%@
11. Initializer method traditionally begin with the _____ prefix
class method
assign
abstract superclass
init
12. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
memory leak
compile time
instance variable
zero
13. ______ operators take a single operand
readonly
init
inheritance hierarchy
Unitary
14. To destroy an object set the variable that points to it to _____
nil
%
binary
message expression
15. _____ allow you to add new methods to existing classes
Categories
asterisk (*)
Cocoa
assignment
16. 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.
abstract class
polymorphism
@interface
ARC
17. Property attribute where the setter stores the assigned value but does not perform any memory management.
Cocoa
value
assign
runtime
18. The root class in Objective-C
event
remote message
NSObject
polymorphism
19. The _____ function can be used to print a message to the console
printf( )
link time
nil
outlet
20. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
object
Smalltalk
readwrite
Categories
21. An object id with a value of 0.
init
cannot
nil
inheritance hierarchy
22. Objective-C objects should use strong or weak ______
attributes
class method
Unitary
Smalltalk
23. C-style strings always end with a ____ character
null
struct
printf( )
NSString
24. 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.
implementation
link time
attributes
designated initializer
25. _____ allow indirect access and modification of a variable's value.
Pointers
synchronous message
abstract class
implementation
26. An architecture that facilitates communication between objects in different address spaces.
dangling pointer
heap
distributed objects
assignment
27. 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
9
factory
comma-separated
conform
28. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
dynamic allocation
NSObject
asynchronous message
comma-separated
29. Square bracket syntax for calling a method
designated initializer
delegate
anonymous object
[receiver message];
30. Objective-C binds methods and arguments at _____ instead of compile time
Protocols
runtime
strong
instance
31. ______ data types are always zero or greate
Unsigned
interface
Categories
runtime
32. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
value
precedence
class method
Unsigned
33. This symbol denotes a method as being a class method
developer intent
Enumerations
+
factory object
34. Property attribute that synthesizes accessors that are not thread safe
implementation
nonatomic
mutex
NSObject
35. 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
link time
Pointers
%@
36. 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
zero
class method
superset
37. Objective-C methods are called using ____ _____
interface
square brackets
developer intent
Enumerations
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.
instance variable
cycles
dynamic allocation
framework
39. 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.
adopt
Categories
instance variable
weak
40. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
dynamic allocation
assignment
protocol
informal protocol
41. Any method that can be used by an instance of a class rather than by the class object.
Binary
instance method
long long
remote message
42. 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.
class object
outlet
interface
struct
43. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
Encapsulation
C operators
formal protocol
Unsigned
44. a++; is an example of using a _____ operator
protocol
runtime
double
unitary
45. Objective-C's protocols are really about communicating _____ _______
deprecated
developer intent
9
nil
46. A protocol declared as a category usually as a category of the NSObject class.
instance variable
developer intent
informal protocol
strong
47. C-style strings are stored in an array of _____
chars
Unitary
%@
pointers
48. Placing a ____ before a normal variable name gives it's address
Smalltalk
zero
ampersand (&)
factory
49. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
nil
procedures
runtime
Unitary
50. ARC is susceptible to retain _____
developer intent
cycles
formal protocol
abstract superclass
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