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. Property attribute where the setter stores the assigned value but does not perform any memory management.
synchronous message
mutex
long long
assign
2. This symbol denotes a method as being a class method
Protocols
+
instance method
9
3. a+b; is an example of using a _____ operator
developer intent
Categories
binary
conform
4. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
static typing
long long
cannot
framework
5. C-style strings are stored in an array of _____
chars
reference counting
AppKit
class
6. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dynamic binding
instance method
dispatch table
class object
7. Property attribute that causes the setter to store a copy of the assigned value
method
copy
instance variable
polymorphism
8. ______ operators take a single operand
memory leak
precedence
pointer
Unitary
9. 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
properties
instance method
synchronous message
conform
10. Xcode sequence to examine an app for memory leaks or retain cycles
zero
Product>Profile>Leaks>Profile
pointer
inheritance hierarchy
11. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
asterisk (*)
informal protocol
interface
12. 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.
nonatomic
instance
designated
nil
13. 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.
inheritance hierarchy
factory
memory leak
subclass
14. Any class that's one step below another class in the inheritance hierarchy.
subclass
factory object
framework
superclass
15. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.
weak
reference counting
Cocoa
Interface Builder
16. All objects are created on the _____
heap
%@
mutex
Pointers
17. The process of setting or reading the value at an address pointed to by a pointer
@interface
dereference (dereferencing)
precedence
runtime
18. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
abstract class
class object
conform
instance
19. Any method that can be used by an instance of a class rather than by the class object.
instance method
namespace
message
cycles
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.
abstract superclass
dynamic typing
pointer
runtime
21. Property attribute that causes the setter to store a strong reference to the assigned value
id
init
Smalltalk
strong
22. a++; is an example of using a _____ operator
unitary
factory
value
ARC
23. 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.
@interface
link time
Pointers
inheritance
24. In object-oriented programming the object that is sent a message.
designated
instance
instance method
receiver
25. A class is said to do this when it declares that it implements all the methods in the protocol.
mutex
protocol
adopt
runtime
26. An object of unknown class. Interface is published through protocol declaration.
unitary
Smalltalk
anonymous object
asterisk (*)
27. 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.
dispatch table
class object
deprecated
unitary
28. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
long long
comma-separated
Protocols
polymorphism
29. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
dispatch table
[receiver message];
event
encapsulation
30. 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.
receiver
delegate
formal protocol
procedures
31. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
superset
precedence
instance variable
32. To destroy an object set the variable that points to it to _____
chars
nil
asterisk (*)
compile time
33. C-style strings always end with a ____ character
event
conform
null
object
34. The most flexible C data type: ______
abstract class
weak
memory leak
struct
35. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
developer intent
procedural programming language
double
polymorphism
36. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
nil
link time
memory leak
static typing
37. Objective-C methods are called using ____ _____
square brackets
informal protocol
ampersand (&)
long long
38. 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.
instance
receiver
abstract class
category
39. A set of method definitions that is segregated from the rest of the class definition.
category
Cocoa
long long
superclass
40. 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.
Binary
asynchronous message
distributed objects
procedural programming language
41. _____ allow indirect access and modification of a variable's value.
remote object
+
delegates
Pointers
42. 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.
selector
dynamic allocation
outlet
NSObject
43. There are ____ fundamental building blocks in Objective-C
9
precedence
@interface
event
44. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
inheritance hierarchy
receiver
deprecated
45. In Objective-C floats are more commonly used than ______
Product>Profile>Leaks>Profile
comma-separated
zero
doubles
46. The root class in Objective-C
id
abstract superclass
NSObject
ampersand (&)
47. Property attribute that synthesizes both a getter and setter for the property
fields
readwrite
C operators
[receiver message];
48. In a format string the place holder for an object is ______
readwrite
pointers
%@
designated
49. ______ data types are always zero or greate
message
AppKit
Protocols
Unsigned
50. Square bracket syntax for calling a method
runtime
[receiver message];
assignment
cycles
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