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. _____ operators take 2 operands
Binary
dereference (dereferencing)
+
reference counting
2. 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.
namespace
informal protocol
designated
remote message
3. 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.
conform
zero
+
dynamic allocation
4. A set of method definitions that is segregated from the rest of the class definition.
category
informal protocol
binary
dynamic allocation
5. Property attribute that causes the setter to store a strong reference to the assigned value
link time
synchronous message
Product>Profile>Leaks>Profile
strong
6. Another name for a class that's defined solely so that other classes can inherit from it.
null
abstract superclass
class
attributes
7. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
informal protocol
zero
compile time
instance
8. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
copy
designated
subclass
9. _____ 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'.
NSObject
Encapsulation
Unsigned
ampersand (&)
10. Objective-C is a _____ of the C language
class object
superset
method
square brackets
11. Same as class object. (first way to say it.)
dereference (dereferencing)
factory
ARC
Unsigned
12. The _____ function can be used to print a message to the console
factory object
printf( )
instance method
Interface Builder
13. Property attribute that synthesizes both a getter and setter for the property
readwrite
NSString
instance method
attributes
14. 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.
developer intent
formal protocol
runtime
superset
15. The most flexible C data type: ______
strong
null
superset
struct
16. Objective-C binds methods and arguments at _____ instead of compile time
class
Encapsulation
instance
runtime
17. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
runtime
value
Edit>Refactor>Convert to Objective-C ARC
18. A struct may contain multiple ____ consisting of different data types
doubles
fields
anonymous object
dangling pointer
19. ______ operators take a single operand
instance variable
dynamic allocation
Unitary
pointers
20. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
superclass
inheritance hierarchy
long long
fields
21. 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
%
deprecated
encapsulation
22. There are ____ fundamental building blocks in Objective-C
inheritance hierarchy
9
message
properties
23. Any class that's one step below another class in the inheritance hierarchy.
subclass
ARC
precedence
cannot
24. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
method
delegates
class object
designated
25. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
fields
readonly
procedural programming language
attributes
26. The root class in Objective-C
NSObject
class
printf( )
reference counting
27. _____ data types can be both positive and negative
structures
Signed
message expression
class
28. A compiler feature that provides automated memory management
implementation
ARC
properties
method
29. _____ allow indirect access and modification of a variable's value.
floating-point
Pointers
NSString
AppKit
30. An object id with a value of 0.
nil
interface
Enumerations
heap
31. ____ provide a concise & elegant method for defining a discrete set of values
@implementation
dispatch table
instance variable
Enumerations
32. ______ data types are always zero or greate
message
superclass
Unsigned
adopt
33. A class is said to do this when it declares that it implements all the methods in the protocol.
heap
class object
adopt
[receiver message];
34. This symbol denotes a method as being an instance method
nil
-
static typing
Interface Builder
35. A protocol declared as a category usually as a category of the NSObject class.
synchronous message
informal protocol
Smalltalk
asterisk (*)
36. Objective-C's protocols are really about communicating _____ _______
readonly
init
developer intent
Unitary
37. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
object
strong
dispatch table
nil
38. Xcode sequence to convert non-ARC apps to ARC
conform
implementation
Edit>Refactor>Convert to Objective-C ARC
message expression
39. 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.
comma-separated
formal protocol
abstract class
compile time
40. ARC is susceptible to retain _____
cycles
pointer
procedures
abstract class
41. In a home building analogy a ____ is the blueprint and the object is the house
class
Cocoa
deprecated
mutex
42. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
attributes
C operators
runtime
precedence
43. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
-
comma-separated
delegate
delegates
44. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
class
memory leak
event
remote message
45. Property attribute that causes the setter to store a copy of the assigned value
binary
polymorphism
copy
compile time
46. 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
square brackets
conform
object
Binary
47. An object of unknown class. Interface is published through protocol declaration.
asterisk (*)
anonymous object
framework
cannot
48. 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.
+
informal protocol
object
memory leak
49. 3 Common Float data types: float - _____ - CGFloat
inheritance hierarchy
double
structures
message expression
50. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
procedural programming language
mutex
id
cannot
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