How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Scott Your Own Question

Scott
Scott, MIT Graduate
Category: Homework
Satisfied Customers: 3040
Experience:  MIT Graduate (Math, Programming, Science, and Music)
3546829
Type Your Homework Question Here...
Scott is online now
A new question is answered every 9 seconds

Page 1 Question 1.1. (TCOs 1, 6) Instructions written in a

Customer Question

Page 1
Question 1.1. (TCOs 1, 6) Instructions written in a high-level language such as C# ***** be translated into machine-level code by a(n) _____. (Points : 5)
assembler
compiler
interpreter
translator
Question 2.2. (TCOs 1, 6) In the context of object-oriented programming, the Solution Explorer window _____. (Points : 5)
exposes the properties of the control
shows the physical components of the program
lists the events associated with a control
lists the controls on the form
Question 3.3. (TCOs 1, 6) C# ***** include _____ and _____. (Points : 5)
case, For
catch, Try
int, double
Int, Double
Question 4.4. (TCOs 2, 3) Your C# ***** needs to store a single alphanumeric character the user will enter. When your program starts, the default setting for that character should be the letter A. You implement this functionality by writing _____.
(Points : 5)
char myVar = A;
char myVar = ‘A’;
char myVar(‘A’);
char myVar(A);
Question 5.5. (TCOs 2, 3) A computer uses the _____ numbering system to represent and manipulate data. (Points : 5)
binary
decimal
hexadecimal
octal
Question 6.6. (TCOs 2, 3) What will be the output of this statement?
Console.WriteLine("\"to be or not to be\"");
(Points : 5)
“to be or not to be”
\”to be or not to be\”
\ to be or not to be \
to be or not to be
Question 7.7. (TCO 4) What will be the value of the variable "price" after the following code executes?
int myVal = 2;
int price = 0;
switch(myVal)
{
Case 1: price = 3;
Break;
Case 2: price += 4;
Break;
Case 3: price % 5;
Break;
Default: price = 0;
Break;
}
(Points : 5)
3
4
5
0
Question 8.8. (TCO 4) If the expression (true OP false) evaluates to “true,” then what logical operator does OP represent? (Points : 5)
AND
OR
NOT
None of the above
Question 9.9. (TCO 5) The _____ structure is a pretest loop, meaning that its conditional expression is tested _____ the statements inside its body execute. (Points : 5)
do-while, before
do-while, after
while, before
while, after
Question 10.10. (TCO 5) What output will this set of statements produce?
int a = 10;
while (a <= 10)
{
Console.Write("{0}\t", a);
a--;
}
Console.Write("{0}\t", a);
(Points : 5)
An infinite loop
An exception
10
10 10
1. (TCOs 7, 8) Which words should be used to indicate that this method returns nothing to a calling method, and that its access has no restrictions?
_____ MyFunc(); (Points : 5)
private static null
public static null
private static void
public static void
Question 2.2. (TCOs 7, 8) A local variable _____. (Points : 5)
can only be accessed by the method that has declared it
should only be used when a global variable won’t work
can be seen but not used outside of the method that has declared it
cannot have the same name as a local variable in another method
Question 3.3. (TCOs 7, 8) Which is a predefined C# *****? (Points : 5)
Console.PrintLine();
Console.Print();
Math.Sum();
Math.Sin();
Question 4.4. (TCOs 9, 10) A _____ is primarily used to provide descriptive text to let the user know the purpose of another control, such as a textbox. (Points : 5)
Title
Label
Frame
Button
Question 5.5. (TCOs 9, 10) The first time a programmer double clicks on a Form object in Design Mode, the Form’s default event handler method _____ is added to the code. (Points : 5)
Click()
Double_Click()
Load()
Load_Form()
Question 6.6. (TCOs 9, 10) When the user of your flight reservation GUI selects the “checkBoxAirGhana” CheckBox, the string “AirGhana” should appear in the “listBoxOrder” ListBox. To implement this functionality, write _____ in the ckBoxAirGhana_CheckedChanged() event handler.
(Points : 5)
if (ckBoxAirGhana.Checked == true)
{
listBoxOrder.Items.Add("AirGhana");
}
if (ckBoxAirGhana.Checked)
{
listBoxOrder.Add("AirGhana");
}
if (ckBoxAirGhana.Checked == true)
{
listBoxOrder.Text = "AirGhana";
}
if (ckBoxAirGhana.Checked)
{
listBoxOrder.AddText("AirGhana");
}
Question 7.7. (TCOs 11, 12) In your program, mySched was declared as an ArrayList. To append the number 4 to the end of mySched, write _____. (Points : 5)
mySched.Set(4);
mySched.Insert(4);
mySched.Append(4);
mySched.Add(4);
Question 8.8. (TCOs 11, 12) When a single array element, such as myBook[5], is passed to a method, the method receives _____. (Points : 5)
a copy of the value in the element
the starting address of the array
the address of the element
a copy of the array
Question 9.9. (TCOs 11, 12) Which is not true about a C# *****? (Points : 5)
Its elements do not need to initialized when declared.
It can be passed to a method for processing.
It can have multiple dimensions.
Its indexing starts at 1.
Question 10.10. (TCO 13) To avoid runtime errors when accessing text files, make sure your C# ***** _____. (Points : 5)
encloses file access statements inside try…catch blocks
opens a file before writing to it
handles all file IO exceptions
All of the above
Question 11.11. (TCO 13) The following C# ***** will print out _____.
Console.WriteLine(Directory.GetCurrentDirectory());
(Points : 5)
the name and path of the current directory
the name of the current directory
the path of the current directory
all of the subdirectories of the current directory
Question 12.12. (TCO 13) To avoid a runtime error, a C# ***** should _____ before it attempts to open a file. (Points : 5)
call File.Open() to make sure the file can be opened
call File.Exists() to make sure the file exists
call File.Create() to create the file
call File.Close() to close the file in case it was already open
1. (TCO 3) Show the source code for a C# ***** application called “Downpayment” to display the 20% down payment one would make on a $250,000 house. (Note that the down payment would be .20 times the value of the house.)
Declare and initialize appropriate variables for down payment and house value.
Include at least three descriptive comments.
State what your program displays when it runs.
State how you would use the debugger to check the values of your variables as your program runs.
(Points : 20)
Spellchecker
Question 2. 2. (TCO 5) Describe two types of loops that can be used to write the C# ***** required to print every fifth integer from 0 to 500 (i.e., 0, 5, 10, 15, etc.), each on its own line. Which would be a better choice and why? Write the code using that type of loop. (Points : 20)
Spellchecker
Question 3. 3. (TCO 8) Briefly describe how parameter passing by-value and by-reference are accomplished in memory. Write statement 1 to call method A below. Write statement 2 to call method B. Which method uses pass by-value? Which method uses pass by-reference?
static void Main()
{
double purchase = 1000.0;
double bonus;
//statement 1
//statement 2
}
//method A
public static double calcBonus(double purchase)
{
return (.03 * purchase);
}
//method B
public static void calcBonus(ref double bonus, ref double purchase)
{
bonus = purchase * .03;
}
(Points : 20)
Spellchecker
Question 4. 4. (TCO 9) Identify an example of one of each of the following GUI design errors in Figure 2:
inconsistency
misalignment
clutter
How could each of the three errors be corrected to improve the user experience?
Image Description
(Points : 20)
Spellchecker
Question 5. 5. (TCO 12) Although the following code compiles and runs, the programmer made some major readability errors. Describe at least three changes that would make it easier for other programmers to read and understand the code.
class Program
{
static void Main() //main
{
int a;
int Float = 10; // ints
for(int i = 0;i < Float;i++) /* loop */{
a=method(i);
Console.WriteLine(a);
}
Console.Read(); //read
}
public static int method(int a) /*method*/ {
return (int)(Math.Pow((double)a,2.0));
}
}
(Points : 20)
Spellchecker
Question 6. 6. (TCO 11) Write a C# ***** to store an array of integers 1 through 9. Use an appropriate loop to multiply all of the values in the list. Print out the result. (Points : 20)
Spellchecker
Submitted: 12 months ago.
Category: Homework
Customer: replied 12 months ago.
my question is taking more than an hour
Expert:  LogicPro replied 12 months ago.

Hi,

Welcome

Hope you are doing well.

Zip all files; upload the zipped file to http://wikisend.com or http://ge.tt and post download link here.

What is the deadline?

Customer: replied 12 months ago.
Right now I only have 20 minutes to go, I sent you guys an email
Expert:  LogicPro replied 12 months ago.

Sometimes no one is available. You can ask for availability of expert next time before starting the test. It is not 20 minutes Job

Do you have any other question?

Expert:  LogicPro replied 12 months ago.

ok. I am opting out. You can ask me again using "For LogicPro" to get instant answer

Customer: replied 12 months ago.
I just want you guys to finish it ASAP please