Friday, December 15, 2006

Midterm Review Sheet

IT 2020 Midterm REVIEW. 2006-2007:

Know the following terms:

  1. Sole proprietorship
  2. Corporation
  3. Marketing
  4. Accounting
  5. Finance
  6. Profit
  7. Stocks
  8. HTML
  9. Vacuum tubes
  10. Network

DON’T FORGET HOW TO CALCULATE GPAs!

  1. How do you write out 9 in binary?
  2. What is the binary number 1111 in decimal notation?
  3. What is the binary number 1010 in decimal notation?
  4. What is the decimal number 13 in binary?

Excel:

  1. How do you start a formula with Excel?
  2. How do you multiply with Excel?
  3. How do you divide with Excel?

Applications:

  1. True/False: A database can have more than one table.
  2. True/False: Access uses relational databases.
  3. True/False: Databases must be created by a professional database designer.
  4. What is Excel?
  5. What does Word do?
  6. What does Access do?
  7. What does PowerPoint do?
  8. What is open source software?
  9. Know the following: Windows, Linux, Mac OS X.
  10. What is PHP?
  11. What is SQL?
  12. With HTML, what tag is used to create a link?
  13. What tag is used to write the title of the web page?
  14. How do you embed Javascript into HTML?
  15. HTML has the ability to write loops?

33. What is the correct HTML tag for inserting a line break?

34. What is the correct HTML for adding a background color?

35. What is the correct HTML for inserting an image?
Networking:

  1. What is a packet?
  2. For what is a router used?

Unix

  1. What does “cd” do? A.) Creates directory B.) Change dimension C.) Change directory D.) Create dimension.
  2. What does “mkdir” do? A.) Mark direct B.) Market direct C.) Make direct D.) Make directory.

Hardware

  1. The acronym CD-ROM stands for
  2. The acronym LCD stands for
  3. The acronym IP, in relation to networking, stands for
  4. The acronym WWW stands for

Programming with Javascript. Assume all code is properly embedded in HTML and has the Javascript tags:

  1. What does the following code do?
    var x = 7
    var y = 8
    if(x > y)
    Alert(“I love this!”)
    else
    Alert(“I hate this!”)


  2. What does the following code do?
    for(var I = 0; I < 5; I=I+1)
    document.write(I)

  3. What does the following code do?
    for(var I = -5; I <= 5; I=I+1)
    document.write(I)

  4. What does the following code do?
    for(var z=5; z<10)

  5. What does the following code do?
    var z = 9
    while(z >0)
    {
    if(z>5)
    document.write(z)
    z=z-1
    }

  6. What does the following code do?
    var x = 4
    var z = 2
    if(x%z == 0)
    document.write(“It divides!”)
    else
    document.write(“It don’t divide!”)

  7. What does the following function do?
    function x( ex)
    {
    if(ex > 4)
    document.write(“Oh boy!”)
    if(xe > 3)
    document.write(“Oh girl!”)
    }

  8. What does the following code do?
    function z()
    {
    alert(This function is done!)
    }

  9. How many times will “Hey” appear.
    var z = -1
    var m = 2
    while(z>m)
    {
    document.write(“Hey!”)
    z++;
    }
    A.) 2 B.) 1 C.) 0 D.) Incorrect code; will freeze browser.

  10. What does the following code do?
    var x = 2
    var y =3
    if(x>1 && y < 3)
    document.write(y)
    A.) x B.) 3 C.) 2 D.) None of the above.

  11. What does the following code do if the user enters “Bill”?

prompt x = “Enter your name”
if(x = = “George”)
alert(“Your name is George!”)
else
alert(“Your name isn’t George!”)

  1. What does the following code do?
    var x = 3
    var y =7
    if(x+2 <> y)
    alert(x)
    else if(x – 2 > y || y> x)
    alert(y)
    else
    alert(“What happened?”)

  2. How many times will the following code print “WOW”?
    for(var i = 0; i < 10; i++)
    for(var x = 0; x < 3; x++)
    document.write(“WOW!”)

  3. What does “parseInt()” do?

  1. Which line contains the error?
    1. variable visitorName = window.prompt( "What is your 2. name?", "" );
    3. var proceed = window.confirm( "Are you ready to go 4. further
    5. with JavaScript " + visitorName + "?");
    6. if ( proceed == true )
    7. {
    8. window.alert ("That's great " + visitorName);
    9. }



  2. Which of the following would access the third element of an array Computer_Parts?
    A.) Computer_Parts[1] B.) Computer_Parts[2] C.) Computer_Parts[3] D.) Computer_Parts3

  3. What does the following code output?
    var z > 39
    var x = 2
    if(z > 2)
    document.write(x)

  4. What is the output?
    var name_Array = new Array(5)
    name_Array[0] = “Joe”
    name_Array[1] = “Bill”
    name_Array[2] = “Sam”
    name_Array[3] = “Ana”
    name_Array[4] = “William”
    document.write(name_Array[3]);

  5. What is the difference between a for loop and a while loop?
  6. What is the difference between an if statement and a for loop?

  7. var x = 10
    while(x>0)
    {
    if(x % 2 == 0)
    document.write(x-1)
    x = x-1
    }
    What is the output?

  8. What can ‘prompt’ do in Javascript?

  1. var x = 2
    var y = x * x
    var z = y /x
    if(z = = x)
    document.write(x)
    else
    document.write(y)
    What is printed? A.) 1 B.) 2 C.) 3 D.) 4

  2. What does the following code do?
    var x = 3
    vay r = 2
    document.write(x+2)


  3. What does the following code do if the variable x has a value of 25?
    function(x)
    {
    while(x > 0)
    {

if(x = = 10)
document.write(“This is bad”)
if(x= = 15)
document.write(“This is bad”)
x = x – 5;
}
}



68. What does the following function do:

function blackjacktester(total)
{
if(total > 21)
{
total = prompt(“Do you want to hit?”)
return total
}
else
return total
}
A.) Will not work. B.) Will check the total to see if it is less than 21. C.) Will check the total to see if it is less than 21 and if the user wants to hit it will add the new card to the total. D.) Gives the user a random number and adds it to the total.



  1. Why do we use brackets when programming Javascript?

70. What does the following code do:
var z=9
if(z != 9)
document.write(z)
else
document.write(z-1)

A.) Will not work B.) Will print 8 C.) Will print 9 D.) Will print 17.

No comments: