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
null
superclass
instance
structures
2. 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
long long
dynamic allocation
reference counting
3. ARC is susceptible to retain _____
formal protocol
runtime
remote message
cycles
4. Data types are divided into two main categories: integer and ______
designated
9
floating-point
deprecated
5. 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.
message expression
comma-separated
class object
synchronous message
6. Objective-C is a _____ of the C language
asynchronous message
Smalltalk
superset
synchronous message
7. Square bracket syntax for calling a method
Cocoa
unitary
runtime
[receiver message];
8. A set of method definitions that is segregated from the rest of the class definition.
pointers
asterisk (*)
attributes
category
9. Placing a ____ before a normal variable name gives it's address
ARC
ampersand (&)
class method
NSObject
10. 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.
Product>Profile>Leaks>Profile
reference counting
id
designated
11. 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
polymorphism
AppKit
protocol
12. 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.
instance
object
cannot
nil
13. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
Pointers
long long
class object
14. In a format string the place holder for an object is ______
formal protocol
nil
%@
Protocols
15. In a home building analogy a ____ is the blueprint and the object is the house
dynamic binding
structures
class
runtime
16. 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.
Cocoa
instance variable
%@
+
17. 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
pointer
remote message
Encapsulation
18. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
factory object
Cocoa
inheritance
distributed objects
19. Objective-C's protocols are really about communicating _____ _______
Pointers
message expression
developer intent
zero
20. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
dispatch table
Categories
abstract superclass
21. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
C operators
%@
namespace
interface
22. 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.
nil
encapsulation
interface
Signed
23. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
init
dynamic binding
abstract superclass
24. 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
instance method
structures
class
Unsigned
25. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
Unsigned
procedural programming language
superset
Unitary
26. 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).
ARC
floating-point
implementation
comma-separated
27. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
null
precedence
mutex
fields
28. _____ operators take 2 operands
runtime
Binary
dereference (dereferencing)
developer intent
29. Symbol used to denote a placeholder in a format string
readwrite
comma-separated
floating-point
%
30. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
receiver
adopt
implementation
31. A logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.
interface
delegate
namespace
readwrite
32. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
cannot
pointers
C operators
@implementation
33. In object-oriented programming a procedure that can be executed by an object.
superset
method
selector
NSString
34. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
cycles
message
dereference (dereferencing)
readwrite
35. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
doubles
C operators
class object
abstract superclass
36. To destroy an object set the variable that points to it to _____
namespace
object
nil
@implementation
37. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
instance
@interface
procedures
deprecated
38. Objective-C objects should use strong or weak ______
designated
implementation
asynchronous message
attributes
39. a++; is an example of using a _____ operator
cannot
unitary
synchronous message
assignment
40. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
receiver
framework
event
method
41. Any class that's one step below another class in the inheritance hierarchy.
zero
subclass
designated
conform
42. _____ allow you to add new methods to existing classes
properties
asterisk (*)
Categories
ampersand (&)
43. ____ provide a concise & elegant method for defining a discrete set of values
Pointers
Binary
superset
Enumerations
44. 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
synchronous message
distributed objects
mutex
45. A struct may contain multiple ____ consisting of different data types
adopt
fields
runtime
message
46. A variable that points to the memory address of another value
heap
nonatomic
pointer
event
47. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
designated
value
anonymous object
dynamic binding
48. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.
Unitary
id
instance variable
class
49. 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
class
conform
NSObject
50. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
dynamic typing
Cocoa
class
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