Question types

Start with

Question limit

of 93 available terms

Print test

93 True/False questions

  1. ______ operators take a single operandBinary


  2. The process of setting or reading the value at an address pointed to by a pointerdereference (dereferencing)


  3. A _______ method is one that is likely to be unsupported in the future (although it may work in the present). It's use should be discontinued.deprecated


  4. _____ operators take 2 operandsUnitary


  5. a++; is an example of using a _____ operatorunitary


  6. Create a CGRect object called r3 with an origin (top-left corner) of (100, 200), a width of 10 and a height of 20 using a struct literal formulationCGRect r3 = {{100,200}, {10, 20}};


  7. Property attribute that causes the setter to store a copy of the assigned valuestrong


  8. a+b; is an example of using a _____ operatorbinary


  9. This symbol denotes a method as being an instance method-


  10. Property attribute where the setter stores the assigned value but does not perform any memory management. Should only be used for storing non-object data (int, float, etc). Objective-C objects should use strong or weak attributes insteadassign


  11. _____ data types can be both positive and negative, while ______ data types are always zero or greatesigned and unsigned


  12. Given: a Java command: graduationParty.addAttendeeWithDish("Aunt Jane", "deviled eggs"); Re-write in Objective-C.init


  13. A compiler feature that provides automated memory managementpointer


  14. Xcode sequence to examine an app for memory leaks or retain cyclesProduct>Profile>Leaks>Profile


  15. C-style strings are stored in an array of _____null


  16. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundationsNSObject


  17. Property attribute that causes the setter to store a strong reference to the assigned valueweak


  18. Three main categories of more complicated data structures (beyond simple or 'primitive' data types)true


  19. ARC...two objects directly or indirectly refer to each other using strong references.


  20. Symbol used to denote a placeholder in a format string+


  21. A retain cycle occurs when......two objects directly or indirectly refer to each other using strong references.


  22. The _____ function can be used to print a message to the console9


  23. Objective-C methods are called using ____ _____square brackets


  24. Create a CGRect object called r3 with an origin (top-left corner) of (100, 200), a width of 10 and a height of 20 using a helper function formulationsuperset


  25. Alternative code for: if(venue == nil){[organizer remindToFindVenueForParty];}if(!venue){[organizer remindToFindVenueForParty];}


  26. Procedures (like verbs) are processes that manipulate or transform data, and in Objective-C these 3 elements are _____, ______, and _____chars


  27. True or false: In Objective-C, floats are more commonly used that doublestrue


  28. Square bracket syntax for calling a method...two objects directly or indirectly refer to each other using strong references.


  29. Instance variables are ________ in iOS if ________ are usednull


  30. True or false: When declaring 'id' variables, we do not use an asterisk since the 'id' type is already defined as a pointer to an objectzero


  31. KVOKey-value observing


  32. Write an Objective-C statement to create a literal array of integers named fibo containing 1, 1, 2, 3, 5square brackets


  33. Given: [graduationParty addAttendee: @"Aunt Jane" withDish: @"deviled eggs"]; The 'receiver' is _______; the 'selector' is _________; the 'argument(s)' is(are) _______[graduationParty addAttendee: @"Aunt Jane" withDish: @"deviled eggs"];


  34. The 6 main categories of operators are: ____, _____, _____, ______, _______ and _______signed and unsigned


  35. Placing a(n) ____ before a normal variable name gives it's addressampersand (&)


  36. C-style strings always end with a ____ characternull


  37. The most flexible C data type: ______float, double, CGFloat


  38. In C, all functions pass their arguments by ____, which means the compiler makes local copies of those argumentsprintf( )


  39. In a format string, the place holder for an object is ______%@


  40. Property attribute that synthesizes both a getter and setter for the propertystrong


  41. Protocols are adopted by adding a _____- _______ list of protocols inside _____ ______ after the _______ _________ in a class's _______ blockbinary


  42. 3 Common Float data typesfloat, double, CGFloat


  43. Given: if(n % 2 == 0)isEven = YES; else isEven = NO; Rewrite using a ternary operator formulationisEven = (n%2 == 0)? YES : NO;


  44. Property attribute that synthesizes accessors that are not thread safenonatomic


  45. All objects are created on the _____...two objects directly or indirectly refer to each other using strong references.


  46. Correct the error: NSMutableArray items = [[NSMutableArray init] alloc];Replace 'items' with '*items'


  47. ____ provide a concise, elegant method for defining a discrete set of valuesEnumerations


  48. There are ____ fundamental building blocks in Objective-CNSObject


  49. When creating a class implementation file, you begin with the _____ keyword and close with the _____ keyword@implementation...@end


  50. Correct the error: NSMutableArray items = [[NSMutableArray alloc] init];Add a semicolon to the end of the message


  51. Data types are divided into two main categories: _____ and ______zero


  52. NSMutableArray *items = [[NSMutableArray alloc] init]retain cycles


  53. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of _____, _____, _____, and ______C types, structures, enums, and objects


  54. To create a "Command Line Tool" type project from a template you must choose _____ from the ______ menu in the template selection areanil


  55. Pointers are declared by placing a(n) ___ between the type declaration and the variable namecomma-separated....angled brackets... superclass declaration....@interface


  56. The root class in Objective-Cfloat, double, CGFloat


  57. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: _____ and _______9


  58. Consider: [NSString alloc]. 'alloc' is an example of a(n) ______ method rather than a(n) _______ methodbinary


  59. Objective-C borrows much of its syntax from ______, one of the earliest object-oriented languagesSmalltalk


  60. Property attribute that synthesizes only a getter for the propertycopy


  61. When creating a class header file, you begin with the _____ keyword and close with the _____ keyword@interface...@end


  62. In computer science, the mathematical concept of "order of operations' is known as the "order of ______"precedence


  63. 7 Common Integer data typesfloat, double, CGFloat


  64. To destroy an object, set the variable that points to it to _____struct


  65. If you are compiling an application with ARC, you _____ store Objective-C objects inside a _____null


  66. Initializer method traditionally begin with the _____ prefixinit


  67. Objective-C is a _____ of the C languagesuperset


  68. Each class should have a ______ initializer, a single method responsible for performing all of the object's setup and initialization. Typically it is the initializer with the largest number of arguments.designated


  69. A ____ _____ is where you forget to free up memoryBinary


  70. A struct may contain multiple ____ consisting of ______ data


  71. A ____ ____ is a situation where you free memory and then accidentally continue to use itdangling pointer


  72. Write an Objective-C statement to create an array named myList to hold 10 integersint myList[10];


  73. Rewrite as a 'foreach' construction:for(int i = 0; i < [items count]; i++){NSLog(@"%@", items objectAtIndex:i]);} Use an NSString called 's' as the variable.for(NSString *s in items){ NSLog(@"%@", s)};


  74. Objective-C binds methods and arguments at _____ instead of _______ timeruntime...compile


  75. Integer data types come in _____ and _____ variantssigned and unsigned


  76. Property attribute that causes the setter to store a zeroing weak reference to the assigned valueweak


  77. Rather than using arrays in Objective-C, we often are able to use it's collection classes of ____, ____ and _____ with _____ for stringsnil


  78. What is the result of the following code: int a=10; int b=&a; b=15;chars


  79. Objective-C's protocols are really about communicating _____ _______superset


  80. KVCKey-value observing


  81. True or false: char s1[5] = "test"; is a correct declaration/initialization for a C-style stringtrue (C appends a null value automatically)


  82. Xcode sequence to convert non-ARC apps to ARCEdit>Refactor>Convert to Objective-C ARC


  83. _____ 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'.Encapsulation


  84. What is the intention of the Objective-C command: typedef double NSTimeInterval;Sets an 'alias' for double to better communicate the intent of a section of code.


  85. In the correct statement: int a = 5; 'int' is the ______, 'a' and '5' are the _______ and '=' is the ______. 'a' is known as the variable _______%@


  86. In a home building analogy, a ____ is the blueprint and the _____ is the houseunitary


  87. ARC is susceptible to ____ _____heap


  88. This symbol denotes a method as being a class method+


  89. _____ allow you to add new methods to existing classes.Binary


  90. The first index in an array is valued at ____chars


  91. _____ allow indirect access and modification of a variable's value.Categories


  92. Zeroing weak referencing should be used for _____ and _____ to prevent inadvertent retain cyclesdelegates ... data sources


  93. A variable that points to the memory address of another valuepointer