IT 2020 Midterm REVIEW. 2006-2007:
Know the following terms:
- Sole proprietorship
- Corporation
- Marketing
- Accounting
- Finance
- Profit
- Stocks
- HTML
- Vacuum tubes
- Network
DON’T FORGET HOW TO CALCULATE GPAs!
- How do you write out 9 in binary?
- What is the binary number 1111 in decimal notation?
- What is the binary number 1010 in decimal notation?
- What is the decimal number 13 in binary?
Excel:
- How do you start a formula with Excel?
- How do you multiply with Excel?
- How do you divide with Excel?
Applications:
- True/False: A database can have more than one table.
- True/False: Access uses relational databases.
- True/False: Databases must be created by a professional database designer.
- What is Excel?
- What does Word do?
- What does Access do?
- What does PowerPoint do?
- What is open source software?
- Know the following: Windows, Linux, Mac OS X.
- What is PHP?
- What is SQL?
- With HTML, what tag is used to create a link?
- What tag is used to write the title of the web page?
- How do you embed Javascript into HTML?
- 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:
- What is a packet?
- For what is a router used?
Unix
- What does “cd” do? A.) Creates directory B.) Change dimension C.) Change directory D.) Create dimension.
- What does “mkdir” do? A.) Mark direct B.) Market direct C.) Make direct D.) Make directory.
Hardware
- The acronym CD-ROM stands for…
- The acronym LCD stands for …
- The acronym IP, in relation to networking, stands for …
- The acronym WWW stands for…
Programming with Javascript. Assume all code is properly embedded in HTML and has the Javascript tags:
- What does the following code do?
var x = 7
var y = 8
if(x > y)
Alert(“I love this!”)
else
Alert(“I hate this!”)
What does the following code do?
for(var I = 0; I < 5; I=I+1)
document.write(I)
- What does the following code do?
for(var I = -5; I <= 5; I=I+1)
document.write(I)
- What does the following code do?
for(var z=5; z<10)
- What does the following code do?
var z = 9
while(z >0)
{
if(z>5)
document.write(z)
z=z-1
}
- 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!”)
- What does the following function do?
function x( ex)
{
if(ex > 4)
document.write(“Oh boy!”)
if(xe > 3)
document.write(“Oh girl!”)
}
- What does the following code do?
function z()
{
alert(This function is done!)
}
- 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.
- 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.
- 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!”)
- 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?”)
- 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!”)
- What does “parseInt()” do?
- 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. }
- 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
- What does the following code output?
var z > 39
var x = 2
if(z > 2)
document.write(x)
- 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]);
- What is the difference between a for loop and a while loop?
- What is the difference between an if statement and a for loop?
- var x = 10
while(x>0)
{
if(x % 2 == 0)
document.write(x-1)
x = x-1
}
What is the output?
- What can ‘prompt’ do in Javascript?
- 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
- What does the following code do?
var x = 3
vay r = 2
document.write(x+2)
- 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.
- 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:
Post a Comment