6. What is the difference between passing an argument by value and passing it by reference? To pass an argument by value means that only a copy of the arguments’ value is passed into the parameter variable, while an argument by reference means that the argument is passed into a special type of parameter known as a reference variable. 7. Why do global variables make a program difficult to debug?
Write a pseudocode statement that declares the variable cost so it can hold real numbers. * Dim cost1 As Double = 0 6. Write a pseudocode statement that declares the variable total so it can hold integers. Initialize the variable with the value 0. * Dim cost1 As Integer = 0 7.
| 5 points Question 3 Which of the languages listed below is not available in Visual Studio.NET? Answer | | Visual C++ | | | Visual Basic | | | Visual C# | | | Visual HTML | | | All of the above are available in visual Studio.NET | 5 points Question 4 During which step of program development do you identify and name the application's controls? Answer | | Plan the application | | | Design the user interface | | | Write the code | | | A & B | | | A & C | 5 points Question 5 The scope of a variable determines: Answer | | The number of procedures that have access to the variable. | | | Whether or not the variable must be explicitly declared | | | How long the variable will remain in memory | | | The number of times the value of a variable can be changed. | | | Whether the variable is a true variable or a constant.
1. Factor a trinomial whose leading coefficient is 1. Pick any one of the problems and solve the trinomial. If the trinomial is prime, state this and explain why. a. x2+8x+15 b. x2–4x –5 c. x2–14x+45 2.
// Declare a counter variable. Declare Integer // Constant for the maximum value Constant Integer MAX_VALUE = 100 //Display the multiples of 10 from 0 through 100 For counter = 0 to MAX_VALUE Display counter End For 4. //Declare Integer number Declare an accumulator variable Declare Integer total = 0 Declare Integer counter For counter = 1 to 10 Display “Enter a number.” Input number Set total = total + number End For Display “The total is”, total 9. Declare Integer count For count < 50 Display “The count is “, count Set count = 1 To 50 End For 10. //Declare integer count While
Is the form optimal? 3. Is the form unique? = x’y’+x’z’+wxy+wy’z = x’y’+x’z’+wxy+wxz = x’y’+x’z’+wxz+wyz’ > How We Find Them? = Quine’s tabular: start with minterm, the smallest I Quine’s start = Iterated consensus: complete sum theorem 4.5.1 Iterated complete = Recursive: complete sum theorem 4.6.1 Recursive: complete ENEE 644 1 Quine-McCluskey Method Problem: Given a Boolean function f (may be Problem: (may incomplete), find a minimum cost SOP formula.
Design a While loop that lets the user enter a number. The number should be multiplied by 10, and the result stored in a variable named product. The loop should iterate as long as product
What happens when you give the following commands if the file named done already exists? $ cp to_do done $ mv to_do done Either command overwrites done with the contents of to_do 4. How can you display the following line on the screen you are working on? Hi $2, I’m number * (guess)! $ "Hi #2, I'm number * (guess)!"
Fill in the Blank Complete the following sentences by writing the correct word or words in the blanks provided. 1. A…….. is a primary duty that a server performs. 2. The computer, including servers, is built around one or more integrated chips called The…….. .
A. To reassemble the segments into data 9. Which of the following determines how much data a sending host running TCP/IP can transmit before it must receive an acknowledgment? D. Window size 10. What is the purpose of TCP/UDP port numbers?