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 method that can operate on class objects rather than instances of the class.
value
method
init
class method
2. _____ operators take 2 operands
Binary
mutex
message expression
category
3. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
floating-point
null
value
instance method
4. A variable that points to the memory address of another value
pointer
message expression
Interface Builder
polymorphism
5. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
instance
structures
encapsulation
dispatch table
6. 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.
NSObject
encapsulation
chars
abstract class
7. A struct may contain multiple ____ consisting of different data types
floating-point
fields
class
inheritance
8. Placing a ____ before a normal variable name gives it's address
precedence
cannot
init
ampersand (&)
9. Initializer method traditionally begin with the _____ prefix
square brackets
Binary
init
asterisk (*)
10. Instance variables are optional in iOS if ________ are used
message
properties
runtime
unitary
11. 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
Unitary
precedence
superclass
12. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
Categories
Product>Profile>Leaks>Profile
@implementation
readwrite
13. 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
@implementation
unitary
NSString
ARC
14. An object id with a value of 0.
floating-point
Encapsulation
assignment
nil
15. 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.
class
instance
interface
instance method
16. a++; is an example of using a _____ operator
unitary
polymorphism
developer intent
Categories
17. 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.
reference counting
readonly
encapsulation
instance variable
18. 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.
Encapsulation
compile time
AppKit
selector
19. Objective-C is a _____ of the C language
printf( )
dereference (dereferencing)
inheritance hierarchy
superset
20. Property attribute that synthesizes only a getter for the property
nil
mutex
runtime
readonly
21. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
superclass
deprecated
adopt
procedures
22. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
Unsigned
unitary
outlet
23. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
assign
Smalltalk
polymorphism
chars
24. 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
Interface Builder
dangling pointer
factory
conform
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
synchronous message
struct
cycles
superset
26. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
dangling pointer
nonatomic
Product>Profile>Leaks>Profile
27. To destroy an object set the variable that points to it to _____
polymorphism
double
nil
instance method
28. ____ provide a concise & elegant method for defining a discrete set of values
fields
inheritance hierarchy
Enumerations
Interface Builder
29. In a format string the place holder for an object is ______
readwrite
Signed
conform
%@
30. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
readonly
pointers
zero
framework
31. Symbol used to denote a placeholder in a format string
-
deprecated
%
factory
32. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
dereference (dereferencing)
chars
polymorphism
implementation
33. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
link time
fields
memory leak
interface
34. 3 Common Float data types: float - _____ - CGFloat
chars
delegate
protocol
double
35. _____ data types can be both positive and negative
Signed
procedures
nil
distributed objects
36. The most flexible C data type: ______
cannot
Unitary
struct
structures
37. An object that acts on behalf of another object.
%
zero
mutex
delegate
38. Same as class object. (second way to say it.)
zero
dereference (dereferencing)
readonly
factory object
39. C-style strings always end with a ____ character
null
class object
dangling pointer
Interface Builder
40. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.
class
class object
readonly
designated initializer
41. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
[receiver message];
nil
mutex
assignment
42. An architecture that facilitates communication between objects in different address spaces.
distributed objects
memory leak
runtime
[receiver message];
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'.
Unsigned
Encapsulation
structures
attributes
44. The _____ function can be used to print a message to the console
pointers
printf( )
dereference (dereferencing)
namespace
45. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
C operators
protocol
method
46. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
comma-separated
%@
Categories
floating-point
47. _____ allow you to add new methods to existing classes
value
Categories
encapsulation
protocol
48. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
receiver
floating-point
long long
49. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
null
object
copy
asterisk (*)
50. C-style strings are stored in an array of _____
message expression
formal protocol
chars
encapsulation
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