EEE: Quiz https://eee.uci.edu/toolbox/quiz/form/preview_form.php?back=cre... UCIrvine EEE Home Kojiro Umezaki is logged in [ Search HOME HELP RESOURCES MyEEE TOOLBOX WORKSHOPS CLASS WEBSITES Logout ] EEE QuickLinks Search CONTACT US MAIL ARCHIVES Viewing: Spring Qtr 2012 MyEEE › Quiz › Music 147 Quiz #1 (2011): Preview Preview Quiz Change Term Help & How-to Edit Mode Preview Mode Back This is a preview of your quiz as your participants will see it. Music 147 Quiz #1 (2011) Next >> Cancel Welcome to this quiz. Instructions: Please answer each question below. 1. In Objective-C, if there is an object named foo with a method named doSomething, what is the line of code that calls that method for the object? (1 point) foo.doSomething(); foo->doSomething(); [foo doSomething]; [doSomething foo]; 2. With a buffer size of 1024 bytes, how many sample frames can you represent if each sample requires 16-bits of data and the audio stream is mono (not stereo). (1 point) 256 512 1024 2048 3. Between a class and an object, which one is more like a blue print and which one is more like an actual thing? (1 point) The class is a blue print and the object is an actual thing. 1 of 6 5/2/12 8:58 PM EEE: Quiz https://eee.uci.edu/toolbox/quiz/form/preview_form.php?back=cre... The object is a blue print and the class is an actual thing. 4. A .h file is the implementation file while the .m file is the Objective-C interface file. (1 point) True False 5. The difference between #import "…" and #import <...> is that the former is used for including system interface files while the latter is for custom interface files. (1 point) True False 6. In the class interface declaration, member variables are declared inside the curly brackets. (1 point) True False 7. In the class interface declaration, instance and class methods are declared inside the curly brackets. (1 point) True False 8. What is the name of the Mac OS framework one needs to include in a Xcode project to access the iPhone's audio engine? (1 point) ApplicationServices AudioToolbox AudioUnit Automator 9. What is the recommended number of AudioQueue buffers one should use for iPhone audio development? (1 point) 1 2 3 4 none of the above 10. 2 of 6 The linear PCM audio format is one that is for compressed 5/2/12 8:58 PM EEE: Quiz https://eee.uci.edu/toolbox/quiz/form/preview_form.php?back=cre... data. (1 point) True False 11. How many bits are in a byte? (1 point) 4 8 16 32 12. If a sample format is 16-bits, how many bytes are there in a sample? (1 point) 1 2 3 4 5 13. If an object is named foo and its class declares a method named doSomething with one argument of type double, what is the Objective-C code that you would write to call that method for the foo object? (1 point) [foo doSomething:1.]; [doSomething foo:1.]; [foo doSomething @"2.5"]; [doSomething foo 1.]; 14. In the context of Apple’s AudioToolbox, for linear PCM audio, how many packets are there per frame? (1 point) 1 2 128 256 none of the above 15. What is the value returned by the following call to the sizeof function: sizeof(SInt32)? (1 point) 1 2 3 of 6 5/2/12 8:58 PM EEE: Quiz https://eee.uci.edu/toolbox/quiz/form/preview_form.php?back=cre... 4 16 none of the above 16. If the audio format is defined to be signed 16-bit integer samples, what is the range of values a sample can have? (1 point) -1.0 to +1.0 -16 to +16 -32768 to 32767 none of the above 17. Of the following, which one is related to creating a new instance of a class named foo? (1 point) [foo construct]; [foo create]; [foo alloc]; [foo init]; none of the above 18. In Objective-C, which of the following reserved words is used when an object calls its parent's methods? (1 point) self nil super 19. Which of the following lines of code is most appropriate for declaring an Interface Builder action? (1 point) IBOutlet UISlider *mSlider; IBAction UISlider *mSlider; (IBOutlet) doSlider:(id)sender; (IBAction) doSlider:(id)sender; 20. In Apple's Cocoa and Cocoa Touch frameworks, which of the following classes is most commonly used as a parent class to custom Objective-C classes? (1 point) NSParent NSSuper NSSelf 4 of 6 5/2/12 8:58 PM EEE: Quiz https://eee.uci.edu/toolbox/quiz/form/preview_form.php?back=cre... NSObject 21. anObject.value = newValue; This is the dot notation (syntax) equivalent to: (1 point) int value = [anObject newValue]; [anObject setValue:newValue]; int aValue = [anObject value]; 22. The ratio of the frequency of one note over the frequency of the next semitone (key) above it is (select the closest answer): (1 point) 0.890898718:1 0.943874313:1 1.05946309:1 1.12246205:1 23. Voice* voices[1]; voices[0] = [[Voice alloc] init]; ((Voice_Synth*)voices[0]).freq = 440.; The third line in the above example forces voices[0] to be: (1 point) a Voice class object a Voice_Synth class object a pointer to a Voice class object a pointer to a Voice_Synth class object 24. Which of the following is the correct generalized formula that converts MIDI note numbers to frequency (assuming A above middle-C to be 440 Hz)? (^ means "to the power of") (1 point) 2^((n-60)/12)*440.0 2^((n-69)/12)*440.0 2^(n/12)*440.0 2^((n-60)/12) 2^((n-69)/12) 25. 5 of 6 @property int digit; 5/2/12 8:58 PM EEE: Quiz https://eee.uci.edu/toolbox/quiz/form/preview_form.php?back=cre... The above is the equivalent of declaring which methods? (1 point) @synthesize digit; - (int)setDigit; - (int)digit; - (void)setDigit; - (void)digit; Thank you for completing this quiz. Next >> Cancel Return to Top Electronic Educational Environment, UCIrvine Contact Us | eee@uci.edu | OIT Help Desk: (949) 824-2222 https://eee.uci.edu/toolbox/quiz/form.php/preview_form.php Sitemap / About Us / Accessibility Copyright © 1995-2012 The Regents of the University of California. All rights reserved. Powered by the Office of Information Technology, UCIrvine 6 of 6 5/2/12 8:58 PM