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 ______'
precedence
dereference (dereferencing)
ARC
namespace
2. 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.
designated
adopt
abstract class
zero
3. Another name for a class that's defined solely so that other classes can inherit from it.
asterisk (*)
abstract superclass
method
class method
4. 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.
informal protocol
abstract superclass
%@
runtime
5. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
adopt
fields
Smalltalk
Unsigned
6. 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.
factory
encapsulation
object
instance
7. In the Objective-C language the declaration of a group of methods not associated with any particular class.
formal protocol
protocol
static typing
class object
8. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
class object
%
superclass
runtime
9. Any class that's one step below another class in the inheritance hierarchy.
subclass
adopt
Categories
zero
10. C-style strings always end with a ____ character
ARC
namespace
distributed objects
null
11. Same as class object. (second way to say it.)
AppKit
%@
factory object
heap
12. Objective-C binds methods and arguments at _____ instead of compile time
runtime
adopt
precedence
object
13. The first index in an array is valued at ____
zero
abstract class
encapsulation
instance
14. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
assignment
remote object
double
static typing
15. C-style strings are stored in an array of _____
chars
informal protocol
Product>Profile>Leaks>Profile
dispatch table
16. Square bracket syntax for calling a method
[receiver message];
superclass
deprecated
delegates
17. An object in another application - one that's a potential receiver for a remote message.
distributed objects
remote object
Unsigned
unitary
18. 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.
distributed objects
polymorphism
properties
formal protocol
19. _____ allow you to add new methods to existing classes
NSObject
Categories
nil
Encapsulation
20. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
receiver
Interface Builder
dispatch table
Product>Profile>Leaks>Profile
21. 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
message expression
designated initializer
remote object
factory object
22. 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
+
conform
instance
23. A class is said to do this when it declares that it implements all the methods in the protocol.
long long
polymorphism
selector
adopt
24. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
link time
remote message
asterisk (*)
class method
25. 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
selector
abstract class
synchronous message
attributes
26. Three main categories of more complicated data structures:_______ - arrays and structs
superset
pointers
Cocoa
encapsulation
27. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
@interface
cannot
instance
fields
28. A method that can operate on class objects rather than instances of the class.
instance
class method
strong
assignment
29. A protocol declared as a category usually as a category of the NSObject class.
Product>Profile>Leaks>Profile
9
abstract class
informal protocol
30. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
fields
comma-separated
adopt
assignment
31. A message sent from one application to an object in another application.
factory object
dynamic allocation
remote message
Unsigned
32. A ____ ____ is a situation where you free memory and then accidentally continue to use it
object
dangling pointer
double
Binary
33. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
abstract class
class method
properties
polymorphism
34. The _____ function can be used to print a message to the console
weak
dereference (dereferencing)
conform
printf( )
35. Property attribute that synthesizes both a getter and setter for the property
runtime
class method
readwrite
%
36. Objective-C methods are called using ____ _____
heap
pointers
subclass
square brackets
37. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
designated
comma-separated
null
38. Symbol used to denote a placeholder in a format string
precedence
Pointers
%
[receiver message];
39. A set of method definitions that is segregated from the rest of the class definition.
category
copy
square brackets
Smalltalk
40. a++; is an example of using a _____ operator
strong
unitary
nil
adopt
41. Instance variables are optional in iOS if ________ are used
fields
assignment
properties
struct
42. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
reference counting
designated initializer
asterisk (*)
deprecated
43. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.
compile time
Encapsulation
class method
properties
44. Property attribute that synthesizes only a getter for the property
readonly
instance
namespace
remote message
45. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
cannot
pointer
square brackets
procedural programming language
46. When creating a class header file you begin with the _____ keyword and close with the @end keyword
9
@interface
deprecated
Product>Profile>Leaks>Profile
47. ____ provide a concise & elegant method for defining a discrete set of values
runtime
Enumerations
properties
anonymous object
48. 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
cycles
readwrite
framework
49. 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
instance variable
Binary
Categories
NSString
50. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
long long
unitary
floating-point
dynamic typing
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