Who wants to be captain   +5

Quiz Review

PRINT TEST

Page 45, Program

if there is less than 10 arrows you can go home early today

One way to check a program is to run it

There will be a question about a program on the midterm

 

Computers and Business FY1000-16  first Year Experience Fall 2006  - Dr. A. Ebrahimi

Copy and paste the quiz into your working area (frontpage or word). Delete the answer that is wrong.  mail the quiz to www.ebrahimidr.com

 

T  1. Every character has it's own ASCII  code.

F   2. The Name of text book Programming Easy Way.

 F 3. It's harder to remember  characters using decimal number  than binary number.

 F 4. Every problem has only one algorithm to solve it.

T 5. The computer is considered a machine with three main components. 

 F 6. Eight byte  is one  bit

 F 7. Micro means 1 mega byte.

F 8. Programming is a set of instruction to solve an unsolvable problem

9. After mega is a Giga.

 F 10. Syntax means semantic which is  meaning of a word.         

F 11  Semantic error means error is in the grammar rather than meaning.  

F 12. There  is no gibberish in Ebrahimi's book C++ Programming Easy ways.

 F 13. Loop is decision making not a repetition.

F 14.  Both upper case and lower case have the same corresponding number.  

F 15. The brain and the nerve system of a computer is known as PPU.

F 16.  HTML when applied to technology means HOTMAIL
 
F 17. A character only represents the letters of the alphabet.
F 18. The Computer Standard Code for the letter "a" is lower than "A".
F 19.  A simple search program is make of a thousand lines of code..
F 20.  The key word while is used for solving a mathematical problem.

F 21.You can only have one algorithm to solve a problem like going to NYC.

F 22. cout will take in an input and cin will display an output in C++ language.

F 23.  HTML stands for Hyper Text makeup Language. 

F 24. The ASCII code for the character 1 is 49 and it is not 32.

F 25. ASCII code for the character  B  is 65.

F 26.  In the Binary system 1+1=11.

F 27. The  computer itself is  in a constant cycle of input, process, and input.

F 28. information are stored in a computer memory but it may not be replaced at any other time.  

F 29.To multiply two numbers we are using X as a operator..  

30.  to divide numbers we use / as a operator.

F 31. computer works with decimal system because it's what we use our fingers.

T 32. The blank space has an ASCII code therefore it means a value to a programmer.

T 33.  Computer can be considered a machine with three main components: CPU, Memory, Input and output devices.

F 34. kilo is 1000 in the computer not 1024.

F 35. Decision-making  is same as repetition like if statement.

 F 36. Domain name and web hosting is the same thing.

T 37. programming has a magical part due to the transfer of learning.

T 38. programming has a mystery part to it

F 39. Computer is more intelligent than us.

T 40. Computer using loop can do faster than us in search operations such searching a yellow page.

F 41. Computer is more intelligent than us in recognition of objects such ball, balloon, spoon and fake spoon.

F 42  RAM stands for Read Access memory and ROM stands for rewrite operator memory.

T 43. CPU stands for central processing unit. Answer
T  44. ASCII stands for American Standard Code for Information Interchange.
F  45 FORTRAN is a program that was used in Europe.
 
F 46 ALGOL is a program that was used in the United States
T 47 RAM stands for random access memory.
T 48 A default is a predefined rule. Answer:
T  49To run a program is exactly the same as executing a program.
F 50 HTTP stands for Hyper Transfer Text Processor.

 

 

 

Working with arithmetic in different systems

Binary

Decimal

In network addresses are written in group of four

Quiz on Tuesday

Midterm on Thursday

 

MIDTERM

 --1) Every web page by default have a index  file called  “default.htm”

 -- 2) A SPIT is a internet telephony virus (manager handout)

 --3) Every byte consists of  7 bits. (From the book, chapter 1)

 --4) FFFF00 represents the color Black. (From the book, all in HTML part)

 --5) Front page is a software belong to quark Inc.  that can easily create a webpage

--RG6)  One of the shades of green possible on a web page can be written as 0000FF

 --7) In the hexadecimal number system 1 + F = 10 just as in the decimal number system 1 + 9 = 10 and binary 1+1=2.

 --8) <a  href= http://www.ebrahimi.com>Click here</a> is html code that will create a hyperlink to Dr. Ebrahimi's web site. 

--9) 1 gigabyte is 1,024 megabytes (Kilo*Kilo*Kilo).

 --10) The total number of possible colors on a web site is 256 * 256 since for each hexa F there will be 15 different color range.

--11)  SPIM is spam sent through the Internet Telephone protocol. (manager handout)

--12) Many today's software are WYSIWYG (what you see is what you get) such as MS word.

--13)You can have a domain name without a web host 

--14The binary representation of the bit 11111111 equals 255 in the decimal system.

 --15 The uppercase letter 'A'  decimal value of 65  in ASCII and 'a' has 97.

 --SC16) AEAEAE is the color gold.

--17) A numbering system using the  "0" and "1" is known as binary system.

--18) Hexadecimal is a numbering system which uses a base of 8.

--19)The difference between upper “A” and lower a in ASCII  is 32 which is the number zero. 

--20) You can write a program using “loop” and an if statement to access to a system.

 

--21) ASCII is an acronym for American Standard Code for Information Interchange, and Unicode has a 16 bits to represents characters.

--RR22) Ada Byron Lovelace was the first programmer before there was even a computer? 

--23) Lovebug was a costly virus in computer that caused billion of dollars in a few days.

--24) Geocities is offering a free domain name and web host which is a great idea for a business.

--25) in a URL you must mention the Index.html since it is a default file in every webpage.

--26) One good  way to Encrypt a data is to add to each character a fixed number like 1

--DA27) The View source option allow you to view the actual HTML code for every page even if it was designed by other software.

--28) You can copy and paste a page into design mode (normal) of front page and then get the html equivalent code

--29)  <BR> stands for break a line (start a new line) and <p> stands for paragraph.

--30) <a href="#list> will refer (link) to other webpage.

--31) The purpose of a meta tag is to describe your webpage for search engines.

--32) one of the important command of HTML is <table> which consists of <tr> and <td>


 

--RI33) geocities and cjb are host providers that do not charge for web hosting.

--34) It is better to buy a domain name for a business as soon as possible and then at later time create a webpage.

--35)you can have one main page (index.htm) and then several other web pages (test.htm) that the main can link to.

--36URL is Uniform Resource language which is the same as the web address.

--37) you can make your own computer by installing IIS or apache to a web server and then even become a web web host.
 

 

--SS38) Study of Dr. Ebrahmi's book on Page 695, containing the 10 commandments, you will know 90% of HTML used in web pages?

 

--39) Every character in a computer has a unique code, Unicode represent a character by 2 Bytes.

 

--40) URL stands for Uniform Resource Locator which is same as domain name and can have more than one address.

 

--41) Algorithim is a way to solve a problem and for each problem there is only one algorithm.

 

--42) Hardware is tangible part of a technology while software is a  physical component of the computer.

 

 

--LB42) Notepad is a  WYSIWYG and can be used as a html editor.

--43) Hexa decimal mean base 16 and the range of numbers are from 0 to F.

--44) FF FF FF represents the color white combining same amount of red, green, blue.

 --45) bgcolor=000000 and font color=FFFFFF can have color black and while and not any other range.

 --46) The new technology is known as Nanotechnology versus the current one which is microtechnology.

--47)Grace Hopper is the person who coined the word BUG.

 

 

--KL48) A Domain name is a unique name that identifies a web page and you must apply for it to be searched.

 

 

--49) Grace Murray Hopper from NY was working on the Manhattan Project (Atomic Bomb) in Pennsylvania about 80 year ago.

--50) Ada Byron - was the first programmer in century 18.

--BJ51)HTML is easier and faster way to create Web page than Frontpage or flash.

--52)for your page to load faster you must have a hard disk with giga bytes.

--53) one of the security feature  in a web site databases is to count the number of people visiting the web site. .

--RT54)   Spam, Spit and Spim are all types of programs used to interrupt a good usage of internet.

--55) In Word you can encrypt something by making the font color and the background color the same or use WINDING font.

--AC56)  HTML stands for Hyper-Link Mock up Language and it consists of tags that are used to format a web page

 --57) HTML tags are enclosed in angle bracket indicating the start and end of the tag. for example<html> Helloooooo<html/>

 --58) RAM can store the same amount memory as the hard disk and play an important role in loading the web page.

 --59) Arpanet as a first internet was used originally by the US military.  

 --60) HTML FILES should be stored in a several directory as the web pages become more pages.

--61) In HTML color code # FFFFF, each FF represents red, green, and yellow respectively.

--62) For every encryption there would be a decryption algorithm that can easily be written and decyphered.  

--63) The lowest level language of computer is known as machine and assembly language
--64)Electric currents, magnetic fields, or biological entities can be used to represent binary states.

--65) www.drebrahimi.com is hosted by geocities.

--66)Ram stands random access memory which are holding permanent information.     

--67)ARPANET was created in 1945 afraid of Russian attack on central data base.        

--68) In Binary base  “1000” means 8 and 1111  means 15  but in hexadecimal 1111 means F.               

--69) The term "Debug" means to fix any error that is computer-related, especially software errors.    
--70) C++ is the programming language created by rear admiral Grace Hopper.

--71) CPU-   Stands for "Central Processing Unit." an average CPU can have speeds from  2.0 to 4.00 MHz.

--72) 11111000 and 00001111 will result to 00001000 known asmasking.  

--73) ROM is memory containing instructions that the computer uses when it boots up, before the system software loads.  

--74) A network is a system of computers, databases, and other components connected by communications lines.

--75) Linux and Windows are the operating systems (mainly software) that manage and utilize computer resources, network and web technology components.

--76) File extensions jpg, gif, and bmp are used to save a HTML file.

--77) https stands for hyper test transfer topology protocol which is same as www.

--78) URL stands for Universal resource allocate which represent several unique  Internet Protocol (IP) address or domain name.

--79) Typical components of a CPU are arithmetic logic unit (ALU) and control unit (CU).

--80) In logic there are differences between or and exclusive or.

--81) For a better  network management and performance, security is more important than access.

--82) <IMG SRC="image.gif">  IMG stands for "image." SRC stands for "source."    

--83)  “OR”, “And” and “NOT” are the operator of Arithmetic Unit.                

--84) The operation 11110011  or 00001111 will result to 11111111.                                          

--85) Yahoo provides both free  short domain name as well as free web hosting with a giga byte storage.    

--86) Every hardware operation theoretically  can be replaced by a software.    

--87) SUN JAVA is a Virtual reality machine 

--88) Today search engines look at the semantic of request rather than its syntax.  

--89) It is better to store all the software and data into one server to keep it secure.  

--90) A Server should always have the same speed and the same storage as its client (workstation) computers. 

--91) Hub, switch and router are component of a network.

--92) <a href=”#top> goto top</a>    <a name=”top”> </a> is known as self-referencing..

--93) Trouble shooting means to use a trial and error technique to diagnose and correct errors or failures.  

--94) By studying a view source one can understand the component that are used in a web page.

--95) Viruses, worm and spam are as result of not cleaning the computer hard disk.  

--96) Today’s most computer network are fault tolerance.

--97) The   symbol  *, / are used in computer  for multiply and division so that you will not be confused.

--98) In order to build a page you need at least 100 different tags.

--99)<a hyperref=www.angelfire.com/crazy3/blulake/journal05 > </a> will activate the index.htm file by default.

--100) The components of the Web technology, are planning, scheduling, outsourcing and marketing.  

 

 

#include<iostream.h>

 

main() {  

    int employeeid;

    int hoursworked;

    float hourlyrate, grosspay, taxamount, netpay;

    float const TAZRATE = 0.20;

    cout<< "ENTER THE EMPLOYEE ID:";

    cin>> employeeid;

    cout<< "ENTER THE HOURS WORKED:";

    cin>> hoursworked;

    cout<< 'ENTER THE HOURLY RATE:";

    cin>> hourlyrate;

    grosspay = hoursworked*hourlyrate;

    taxamount = grosspay*TAXRATE;

    netpay = grosspay - taxamount

    cout << "EMPLYEE ID IS                       " << enployeeid << endl;

    cout << " THE HOURS WORKED ARE " << hoursworked << endl;