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. C-style strings always end with a ____ character
Interface Builder
pointers
inheritance hierarchy
null
2. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
struct
value
C operators
readwrite
3. Property attribute that synthesizes both a getter and setter for the property
readwrite
framework
square brackets
attributes
4. A variable that points to the memory address of another value
%@
pointer
delegates
Binary
5. A protocol declared as a category usually as a category of the NSObject class.
dynamic typing
weak
informal protocol
memory leak
6. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
id
asterisk (*)
memory leak
copy
7. 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).
event
implementation
designated
Edit>Refactor>Convert to Objective-C ARC
8. 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.
message
assign
instance
ARC
9. 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.
receiver
abstract class
compile time
distributed objects
10. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
unitary
dereference (dereferencing)
asynchronous message
instance
11. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
nil
printf( )
selector
12. _____ operators take 2 operands
selector
Binary
init
nil
13. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
nil
long long
%
assignment
14. An architecture that facilitates communication between objects in different address spaces.
informal protocol
C operators
distributed objects
subclass
15. Objective-C is a _____ of the C language
class method
dynamic typing
ampersand (&)
superset
16. 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
AppKit
Product>Profile>Leaks>Profile
structures
17. 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).
message expression
designated
dereference (dereferencing)
fields
18. 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.
Encapsulation
init
dynamic allocation
method
19. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
weak
heap
polymorphism
20. 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.
conform
runtime
receiver
developer intent
21. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
square brackets
Encapsulation
comma-separated
implementation
22. An object of unknown class. Interface is published through protocol declaration.
anonymous object
procedures
attributes
superset
23. Property attribute that causes the setter to store a strong reference to the assigned value
compile time
asynchronous message
double
strong
24. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
namespace
remote message
formal protocol
procedural programming language
25. A ____ _____ is where you forget to free up memory
procedural programming language
memory leak
instance
selector
26. An object in another application - one that's a potential receiver for a remote message.
remote object
dynamic allocation
formal protocol
assignment
27. 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
designated initializer
struct
factory
asterisk (*)
28. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
pointers
square brackets
superclass
static typing
29. Property attribute that synthesizes only a getter for the property
readonly
readwrite
double
class object
30. 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.
procedural programming language
[receiver message];
instance variable
category
31. An object id with a value of 0.
subclass
floating-point
nil
reference counting
32. In a format string the place holder for an object is ______
structures
instance method
outlet
%@
33. All objects are created on the _____
chars
informal protocol
heap
adopt
34. Instance variables are optional in iOS if ________ are used
properties
procedural programming language
weak
encapsulation
35. In object-oriented programming the object that is sent a message.
zero
heap
@implementation
receiver
36. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.
reference counting
Smalltalk
inheritance hierarchy
namespace
37. Square bracket syntax for calling a method
static typing
dispatch table
[receiver message];
interface
38. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
instance method
cannot
class
attributes
39. 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.
deprecated
formal protocol
abstract class
nil
40. A struct may contain multiple ____ consisting of different data types
event
fields
asterisk (*)
printf( )
41. A message sent from one application to an object in another application.
mutex
-
remote message
adopt
42. ______ operators take a single operand
distributed objects
Unitary
runtime
designated initializer
43. Objective-C methods are called using ____ _____
square brackets
doubles
NSString
@interface
44. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
chars
square brackets
dynamic binding
45. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
procedures
Cocoa
weak
asterisk (*)
46. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
cannot
formal protocol
value
instance
47. 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.
interface
outlet
Unsigned
copy
48. The process of setting or reading the value at an address pointed to by a pointer
factory object
dereference (dereferencing)
[receiver message];
event
49. A class is said to do this when it declares that it implements all the methods in the protocol.
dereference (dereferencing)
adopt
Product>Profile>Leaks>Profile
doubles
50. _____ data types can be both positive and negative
memory leak
assign
Signed
C operators
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