0% found this document useful (0 votes)
32 views44 pages

Cos 101 Filler by 1ST John 2

Computer question

Uploaded by

paulinus0321
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
32 views44 pages

Cos 101 Filler by 1ST John 2

Computer question

Uploaded by

paulinus0321
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 44
COS 101 FILL-uP ad a ‘ \ * CHAPTER 1 Define the following terms; Computer, system, computer system. Computer: Computer is electronic machine capable of accepting, processing recetying dataand there for produces and stores result for future use: System: this is detines as a group of interrelated component that seeks to attain a common goal. Computer syst Ae iy ‘an electronic machine opening under the control of ey y instructions 6 'alhvea produce the’ ea Its of hich data. ' “ g a ! ive wathh a! . 2. List three form!inetars of théseohipte explaig\thent, a. Input units Adcepts data’ from igo eam nt vice. b. Processing unit: Processes the (je it recelv from the inp unit the in Shes of the data whieh the user has given the computer, a Kits 0 divn memory that ean net at manipulate data and . Output unit: Produc 3. Explain the tery hC vy (a) (PC) Perse cone tone. tht is designed to be used by one user at a time all ard waht he idk, processor teclinology’ that enables manuficturers to prt Name the wo ‘an into. fh Boing system resources can be divided Hardware antl software ‘ 6, Draw a hierarchical, diagram showing the different components of a computer system [om] ne tt “© execition ofinseions are ‘itor i, once ++-are'teady © (@ They ate used to send inforsnation communication (c) They are used to access stuffs which are in it, 8. Each of the functions listed it question 11 (above) name a/tinit that carries out « designated function, Processing, unit performs these, storage unit, output unit, form various task'such as secretarial, | ia ‘ A golitaty rele Mata proce’ i oe unelaléd” erdiping. oF ‘eetronit devices. perfrming: & vary of data . processing ‘activities! p ‘ o) (An interrelated grouping. of components that accepts sei and produces output + im an organized process). ——k = =< #av 2 d) None of the above 13.A computer system coasists of: | a) Input devices b) A central protessing yinit & Le Communication devices st é p) (Alof the above): 4 / 14. The processing function of a computer systemic performed oF the central processing unit also ktiown as:---- (a) (CPU) @pvp (© System unit (4) ALU 15, Fumishing sales analysis reports o sales manages is an example of the computer function of: (a) capturing ©) ptbséssing (e) storage (4) displ (c) (Communication) 16.Which of the following is an actiyi 17 In conn 6 communicatio 18. Thé werd, “tin” wo: Rhples all but which one ofthe following? (a) inpuvoxtps (b) contd) at sity (@) components @ ordered (or organized) processing 19. A mainframe) “computer fits —— (a) on a desk (b) in a small cabinet (c) in a partial room () on your lap or in your hand 20.Six widely used -—~» are the keyboard, mouse, microphone, scanner. digital camera, and Web cam. (a) input devices (b) storage devices (c) output devices (6) system units ' uh aly he ity hit ; a ‘ers process ‘data into i ‘ fae, « _"Memoty (d) information, ',2L.Comput s--seesee= (a) storage '(b) communications (¢) ; ; i '22.Generating informatibn fom @ compijter requires the following five elements ‘ a | * hardware, software, data people and ------------- (a) memory (b) dutput (c) input (d) Procedures ‘,, ‘ 23.The major differences between the ordinarily hes more power, more storage space, and expande capabilities (a) smart terminal (b) desktop (¢) server (d)workgroi ":, 24.Processing involves! computing (adding, sul recording audio clips, liber Soon ES 26.Rach employee or staff or student who uses| computer in a largéi¢ampus network like’ the University ofNigeria, Nsukka Li is a -----—- user (a) large business (b) Software using text, graphics, ahd visual images ‘ogram (b) communications device’ (c) ‘graphical user “transported on a keychiain of in.d'pocket (a) CD (6) user flash drive (c) Zip disk (DvD. ! ‘ ’ dave desktop computer to perform some or all of their duties (a) siness users (b) power users (¢) Small Office/Home Office users (4) (a) compiled (b) processed (c) reliable and capable of handling the expéeted workload (a) onocedures (Chiata (@) people pater literacy is vital 1 success in today’s world ( CHAPTER TWO used input devices is the -Sh-—te- (a) keyboard (b) mouse (c) Ra _~ Yapitis natural to touch things (b) not @ Giring as keyboard input (@iwusesilittle screen space for reach choice above (@) GarbageWmput, Garbage output (>) Gigabytes in, a) cout (4) none of the above — (2) data, (b) programs (¢) commands (4) user minal Wives ‘splay terminal vs ofthe board which may be programme to do special tasks are the (a) eric Keypad (c) function keys (4) navigation keys |. and joystick are examples —~ (a) pointing devices (b) pen input devices (c) data collection devices (4) multimedia devices 8. Which is ex example of a transcription error? (a) 3456 instead of 3465, (b) Simth instead Smith (c) 3455 instead of 3456 (d) all of the above 9, The tern multimedia refers to —— (2) combination of sound avid images with text and graphics, (>) the combination of sound.and images only-(c) music only (@ movies with sound only 10.The computer message reads “Do you really want to delete the selected file(s)? “The user clicks on the button labeled” Yes”. This is an example of --- (@) data input (6) 2 program (c) a command a user response « GE Distinguish between the touch screen and th “One can redraw pattems or graphics already *]one can’t redraw graphic already creat 13. Give one example of a typical ‘i ¢ corporations who are living in, four different t together using their computers in a crucial and name the technology. > they can use their call when they must have connected to the internet Joypad (e) light pen 16. In video input, image or video can take the form of----—-, --- (graphs, complicated buildings, signatures, thumbprints). 17.Two common devices for input of video signals are ——-~ and ~~~ (the scanner and the digital camera. "3 t facilities de computers posses to receive audio command from the user? 4g. W' ig (voice synthesizers) pe? Distinguish betw ideo and visual devices. (videos are not touchable while visual devices’ fare controlled or created by touching) 20.Common devices for capture cf visual signals are: (the trackballs, the mouse, and the finger) Explain the following terms. uch screens: These are used to make selection by just touching the screen st pens: are used for data input as pointing devices and for command gestures “balls: are used point move or select an item on screen Magnetic ink: My AEM when used for Withdrawal Magnetic strip: Credit Card : ~ © puter, ~ (CHAPTER THREE What is\an output devices Answers: It is any piece of computer hardware to communicate the results of data processing carried out by equipment used computer system to the outside world. ‘7hat do you understand by the term peripheral device? Answer Is a device which has its own control that surprises the operations of the particular device 3. Mention 3 devices that are both input and output devices Answer (a) tough screen “DU device (b) Desklet printer (3in-1) media: Answer Printer-gets out ist four output devices. and their, corresponding yjcomputer ontpht plot i monitor- displays information disk di f 8 Information/data projected to, pser through an output medium i ‘Miachine-readable. to humgn: teadable, what is responsible for’ iis ‘task? Answer rive s converted from The central processing Unit. * 6. Why is modem an ouiput device? Answer, Because it cans@céive information that has been processed by the computer and display it to thetser to.scnd such information. ore fae ; ‘Winat format! “does datisinform Lactic. 10.What is an output Romputer memoryitake? Answer, interface: Answer one in which one can scan image, print infgrmation given to it. es aha devices? Answer: The devices are not 4 14.What is the _ images which, essentially, displayed on the monitor, ideo card? Answer video card processes the data into 15.Using a sketch only, show how CPU communicates with /O devices through an interface CPU (ALU Register and Control Memory | ee bata base = Aderess bar Control buss input and output Saye! 16, With two examples each mention three different types of peripherals) Bey Input perip heral: wn 2. Output peripher keyboard, mouse ith printers, monitor 3, Input/output - - |. USB flash, Hard set Q 17. What is handshaking? Answer handshaking is alprotess that usually takes place in order to establish communicating witht ‘(foreign d devite lik@ modern, printer ete. 18, What are the advantages of hayise hot oWappab" ports in our computer system? Answer: _ e L. To change the configuration or repair a working system without interrupting its ea operation 2, ‘To avoid the deléjiard Mhisance of shutting down and restarting te pt juiDRent, 0 operation ahtags lug and play port? ily accessible by the uses. 2. Supportiia widellatge of devices types % ymca ys initializes and uploads drivers 20, What are the major differences that exist between CPU. and 1/0 devices? Answer the CPU processes into information while V/O devices pr ‘oduce input data, 21, Why do we need an interface between CPU and output devices? Answer interface synchronizes the data flow and supervises the transfer between peripheral and processor dew ote » “° 22.State two-major type’ of hionitor technology? Answer aad -(@) CRT and (b) LCD 1 ‘ Cathod Ryne: iquid crystal sah 3, What is‘ another nine for compute: monitor? Answer (VDU)- visual display “unit) 24\Mention three disadVaniage of the LCD monitor rectnologygfaswer LCDs can suffer from dead pixels , LCDs are difficult to read in a sontiginghey are more expensive | | ® : 25.What is computer monitor interface called? Aijgyyer(Mideo Ga ics. Array , ‘ (vGa) / o.,TheGSD) Js cod maejmage quality compared to CRT d, The LCD\consetyes.energy more than the CRT me e. The frovi fal health and comfort the LCD is better than the CRT “f, The LCD has less response tone than the crr. 29, Why will you choose LCD over CRT? “Answer; (a) A LCD device consume less ompared to that of the CRT (b) LCD devices are more mobile than ad What does: ihn vale mani? Answer This is the number of times per second that a the electroni gun seen’ every pixel on the screen and is measured i in hertz. “31.What is aspect ratio? Answer: this is the number of pixels per-inch (PPI or dol) . that is length % width of the display available for that monitor being used. 32.Define the term dot Pitch? Answer This is the distance between the pixels on a computer monitor screen and its measured in millimeters. 33. What are the ‘advantages of improved monitor technology over thevolder monitor technology like CRT? Answer (a) Consumption of. electric power is low in improved monitor (b) improved picture quality in improved monilor technology 34.What is the’ difference between monochrog color motiitor? Answer + | Monochrome has two, colours for display while thdeolou inonitor has more than hes i two colour ‘pains est ih 1s Give five featuites of YDU/ Am: Oy is powered bye electricity ok. i different sizes | images (2) it uses colour Q)it rel}in a video card (5) it comes in 36. What is screen yo on? Answer thistithe degree of sharpness of a displayed character or image, ») 37.What are ing van i of Rtge,size’s screen over small size ser een? Answer. (a) igher resolution (b) multi-tasking which means they 38.What is Panola ame for ‘an active matrix LCD monitor? Answer, Thin Film {Transistor — LCD monitors. i zy 38, What isthe d cr between LCD monitor and TET- LCD monitor Answer \" TFT-LCD monitors have higher refresh rates than the LOD monitors. 40.Name one output device that is common used for graphical The monitors Presentation Answer LL ZODP | marae spariiginsse sae me no ' 4 ait of inonitor technology that are flat pariél Answer (a) LCD » Monitors S TT CD, monitors (c) Plasma Monitors 42,When an output i is presente on paper to the user what name-do'we cal it? Answer. Hard copy: ; . -'43.Compare: the various ptinting technologies discussed under the following heading: a) Quality; Impact printers are lower qualities than that of the nonésimpact qualities that of, the impact r ‘b) Resolution: None impact quality has higher reputation th’ theories: © : %, € c) Font; non irapact printers produce better font than fie im; ee +d) Grophads graphics are better on plete inet fin it Impact printers form ‘i “images | 14 printer do’ their wou ‘direst the paper., 45.Give three example name for non-impact printers? Answer Ink-Jet printer ds inked printer ‘work?, Answer inkjet sprays. one or two mote color of abet iy changed droplets.of ink from four nozzles through holes in a matrix at if high speed onto the paper and produces high quality printouts of texts and graphics 50.How does lesser printer work? Answer Uses the process of electro photography or zesogtaphy . Uséd copy machine, they use static electricity to stick plastic pocoder ; (toner) on paper and than melt it onto the paper using hot ruler. It uses a lager ean light source to 9 create ‘n a photographic drum. "technology? A Hence mathe tones of ink in a LaserJet is dry while that of an inkjet is wet, -An inkjet overtime is 10 times more expensive to operate than the LaserJet. - The printed out paper from an inkjet will smear when wet but-that of LaserJet will not. 52.What is the relationship between inkjet printer laserprinter? Answer The two operate quickly and allow fonts to be added by usiiig font’cartridges or crustalling soft fonts & 53.Give five advantages of non-impact printer over, impact printer technology. Answer. (1) Higher picture quality is‘nofiimpact printety (2) Better fonts is non- impact printers. (3) prints faster athe impact «3 impact print (5) beget eraphia tp 1 154 ,What is the Simersiee between Leb mot and TFT-LCD monitor? Answer: “The later have more zeftesh rates than tet feer, 55.Differentiate befiveen db matrix and the printer Answer dot matrix- prints are i "ime printer prints one line at a time. 56.Give two nae technology that are ink base. Answer inkjet and Laserjet“), character at’ time wi i 57.Give twedexahiples of printer technology that makes use of dye-sublimation for printing Anéiyer -- dye-sublimation printer 58.Descrihe briefly what happens electronically when the CPU wants to communicate with any output devices, Answer. A device associated interface decodes the ve 1) address andigontro! {1 signal for pefipheral Gentole and proceeds to execute it. gignal received from the 1/0 bus interprets them and provides interfac is a female 59, Define a computer interface port. Answer computer interface port par, le a method to transfer signal between 2 : of connection for table. contacts and provides devices, 60-Forts Co a visual interface," “a 61.Give one example of an application area of dye~ e printer. Answer. ‘ be eiepironicatly divided into two types ‘name them. Answer digital Consumer photo printer 62.What is the difference between plotters and printer?: | Ans _ Sinulte ri By | printing continuous lines to create images while printers ~* 8 On a closely speed series of dot. ' using one or more pens that dra 64, What ate the ‘similarities bet conuigetsa to thd edimputer and are used to ‘they can be applied in the printing of 65.In which area construction mi gs, architectural plang and business charts, 66.List 5 dina age td 67.What isthe iference between headphone and speaker? Auswer headphones are smaller in size end given their capacity produces little cound while speaker are larger in size and produces more sound. 68,How does ee ‘as ‘an output device work? Answer they are connected to the computers sou card throligh a USB or audio Post and. the, sound card generate output which cbines is sotind to the speakers. * 4 CHAPTER FOUR 2 4 What is ‘data eaash Answer data storage is the recording/retaining for some interval or time digital data used for computing. 4.2 What is the byte equivalent of the following? D 10 Gigabyte- 10x 1000x1000x1000 bytes -10,000,000 byte Sklobyte= 5x1000 bytes -5,000 bytes 10 megabyte==10x 1000 bytes= 10,000 bytes 4.3 Which of the following is Wirectly accessed by he Central procestitig’ Unit? (2) DVD , 1 é (b) oe Zip dickette (@) Hard disk er ‘ . 11) dha What are hi vari nda in whigt@ata ca i ee cathe sléred? Answer hard disk, CD-RW, DVD-RW, RAM Flash, floppy disks 4.5 What are the differences between the followirig (a0 Zip diskette and floppy diskette \ 31/2 inch. Answerf(@))Zip disks support much higher capacity than floppy disks. 1) Non-Volatile § Saves data when the power supply is lost 2) Asynchronous § RAMs~ Managed by the control signals a te |) !3) Syndronous'S cote — can be used in very higher speed application t 4,7 Draw and Label fully a cross section of the magnetic surface of a hard disk 16 4,8 Why is optical julre box necessary? Because it has up to 2000 slots for disks and are used in higher-. capacity achieve storage environments such as imagery, _ medical and videos. onymis stad fr what? a, WORM- write a Belt b. CD-ROM- Compact Disc- Read only memory c. CD-ROM - Compact Disc Recordable d.,, DVD-ROM —Digital video device read only n ., DVD-R- Digital video device- Recordable f.. DVD-RAM -Digital video Device-Read oily g. UDO- Ultra Density Optical ._ 4:10, What are the two major class e device? Write briefly on each type. Anew primary and secondary ‘storage, fes, primary storage connects directly stomage are external in mapare and non-volatile: i 1010100-——-*23s-—— Answer 16810 ‘ Answer 1010 Answer 5/10 - Answer 47,0 Answer! 1710 101411 - .' 10001: Yo . % g, 1000011 Answer 135; Decimal> Binary h. 5 answer 70% i. 9 answer 7002 j. 19 answer 100112 k. 22 answer 101202 1. 31 Answer 111112 1m, 32 Answer, 1000000, in, 46 answer $101103, a & a. valuat tp foo g's , a. tein, (b) +f oot, © +a 1010 rot { (©) + yp = OoL ©) + TNO + or ne wy 4. Convert the following decimal numbers to binary (a)23 (b) 100 (c) 145 (19 (e) 121 () 161 (10111,) (1100100) (100100012) (100112) (1k) 5. Perform the following binary additions: © 18 0. 110003 _y0111, =10l , @u01s101 =answer USE = 10010, ()1010+1110= answer 101011 _ 4190000. F. )us00rgoor over ILL @) 101011+11010lanswer —i5p9; 1 2 i ioioryout fans =1011112 “6. Perform the following binary subiracts (a) 1010-111=100900013 (b) 11100-101=1 1111102 (e) roro1oef6 010001000, 10101000. (d)1001 x 110=110110, (©) 11100x100 = 1019 0 1, x 110-1101 103 : isi “HoR!by 101 Answer =101112 (b) 11100 by 100. ae, e ; . 2 ‘covert shelton = A070 = = 10111110; @ 1001101114901 SS 10,Covert the fe numbers to hexadecimal (a) 10911011101= 400;¢ (b) gguto10r ton acs ¥s (c) 1101011101011 = 35D7\¢ (a) 1010110110111 = amie 1011101101 1= 20DBy¢ (1111011101011 FBAF ¢ 11.Convert thifotlowing hexadecimal number to decimal: (a) A6=166y9 (B) AL3B= 27799 (c)E9=: 3310 @ TCA3= =1907i9 ". 12.Covert the following decimal: numbers to hexadecimal’ (a) 123=84,, (b) i 2352+ 930j5 (c)201 (a) A6='101001102 (b) A07 = 0111101010110100 (d) BE = BE, = BC9~=101111001001; f) 9BC8 =9BCE i, = wo = . Use an, xine © CHAPTER SIX . Define computer software: Answer computer software is a set of instructions and associated documentation that tells a computer what to do or how to perform a task illustrate the relationship between microcode and assembly language. Answer when CPU is running micro codes, the translation engine coverls machine/assembly code or language into micro code for faster, smaller processors. . What is a widow? Answer it is a section of the ,comiputers display in GUL all that shows the program currently being used. It atlfPinultipte viewtig“arees. . What is a windowing system? Answer, it is a\type of graphical user interface GUL, wich implement the (windows, eons>menus, pointer) paradigm for a user xs Noe interface. e- > . _ What is a window manager? AnsWé®A'Windowmanager is system software that controls the placement and appearance of jAdows within a windowing system in List seven type! fer affplication each with an illustration of its use. PI Answer A window mdnager igta system software that controls the placement and ithin a windowing for a COS 101 examination for 5 students d Name. “> Reg. No CA EXAM TOTAL ‘Agu Monica 2009/12345 29 40 69 Eneh Vincent 2007/12355 28, 27 42 [Mybada Uju_ 2005/12445 7 27 faa | Veluin Kelechi 2003/13345 21 a5 46 Uzo Dimikpa__.._| 2001/1345 23 17 40 20 high-level Janguage to generale the results in Q7. 8. Write computer program in some am score write in (Your Answer Total score= cont Ass+ Ex seore) total score is + total re << and ‘Total score= cont Ass + exam score cont (your total score is <> Name (Ass+Exam; : If (total score (45) 21s¢ cont < 35 ten Add | else Display score 4b. Produce the flowchart that will Jem in question 4a. Add= score +1. Score >= 35 | ! as ‘| Add score |-——p-—] isplay score Sa. Outline thé-pseudocodes that will request for an integer number n afterwards, it will request for n scores and it will determine and display in maximum of the scores. Request n Deterraine maximum ° + Display maximum Request n. 1. 2. 21 2.2 2.3 24 25 2.6 27 5 2.8 (oy no ih: 5b. Produce the flowchart that will solve the problem stated in question Sa. Request n + Total=0 £ Total =total +srore Display maximunt 6a, Outlin ing the ric that will it will request for h different scoresjand it minimum and maximum score: Request n Calculate Initialize count gy Request score Initialize minimum) cit Request secre If score) «& —— PD ga, Oulline the pseudocodes that will request for an inteat number nand n different numbers, Xi, rotgrwards it will galeuiate and isplay the product of all he xi numbers, 7% th % ay Request »= I + 1.) request " axl gm 12. Request xi A : % . ) GB Caleulate Late 7.1 Calculate coun > 2.2 calculate counts? 73 calculate produc 2.4 calculate count 2.5 calculate count= count 2.6 calculate count=count 4, 2.5.2.6 until count n= XY 0 2.7 repeat 2. 3) Display product © 9b. Draw the flowchart that will solve the problem stated in question 9a. start Request n Requeg XT } Count=9 ! \ Product =0 z Count=count+3 ® CHAPTER EIGHT @ accepts 10 integer nu mbers from the keyboard, Inctude ( edb oD : © Wid main { Jptin sum Fioat Nig Cirsen () print + (acater the 10 niu mber n) for (1=1.1(10.18) pw Be w 2 . Give overview. of the structure ‘of | BASI “29 . State five reason why you would recommend BASIC to a beginner in computer programming It is easy toleam i! . Itis easy to understand . It codes in an easy to use graphical environment . Itis very flexible . Itallows revising and modifying the program tolfrightly - How does BASIC compare to COBOL and FORTRAN used before the 1960s? Answer (1) Basic is imperative and used for geiitral application (2)\COBOL is imperative but used for only business (3) FORTRAN is imperative but used for only numesical computers applications. . What do you understand by the sh BASIC? ‘Answers That a complete cuted in the order in which BASIC Program has a sequence(t if Stateméat to Be they are wnitten except wi when ther bis deliberat 5 \Answer Every statement is BASIC J appears in a separatejlin . A. statement ééfinot exceed one line. Each statement can begin with an optical pve integer line number known as tatement, number- the line numbers Tereasddowntands, State with examples the¥data types supported by BASIC. Answer (a) Number- cexainplés~.30 30, 14bs, 9, es (b) strings which includes letters (A-2) and special characterBlike Aaa, 1, % ete. . List the aritiinesic operators used in BASIC in the order of precedence, Answer Addition, subtraction, negative, multiplication, division, exponentiation and muddle. Distinguish between the INPUT and Read Statements in BASIC Answer the Input statement collect read. data froma file the position of the Data statements on the program does not really matter while that of input matters. 30 9. What are control sirudture? Answer ‘control structure entail conditional transfer which allows logical ‘de ‘decisions to be earried sout within the computer using : relational operators to lachieve condition ‘branching + daval¥ey, repeating some Ber of ‘time. with examples how they are used in p ortion ofa iperam for a prvi nun ‘DIMI, SUMAS Integer 150 t SUM-0 IF > =80 THEN SUM=SUM+1 PRINT SUM END IF End { (2)1f- THEN- ELSE If (condition) THEN! (STATEMENT) FOR TRUE? FALS) unter in the execution of BASIC s ‘at’ the censor brompline the uses to ment? Answer it is used to transmit unit apply the he execution is SUSPE “ ‘a wutput from the compater to the display 1 the END statement a 13, What is Ra femeti fon of END state “in. BASIC? Answel indicates the end of BASIC Program execution. 14, Write a BASIC expression/statement that corresp 5x45 Qh). 5x2+6x-3 (0); mx'te (d) x= onds to the following algebraic (ato) (@) (uty) |, expressions: (a) 3 A ae 15. Write a BASIC program that allows the user to enter any number of integer values from the keyboard until a negative value is entered. Then the program prints the ‘ total of the values entered. DIM 1, NUM AS Integer INPUT | 16, Write a BASIC progrdm that prints the overall prim numbers between 1 and 50. Answer Public class prime Public static void main (string cj)? Int p; € For (ant= 1, 1> so; +4) % (©) y=Vsinx — PRE, given that x = 45,y = Mode (x,y) 18.Write a Basic program that generates random numbers between 00 and 10 Answer Rom Program Random RANDOMIZE LET r=1.0 FOR 1-0.0 TO n PRINT Number Next End. bf 2/19. Write a Basic Program that conute shi ition of Number of students in Ma number’ of fbdiires x Below 50: #) Answer Rom program to print, course grade Dim serve as Double Until grade as string i wUnstil encbol score serve ‘Select case score ‘Case 80 to 100 Ease (00 if Grade ‘Case 60tv Grade Case els, Grade End selec’ ‘End print ; xz ie poe aa & 1). > '20:Write a BASIC conve them t mp feat, er Fahrenheit, Answer int main () Float es CHAPTER NINE Ql. Write a program that will evaluate. simple expression such as 1743 and 3.14159*4.7. Ananer Bay: yr1743; (inty; Y=1743;, 2, Whal will happen if the data type fa variable and the value assigned to the vari ave different? Answer, The variable is given the defaulé type. Q3 Create a Java program that simply. outputs the text “Hello World” when you tun jt, Call your main class “Application”. Answer (ag oon Run single élass Hello World’. (Public static void main (string orgs oji (System out present on (Hello world) ) Q4. Write program to perform the following tic and it oh, multiplication on these two numbers 20 and 57. Answer ‘| % REM progyam task CALL Initial (x,y) CALL add (xy, sum) - CALL multiply @y, Product PRINT “sum: ie END; ‘eh SUB initial'(x, INPUT x-20! INPUT y -57)> Hlustrave use of Subrout Initialize variable: In dd two variable Product; product: \° “© : i ; End of main prograin tt END 8MB >». t Let sum= x +y" . Sub multiply (x-y Let product —«y END SUB | Q5. identify the correct code snippet to. Sut Class students String student —name, String student — regno Int student- scores Int student —age. b. Class students String studenis- name String student - T¢gn0 . , Int student - score Int student- age | { gh vay - CLASS Students, String student —nain String student- regno Int student- score, + Int student-age, Class students info = { String student name String student- regno Int student- score, + Int student-age, } gm Qs. What ore main ps for ating a java program? 3 derived Gn abstract data type Q8. What are the main components, of @ class? Answer: (a) data members contributes (b) Methods f Q9. What are literal in Java, give examples? Answer these are known constants- they are sequence of characters digits or both that represent an integer integra; 0, 23 in data Examples: character integral ‘k’, ‘k’. oO 210. What conventions govern the naming of variables in Java programming language. Answer (10 must be a legal Java identifier (2) must not be true or false (3) should not start with a digit QUI. What are reserved words, give some examples? Answer Reserved words are the same as key words and they have special meanings to the Java technology. ‘The identity a data type name or program construct namé example continue for new switch case catch, shut etc. : b 12. Write, dein Soin for clang vais. Aggrer : multiply variables given , QI3. Write declaration statements fof th Dim Sname as string Dim sum ) as integer, anf petitor sel foih Answer: Assigxmeat operation (3)its used to sign values to valuables. e Example = DP7=Dp2. E. QI5. Example the following code snippet. Answer. Code snippets are small blocks of reusable code that can be inserted ina code file using a context genu command or a combination of hot keys. : Q16. Giving the following code Class compare { Public static void main (String 0 orgs){ Int my- age= 40 s Y Int your -age =12 \ If (my- age> your-2ge If (my-ages your-age, } : Me ewi . ' What will the output be ifth + ¥gn ast be ant Bld mai! “J am older then you”) ) system out print ( (you must be an old man”) ) System out print in y value of my age is 8? Answer’, (ie te . mt 17. What are the concepts of OOF? Answer 000 consists of compéifenits objects and which ean be io, develop apelieatons. they interact with each other Encapsulation and inheritayea. a Q18. What stages do java programs §9 through? a main method (3) comment Wm, ie uel Page Ait Q19. Variables in java are cage sonsitivedds iolass declaration (2) two (a) Single-line comment or Q20.. Name the difforent typed of copnments Absw comment in one ling () irultitine ore on Smment on one or more Hines (C) : 9 oa document commen ‘Answer ABC Computer nn and was not completed until 1946.Answer J M. Jered to be the first stored program electronic computer ‘Answer EDSAC 5, ‘The ------ wag th frst computer to 6. The first persanal computer is consi introduced in the year Answer 1971. _ Describe 1/0 in Kenback- Answer the machine was programmed in pure machine code using an array of buttons ‘and switches output consis! of a row of lights. 8, ‘he Micral used -------processor and sold for $1,750 in 971. EDSAC run a graphical game Answer which was first dered to be the Kenback= a v SS 9, The first workstation i Ba Xerox Alto and one IS considered to be - 10. List features of the. ¢{ . ; section (2) display (3) mow” @ Q% Answer (a) Fully functional processing 11.The first laptop is = 1984 P 1S considered to be Answer the introduced in -----~ i =. 5 : and -- introduced in Answer Dabone | splay @) ots comma in QUI Answer (1) weighed 24 land (2) 8 inch 13. The fist personal computer ino es) modem. ene ‘Newer 1953 end 1 by IBM was called -- eee ee the computer in QU3. (a) a 8088 processor (2) 16k6 of memory -Dos 15.The first laptop to features a CD-ROM was IBM's Answer Think Pad 7750 on 16.The first PC clove was developed by ~ compag and march 1983. a 17. Steve Wozniak designed the ----—---yGomputer iti,1976. Answer First Apple T + "18. In'1960__ digitai equipment corporationréleased its first of many PDP computers 1) the PDP-1-“in 1985» Dell intyddfuted itscfirst coimputer, the turbo PC , in 1966 \'” Hewlett Packard released its Ge eneral computer, the He 2115, in 1954 ‘Toshiba introduced its first computérythé JAC ¥ 19.The -. architecture unifies our current pmputing hardware implementations Answer Von Neumano a 20.The history of compile data storage is tied to the development of computers (T/E) Answer Truc ) ae: 21.The functional abstractionis»implemented by the major elements of computing, hardware are “Answer input, olifput, memory and processor. ® 22.Computing hardware initially used analogue quantities. List 6 0 Tengths, prossure eg. Voltage, currents, air and water. 23.Digital compiting elentents have ranged from mechanical ~ Gears clectromechanical zelavs ___, to Vacuum to transistor ~ and to inlemmiet? fntegualed a all of which are curenty implementing the, Von queetated architecture answer jginally calculations were done by ghosts or humans F 2 ran ‘computers were typically engaged in the ate Tate 4 comput s 4 Speciali Ut Cal] 26 raining in sathematics “esillze and expensive requiring a7 eviees have been used to aid computation for thousands of years, usin ‘one correspondence. with our fingers _- and appeared ~ and appeared in 1994 -- Answer ind released in -- f these. Answer 8 One to- 28.The-abacus-was used ~ for: arithmetic-tasks: “The Roman’ abacus ‘was usedin Babylonia as early as_2400BC_BC;...’ ; 29.The abacus is still widely used by merchants, traders and clerks in Asia, Aftica, and elsewhere (Ti'F) Ansiver, True ‘ 30.Draw a sketch of th the Chinese abacus and téll the number it represents. : ; r "physic ¢ John John Napier’ eee and _ division of umbers could be perforin by addition and subtractionprespectively, * of logarithms of numbers. 32.Deseribe how the slide rule is used: Napier itis used allow: division operations to be carried out‘faster. Ci > ey 33.German Wilhelm ickard_ built the: first digital agen agar in 1623, ty and thus became the father of the computing AS > 34. Who said, “ it is unworthy of excellent men to ruse'like slaves i in the Jabour of calculation which could safely’ ” Answer Gottfried Wicheln V Li 36.Charles Babbage’s machines of th os = aystora (Answer-d decimal 1) .on the --- emi Babiage moved to! developing the analytical engine, which In 1835, Babbage described his atialytical engine Answer Programming 39.As designed by was a general-purpose programmable compvter, employing punch cards for input and a steam engine for power. Answer Charles Babbag and analytical engine, \ \ 40.In areal sense, : computers all contain automatic abacuses (i.¢; th? ~ 7 OF ~~--- Anster Data patch, atithmetic, logic nif or Nuating point ' one who did nol _ "41 Babbage Was a eee fficult man to work with and argued with am respect itis ideas (T/F) Answer True, : 42.1n 1890, the United States Census Bureau used punched cards, sorting ita and tabulating machines designed by Herman Hollerith to handle the flood of da machines, from the decennial census mandated by the Constitution Hollerith’s company ~ Answer IBM 43.Describe computer programming in the punch card era (up to the carly 1990s in students would eventually became the core of - Aftica) Answer ‘The:computer users, sciencélland engineerity mputer'centre as stack of card submit their programming assignment to the local and verify processing complying '44.By The 1900s, earlier’ meshani ead ezelectric thotors, with gear position as the cashiregisters, accounting machines, and so on iwere redesigned to. wel \ representation for the state of a - Answer variable 45.Originally the word:fcomputer” was a jobititle assigned to pzople used --- | calbulations Answer these calculators. ee 46.During the ‘Manhawade( Projet fitire Nobel laureate Richard Feynman was the miful of human. computers, many of them supervisor of) the, r women mathematicians, who Understood the --- which were being solve for the war effect, Answer)\Differential equation 47.Describe the'features of-the 1963 Friden Four-Function EC-139, Answ transistor design (2) B-digit capacity (3) 5- inche (4) reverse polish notati 48.Describe the features and functionalities of the 1965, Wang Laboratories \). Answer (1)'10-digit transistorized desktop (2) calculator (3) Nikie tube di © computer logarithms. er (1) All on. * LOCI-2. isplay and I & 49. agi circuit is a specialized form of zaclone circuit, intended to operate at used pm atti oe pated Paper tape for input and as thesfiain (non volatileO storage medium. Answer Zs, Aknasoff burry, Collosues. 51.Alan Turing in 1936 provided a definition of a uring inidhine; This was Universal computer which executes a program stdied onsWwire. Answer Stored on tape. ‘ I 52.Turing complete means -~ 53.For a computing machine to be ae Es some convenient ~ - met and data. ‘Anawef fohn a Nevim, 55.Zuse also elaiined to > first higher level programming language, -- far ar i, the British attacked the ‘German ‘encryption machine, . The ~ ~~ designed (by Alan Turing and Gordon Welchman came into use in 1941. Enigma,(with the X help of electro- mechaitical machines called — Answer tombes and bombo i 57.Colossus was the first totally electronic, computing device. Describe its features. Answer it had a huge number. of vacuum tubes (2) it had paper tape imprint (b) it a r jt S8.In 19.19, Stibite was able to send ‘the complex Number calculator remote ne lines by a teletype. It was the first -— in this case over a phone line, Answer Computing machine. a Orde 7 re John yticipaiits in.the Conference who witnessed the demonstration were Joh; Von Neumann, John Mauchly, and ~~... SO0.Desciibe the design features of the Atanasoff-B is of special purpos: -- ever used commands over telophoy i remotely, 59.Some --. Answer Norberl Wiener erry Computer (ABC). Answer It © digital electronic calculator it used over 300 vacuum tubes and employed capacity fixed in a mechanically rot 61. Harvard Mathematician, Howard Aiken, from 1 Mark 1 (aa faling drum of memory. 939 directed the development of ). Answer Automatic Sequence controlled ci alculator. 62.Describe the design fe; atures of Mark 1. Answer\(1) it used, decimat arithmetic (2) Storage wheels (3) votary switches ()eleetro magnetic rela SS.FNIAC war a Yuring-complete dite Crip AnSiweh True 64.Once a program was vwwitten forthe ENIAC, tad to be machine iby te six Women.who did mode of the pr mechanically set into the regramming of ENIAC, Cute stored programs sot ess. a “one-off? improvements comp leted in 1948, madeYE possible to exe in - -—- table memory, which made Programming | systematic Answer Fuhetion Table memory 65.The first implemented high-level general Purpose programming langy was developed at IBM during 1955-7. Answer True 66.4 volutitees* user “group was founded in 1955 4 experiences with the IBM 701; this group, of -- and more Be, Fortran, © share ‘their Sottware and which exits tg this day, yy «Answer open source. * Progenitor 67.In 1955, Maurice Wilk Kes at University’ of Cambridge Mventeq ___ = which tended by built. in Pro, film wave op ™icrolady, ‘Answer Mici Mg TO programming an grams {sks to ‘store: 5: megabytes of: data -and- cost ni ‘slorage, in the form of hard disks, ie). What is the percentage 68.RAMAC. used: 50. 24-inch’ metal; ¢ $10,000 per-megabyt (As of, 2008; costs “less, thanyoné® 50" of improvement? Answer:20%. 69.Initially Jit was believed: that} few, gamputers would, ever, be produced or used WILY? ~Atiswer ‘This was due iti patt'to their size,'cost and the skill required to operate or interpret results, My 7o.Transistors greatly reduced computers size, initial cost and operating cost. Describe the hasic operation of the transistor. Aniswer if no eléetrical current films, the Hansistors collector epiiffer path’ blocks:¢lectrical current (lusn full off if sufficient curtent flows, the transistors colleotor ~enuiffer path also passes current (turn fall'on) Ley nt ip 4 7\.How the binary states)-are: represented susing ‘transistor? - represents binary ? (irue or O false): 72.Many second geneztic secondary processor. card reading and pun instructions. One Answer {pligral. device corpjnunications to @ picalign, processor controlled id peripheral devices. “provided sufficient speed for 4 ‘lometers separation between situally these stand alone computer cted network of networks, ~ ith: Third Generation computers ‘gwer" Integrated circuit the micro 74.The explosic { powered bytinventi processor and mcr. chi Lig working the Asiswer Google * entury, multi-core; 15. , serviceevel 76.In the twanty-lirst Answer True 71. - has ubiquitous’ emb satellites Answer CMQ/s CPUs became commercial available (T/F)

You might also like