Description of this paper

C# keywords include




1. (TCOs 1, 6) C# keywords include _____ and _____. (Points: 5);case, for;catch, trying;int, nullset;try, dynamic;Question 2.2. (TCOs 1, 6) Set a variable to a value with the symbol _____, and test equality with _____. (Points: 5);=, =;==, ==;==, =;=, ==;Question 3.3. (TCOs 1, 6) Since data stored in _____ is lost when the computer?s power is turned off, that type of memory is considered to be _____. (Points: 5);RAM, volatile;auxiliary storage, volatile;RAM, nonvolatile;auxiliary storage, nonvolatile;Question 4.4. (TCOs 2, 3) Which escape sequence is used to display a backslash within a string literal on the output console? (Points: 5);Special characters cannot be added to string literals.;\n;\\;Return character;Question 5.5. (TCOs 2, 3) The keyword ?void? means that a method _____. (Points: 5);does not return a value;is invalid;releases memory after it is called;clears all variables it is passed;Question 6.6. (TCOs 2, 3) A computer uses ____ numerals to represent and manipulate data. (Points: 5);two;eight;10;16;Question 7.7. (TCO 4) Given that a is 5, b is 6, and c is 8, which of the following is false? (Points: 5);c >= 8;a >= 0;a <= (b * 2);(1 + a) != b;Question 8.8. (TCO 4) A home improvement store is giving a discount of 20% on all purchases of more than $250. Which of the following is the appropriate structure to use to program the statement? (Points: 5);Loop;Method;Decision;Sequence;Question 9.9. (TCO 5) Your program keeps asking for Student IDs until he/she enters ?AAAAA.? In this context, the ?AAAAA? is used as a(n) _____. (Points: 5);accumulator;counter;integer data type;sentinel value;Question 10.10. (TCO 5) (TCO 5) The _____ structure is a _____ loop, meaning that its conditional expression is tested after the statements inside its body execute. (Points: 5);do-while, posttest;do-while, pretest;while, posttest;while, pretest;Page 2;Question 1.1. (TCOs 7, 8) Which of the following is a valid overloaded version of this method?;char CalculateGrade(double val1, double val2);(Points: 5);char CalculateGrade(int val1);char CalculateMyGrade(int val1, double val2);char CalculateMyGrade(double val1);double CalculateGrade(double val1, double val2);Question 2.2. (TCOs 7, 8) Which is probably a call to an accessor method? (Points: 5);SetNoOfYards(double yds);double yds = GetNoOfYards();CarpetCalculator plush = new CarpetCalculator();double yards = yds.calcYards();Question 3.3. (TCOs 7, 8) Which is not a valid name for a method or function? (Points: 5);mod1;mod 1;MyMod1;mod_1;Question 4.4. (TCOs 9, 10) In Design mode, set the words that will appear in a textbox by modifying its _____ property in the Properties window. (Points: 5);label;font;name;text;Question 5.5. (TCOs 9, 10) When the user of your fast-food ordering GUI selects the ?checkBoxBurger? CheckBox, the string ?Burger? should appear in the ?listBoxOrder? ListBox. To implement this functionality, write _____ in the ckBoxBurger_CheckedChanged() event handler. (Points: 5);if;(ckBoxBurger.isChecked);listBoxOrder.Items.Add("Burger");if (ckBoxBurger.Checked);listBoxOrder.Add("Burger");if (ckBoxBurger.isChecked());listBoxOrder.Text = "Burger;if (ckBoxBurger.Checked);listBoxOrder.Items.Add("Burger");Question 6.6. (TCOs 9, 10) The first time a programmer double clicks on a button object in design mode, the button?s default event handler method _____ is added to the code. (Points: 5);Click();Clicked();Double_Click();Double_Clicked();Question 7.7. (TCOs 11, 12) To pass the first and second elements of the myData array to the DisplayItems method, replace the commented line below with _____.;static void;Main();int[] myData = {1,2,3,4};//call DisplayItems;public static void DisplayItems(params;int[] item);for (inti=0, i


Paper#67459 | Written in 18-Jul-2015

Price : $43