Sei sulla pagina 1di 29

LESSON 1

Program and Programming


'. changing 1. __________is a set of commands or instructions which directs a computer in doing a task. 2. These _________________will be compiled and/or interpreted and then transformed to an executable instruction that a computer or electronic device can execute or "run". 3. ________________enables humans to communicate with computer. 4. programming language is a set of words!_________________ ! and codes that enables humans to communicate with computers. ". programming language is a language used for writing computers______________ 1.______ is a set of commands or instructions which directs a computer in doing a task. . #rogram $. %anguage &. #rogrammer '. #rogramming %anguage 3. (uman communicates with computer using language. . sign $. )nglish &. *achine '. #rogramming 4. +he commands or instructions of a program will be before executing. . running $. transfer &. compiled

SCORE

". #rogramming language is a language used to computer programs. . draw $. write &. read '. listen ,. #rogramming language is a set of ______that enable human to communicate with computer. -. codes --. words ---. s.mbols .$. -&. - and -'. ll the above /. +his is the source code.

. $ 0-&1s $. # 0& %1s &. 234+4 51s '. & %anguage1s 16. )ach programming language has its own for writing the commands and/ or instructions. -. rules --. signal ---. standard -7. language . - and -$. - and --&. -- and ---

1
ICT WORKSHEET, FORM 5

'. --! --- and -7

LESSON 2
Generations of Programming Languages
1. +he first8generation programming language! or 19%! is machine language. +rue 2alse 2. +he second 8generation programming language! or 29%! is assembl. language. +rue 2alse 3. :uer. %anguage is a third 8generation programming language. +rue 2alse 4. high8level programming language is often referred to as goal8 oriented programming language . +rue 2alse ". fifth8generation programming language also called natural language. +rue 2alse 1. *achine language is the______ . natural language $. low8level programming language &. high8level programming language '. ver. high8level programming language 2. ______language programmers write instructions using mnemonic instruction codes. . 5atural $. *achine &. ssembl. '. #rocedural 4. _____programming language is usuall. limited to a ver. specific

SCORE

application that might use s.ntax which is never used in other programming languages. . 5atural $. %ow8level &. (igh8level '. 7er. high8level ". _______programming allows people to interact with computers without needing an. speciali;ed knowledge. . 2irst $. 2ifth &. +hird '. 0econd ,. #rograms written in a __programming language must be translated into machine language b. a compiler or interpreter. . natural $. low8level &. high8level '. ver. high8level <. +he __programming language provides a visual or graphical interface for creating source code. . natural $. low8level &. high8level '. ver. high8level

2
ICT WORKSHEET, FORM 5

LESSON 3
Programming Approaches
1. 3b=ect 8oriented programming approach refers to a special t.pe of programming approach that combines data with _______________to create ob=ects. 2. 0tructured programming fre>uentl. emplo.s a ___________design model. 3. 0tructured programming enmplo.s a hierarch. of _________________ 4. ______________is one of the important features in ob=ect 8oriented programming which allows one ob=ect to incorporate data or behavioural facets of another. ". -n ob=ect 8oriented programming! the programmer packages the data and function into ________________.
1. +here are two t.pes of programming approaches! which are ___programming. -. ob=ect --. design ---. structured -7. ob=ect8oriented . - and -$. - and --&. -- and --'. --- and -7 2. 0tructured programming is a techni>ue for organising and coding computer programs in which a ___________ of modules is used. . hierarch. $. flow chart &. bottom8up '. pseudo code 3. ________are the examples of structured programming languages. -. ' --. &?? ---. @ava -7. 7isual $asic . - and -$. - and --&. -! -- and -7 '. --! --- and -7

SCORE

SCORE

4. +he ____design approach enables a programmer to package the data and program Aor procedureB into a single unit! called an ob=ect. . ob=ect $. waterfall &. structured '. ob=ect8oriented ". -n an ob=ect8oriented programming! it1s ob=ects can inherit _____from other ob=ects. -. codes --. action ---. functions -7. characteristics . - and -$. - and --&. -! -- and -7 '. -! --- and -7 ,. ______are popular ob=ect8oriented programming languages. -. da --. 0:% ---. #ascal -7. 0malltalk . - and -$. - and --&. -!-- and -7 '. -!--- and -7 <. +he ob=ect8oriented design approach enables a programmer to package the _______into a single unit! called an ob=ect. -. data --. module ---. program -7. function

LESSON 4
rans!ators
1. -nterpreter translates assembl. language into machine code. +rue 2alse

. - and -7 $. -- and --&. -! -- and --'. -! --- and -7

SCORE

2. &ompiler translates source8code text which is written in a high level of programming language into a lower level language Ae.g. assembl. language or machine languageB and will create an executable file. +rue 2alse 3. -nterpreter8based program does not need to be compiled prior to the execution. +rue 2alse 4. *achine code is easier to understand compared to assembl. language. +rue 2alse ". &ompiler8based program are faster than interpreter8based program. +rue 2alse 1. 16616666 is an example program sentence in what languageC . 5atural language $. ssembl. language &. (igh level language '. *achine language 2. Dhich of the following programs translates assembl. language into machine code languageC . &ompiler $. ssembler &. -nterpreter '. ssembl. language compiler 3. Dhich of the following describes a compiler the bestC . -t translates assembl. language into machine code language. $. -t is easier to understand and use compared to high level language. &. -t can search and remove unnecessar. binar. notation in programs. '. -t translates high level language into lower level programming language.

4. )xamples of assembler tools are -. *acro8/6 assembler graphic --. *icrosoft * 0* ,.6 ---. *icrosoft 7isual $asic -7. @ava . - and --

$. -! -- and -7 &. --! --- and -7 '. ll the above ". ____translates source code directl. into machine code in real time when users run the program. . &ompiler $. ssembler &. -nterpreter '. (igh level interpreter ,. $ 0-&! %ogo and 0malltalk are examples of language which use _____to translate their code into machine code. . compiler $. assembler &. interpreter '. assembl. language interpreter <. -nterpreter8based program does not need to be _________prior to the execution . compiled $. arranged &. assembled '. structured /. ___________is a file that contains the machine code that can be executed b. the computer. . *achine file $. ssembl. file &. )xecutable file '. 0ource8code file

LESSON "

SCORE

#nsta!!ation of $icrosoft %isua! &asic '()


1. 7isual $asic can run on the following platform. -. '30 --. Dindows 3.1 ---. Dindows E# . --$. - and -&. -- and --'. -! -- and --2. Dhich of the following is the minimum re>uirement for installing *icrosoft 7isual $asicC -. *icrosoft Dindows F" or later --. 4/,'E/,, *(; or higher processor ---. "12 *$ of 4 * for Dindows F"/F/ .$. - and -&. - and --'. -!-- and --3. Dhich of the following features in 7isual $asic ,.6 allows .our application to access information from a database such as a telephone book programC . 'ata access $. 7isual interface &. -nternet capabilities '. ctiveE technologies

4. Dhich of the following features in 7isual $asic ,.6 allows .our application to make use of the functionalit. provided b. other applicationsC . 'ata access $. 7isual interface &. -nternet capabilities '. ctiveE technologies ". +he acron.m "$ 0-&G refers to . $etween ll8#urpose 0.mbolic -nstruction &ode $. $eginners ll8#urpose 0.mbolic -nstruction &ode &. $eginners ll8#urpose 0.mbolic -nstruction &ompiler '. $eginners ctiveE8#urpose 0.mbolic -nstruction &ode

,. Dhich of the following s.stems can install 7isual $asic ,.6C . #ocket #& with Dindows &) operating s.stem . $. Dindows 3.1 operating s.stem with a 3/, processor. &. %inux 4edhat operating s.stem with a #entium -7 processor. '. Dindows E# (ome )dition operating s.stem with "12 *$ 4 * with a #entium --- processor. <. +he phrase H7isual" in the 7isual $asic term refers to which feature in 7isual $asic ,.6C . 'ata access $. -nternet capabilities &. ctiveE technologies '. +he drag and drop user interface feature /. Dhich of the following are the main features of 7isual $asicC - -nternet capabilities -- 'ata access features --- ctiveE technologies -7 'rag and drop user interface . -!-- and --$. -!--! and -7 &. -!--- and -7 '. -! --! --- and -7 F. Dhich of the following is not a feature of 7isual $asic ,.6C . 'ata access $. -nternet capabilities &. 9raphics rendering '. ctiveE technologies

LESSON '
&asic e!ements in programming
1. H-f )lseG statement is an example of a __________________ statement. 2. 7alue inside a __________________ ma. change at an. time during the course of a program. 3. +here are five basic elements in programming that areI constant! variables! data t.pes! _________________ and control structures. 4. _____________ refers to a classification or categor. grouping of information. ". ______________ is a virtual data holder that keeps information that will never change during the execution of a program.
1. ______is a virtual data container that stores information that will never change during the course of a program. 3ne example is H&onst $35J0 K 1."G . 7ariable $. &onstant &. 'ata t.pe '. &ontrol structure 2. Dhich of the following are NO examples of data t.pesC . 0tring $. -nteger &. #lusA?B '. 2loating point 3. Dhich of the following describes control structuresC -. &ontrol structure is a virtual data container that stores information. --. n example of control structure statement is Lif else control structureL. ---. &ontrol structures allow the programmer to control the flow of a program.

SCORE
-7. &ontrol structure refers to a classification or categor. grouping of information.

. - and -$. -- and --&. -- and -7 '. - and --4. Dhich of the following describe variablesC -. 7ariable is a virtual data container that stores information. --. 'im marks s -nteger is an example of a variable declaration. ---. +he value inside ma. change at an. time during the course of a program. -7. +he value inside variable ma. not change at all if the programmer doesn1t change it. . -!-- and --$. -!--- and -7 &. --!--- and -7 '. -!--!--- and -7 ". Dhich of the following are examples of operator notationC - ? AplusB and 8 AminusB -- M Agreater thanB! N Aless thanB --- KK Ae>ual toB! and OK Anot e>ual toB -7 / Adivided b.B and P Amultiplied b.B . -!-- and --$. -!--- and -7 &. --!--- and -7 '. -!--!--- and -7 ,. _______ classif. and categorise information according to their t.pe. 7ariables $ &onstants & 'ata t.pes ' &ontrol structures

LESSON *
Constants And %aria+!es
1. 7ariable represents a place where a >uantit. can be stored and modified. +rue 2alse

SCORE

2. &onstant is used to store a >uantit. that does not change its value during the execution of the program. +rue 2alse 3. 7ariable is exactl. the same as &onstant. +rue 2alse 4. $oth &onstant and 7ariable assign an identifier with some value which later can be addressed with the identifier name. +rue 2alse ". &onst bonus multiplier K 1." +he above is an example of a variable declaration in 7isual $asic ,. +rue 2alse 1. Dhich of the following are examples of constant declarations in 7isual $asic ,.6C -. &onst pi K 3.142 --. 'im $& s -nteger ---. 'im $35J0 s 0tring -7. &onst 4*_J0'_&J44)5&Q K 3.< .$. - and -7 &. --- and -7 '. -!--!--- and -7 2. ____is a >uantit. place that stores a data that will never be altered during the course of a program. . &onstant $. 7ariable &. 'ata t.pe '. &ontrol structure 3. Dhich of the following describes constantC -. 4epresents a place where a value can be initiali;e and stored but will not be modified. --. 'eclaring a bonus multiplier to be used in calculating .earl. bonus in a pa.roll program.

---. &onstant assign a name Aalso known as identifierB with some value! the value can then be accessed later via the variable name.

-7. &onst pi K 3.142 is an example of constant declaration in 7isual $asic ,.6 that declare a constant named pi with the value of 3.142. . -!-- and --$. --!--- and -7 &. -!-- and -7 '. -!--!--- and -7 4. Dhich of the following describes variablesC -. data storage location that hold an information. --. 7ariable pi K 3.142 is an example of variable declaration. ---. 'im marks s -nteger is an example of variable declaration. -7. -ts value ma. be updated at an. time during the course of a program. . -!-- and -7 $. -!--- and -7 &. --!--- and -7 '. -!--!--- and -7 ". Dhich of the following application is more appropriate to use variable than constantC -. +he share prices. --. 5umbers of hour in a da.. ---. +he weight of students in a class. -7. &onvertion from kilograms to grams. . - and --$. - and -7 &. -- and -7 '. --- and -7 ,. Dhich of the following describes 'im score . declare a variable named dim $. declare a constant named dim &. declare a variable named score '. declare a constant named score s -nteger statement in 7isual $asic ,.6C

LESSON ,
Data Types
2ill in the blanks with the correct answer.

1. Dhich of the following values can be stored as an integer data t.peC

-. // --. 123 ---. 12." -7. /666 .$. - and -&. -! -- and -7 '. -! --! --- and -7 2. Dhich of the following values can be stored as a string data t.peC -. H5o 123G --. H)mir 4as.idG ---. Hkhalsdf=oasif//2F/3G -7. H0ekolah +uanku bdul 4ahmanG .$. -- and -7 &. --! --- and -7 '. -! --! --- and -7 4. Dhich of the following describes $oolean data t.peC . value that is either +rue or 2alse. $. variable consisting of a series of characters. &. representation of numbers that can have fractional parts. '. whole number that does not have a fractional part.

SCORE

". Rulaikha and 5adirah want to develop a software to calculate discounts in a shop. Dhich t.pe of data should the. use to store the item1s pricingC . 0tring $. 'ouble &. -nteger '. $oolean ,. Dhich of the following items can be stored as an integer data t.peC . 166m sprint timing $. 5umber of pages in a book &. -tem1s price in the market '. &urrenc. conversion value <. Jncle 9oh wants to develop a software that contains the contact addresses of his customers. Dhich data t.pe should Jncle 9oh use to store the contact addresses of his customersC . 0tring $ 'ouble & -nteger ' $oolean

16. __________ data t.pe consists of +4J) or 2 %0) value onl.. #rogrammers usuall. use this t.pe of data t.pes to store status. . 0tring $ 'ouble & -nteger ' $oolean

LESSON Operators
1. H3peratorG is a program or software that tells the computer to perform certain actions or operations. +rue 2alse 2. n example of a logical operator is the plus A?B operation which will tell the computer to perform the HaddG operation. +rue 2alse 3. *athematical operators tell the computer to perform mathematical operations that are similar to operators in mathematics. +rue 2alse 4. 0ome examples of logical operation areI 5'! 34 and 53+. +rue 2alse ". *athematical operators perform logical operations such as checking the condition of two $oolean values. +rue 2alse 1. H3peratorG is a s.mbol or _________________ that tells the computer to perform certain actions or operations. 2. ____________________tells the computer how to process data either mathematicall. or logicall.. 3. 0ome examples of ______________________ operators are ? AplusB! 8 AminusB! / Adivided b.B! P Amultiplied b.B and K Ae>ual toB. 4. 5'! 34 and 53+ are examples of a ______________________ operation.

SCORE

". %ogical operators can be used to check multiple _________________values in programming.

1. Dhich of the following are examples of mathematical operatorC -. 34 --. ? AplusB ---. K Ae>ual toB -7. / Adivided b.B . - and --$. - and -7 &. -! -- and --'. --! --- and -7 2. Dhich of the following are examples of logical operatorC -. 3r --. 5' ---. 53+ -7. K Ae>ual toB . - and -7 $. -- and --&. -! -- and --'. --! --- and -7 4. __________________ tell the computer to perform mathematical operations that are similar to operators in mathematics. . %ogical operator $. 4elational operator &. *athematical operator '. rithmetic and logic operator

". Dhich of the following describe operatorC . sign which will tell the computer to perform add operation. $. s.mbol that tells the computer to perform mathematical operations. &. notation that tells the computer to perform certain mathematicall. or logicall. operation. '. n instruction that asks computer to perform logical operations such as checking the condition of two boolean values. <. teacher would like to develop a program to check if an. of his students fail his sub=ect. Dhich t.pe of operator and notation the teacher should useC . %ogical operator! 34 $. %ogical operator! 5' &. *athematical operator! 34 '. *athematical operator! 53+

LESSON 1)
Pseudo Code

SCORE

1. Dhich of the following is +4J) about pseudo codeC . #ure visual basic like language. $. (ave specific programming language s.ntax. &. 'oes not have an. specific programming language s.ntax. '. 4esemble certain programming language s.ntax and grammar. 2. #seudo code uses _______________. . scientific report $. complete sentences &. mathematics e>uation '. plain )nglish like sentence

3. #seudo code can be used to__________ . identif. the graphic onl. sentences. $. describe the logic or the flow of a computer program. &. define the programming s.ntax of a computer program. '. simplif. the logic and program flow of a computer program. 4. Dhich of the following is 53+ +4J) about pseudo codeC . +here are no set rules for writing pseudo code. $. #seudo code resembles programming like sentences. &. programmer can have his or her personalised pseudo code. '. programmer must use consistent language and s.ntax in the pseudo code.

LESSON 11
.!o/ Chart
1. flow chart is a diagram using s.mbols to show the step8b.8step se>uence of procedures in a program. +rue 2alse 2. flow chart describes the logic and program flow of a computer program using text onl. sentences. +rue 2alse 3. +he terminator in a flow chart shows the beginning or end of a program. +rue 2alse 4. +he input or output indicates a process to be carried out like an addition or calculation. +rue 2alse ". +he decision represents a decision Aor choiceB to be made. +rue 2alse 1. Dhich of the following describe about flow chartC -. can be considered of as a graphical form of pseudo code --. can be used to describe the logic or the flow of a control structure ---. describe the logic and program flow of a computer program graphicall. -7. it is text onl. sentences that describe the logic and program flow of a computer program . - and -7 $. -! -- and --&. -! -- and -7 '. --! --- and -7 2. 2low chart is a method to describe the logic and program flow of a computer program. . text onl. $. graphical &. photo onl. '. multimedia presentation

SCORE

1. Dhich of the following are the elements used in a flow chartC -. rrow --. #icture ---. +erminator -7. -nput and output . -! -- and --$. -! -- and -7 &. --! --- and -7 '. -! --- and -7 2. 2low chart is a diagram using s.mbols that . indicates the direction of a program. $. shows the step8b.8step se>uence of a program. &. explains the input output process onl. in a program. '. describes the logic and program flow of a computer program b. text. 3. Dhich element is used to initiate and close a flow chartC . #rocess $. 'ecision &. +erminator '. -nput or output 4.____ in a flow chart enables the programmer to assign different events for different situations. #rocess $ 'ecision & +erminator ' -nput or output ". #rof *ad.a 5orihan! a mathematic lecturer in a matriculation college wants to develop a program that will automaticall. calculate the perimeter of a rectangle based on the given x and .. fter calculating the perimeter! the program will displa. different messages for different perimeter result. Dhich t.pe of flow chart element is most suitable to implement the Hdifferent messageG part of the programC #rocess $ 'ecision & +erminator ' -nput or output

LESSON 12
Contro! Structures

SCORE

1. &ontrol method or that allows programmer flow of a

structure is a techni>ue the to control the program.

+rue 2alse 2. #seudo code is graphic onl. sentences that describe the and program flow of a computer program. +rue 2alse 3. -f else statement is an example of se>uence control structures. logic

+rue 2alse 4. 0election control structure enables the programmer to assign different events for different conditions. +rue 2alse ". -n se>uence control structure! the statements are executed one b. one in consecutive order. +rue 2alse 1. Dhich of the following describe se>uence controlC -. -mplement decision making process in the program. --. )xecute different statements for different conditions. ---. )xecute the code line b. line regardless of the condition. -7. )xecutes statements one b. one in linear or consecutive order. . - and -$. - and --&. -- and -7 '. --- and -7 2. Dhich of the following is 53+ +4J) about selection controlC . 0election control enables a program to have a decision8making process. $. 0election control can execute different codes for different circumstances. &. 0election control carr. out statements execution one b. one in successive order. '. 0election control enables the programmer to assign different events for different 0ituations ". ______refers to the linear execution of codes within a program. -t1s statements are executed one b. one in consecutive order. . 0election control structure $. 0e>uence control structure &. 4epetition control structure '. &onsecutive control structure ,. _________enables the programmer to assign different events for different situations. #rogrammers can use it to implement decision making process within it1s program. . 0election control structure $. 0e>uence control structure &. 'ecision making control structure '. 0e>uence selection control structure <. -f .ou have charged .our batter. for 4 hours. Dhat is the result of this pseudo codeC &EG#N Re0uest +atter1 charger time of handset #f time is more than or e0ua! to 3 hours print 23our +atter1 is fu!!1 charged4 E!se print 23ou need to recharge the +atter14 End #f EN5 . Qou have spoilt the batter. $. Qour batter. is full. charged &. 4echarge .our batter. tomorrow

'. Qou need to recharge the batter. /. Dhat is the outcome of this pseudo code if r K ,C

. /"1.62< $. F64./F, &. /26.F2< '. /41.116

LESSON 13
Program 5e6e!opment Phases

SCORE

1. +he

program development phases are series of steps programmers use to build computer ___________________.. . printers $. hardware &. programs '. languages 2. +he program development phases consist of ____________ phases. . two $. five &. four '. three 3. rrange the program development phases correctl.. -. &oding phase --. 'ocumentation phase ---. #rogram design phase -7. #roblem anal.sis phase 7. +esting and debugging phase . -! --! ---! -7 and -7 $. --! ---! 7! -7 and &. ---! 7! --! -7 and '. -7! ---! -! 7 and -4. -n this phase! a programmer will review and define the problem. . &oding phase $. 'ocumentation phase &. #roblem anal.sis phase '. +esting and debugging phase ". -n this phase! the programmer will identif. the data input! processes and output for the program. . &oding phase $. 'ocumentation phase &. #rogram design phase '. #roblem anal.sis phase ,. -n this phase! a programmer must create a flow chart. . &oding phase $. 'ocumentation phase &. #rogram design phase '. #roblem anal.sis phase

<. -n this phase! a programmer uses a program development tool to write a code that translates the design into a computer program. . &oding phase $. 'ocumentation phase &. #rogram design phase '. +esting and debugging phase

/. -n this phase! the program testing is to ensure the program runs correctl. and is error8free. . &oding phase $. 'ocumentation phase &. #rogram design phase '. +esting and debugging phase F. -n this phase! the program will locate and correct programming errors. . &oding phase $. 'ocumentation phase &. #rogram design phase '. +esting and debugging phase 16. -n this phase! the description of a computer program will be written. . &oding phase $. 'ocumentation phase &. #rogram design phase '. +esting and debugging phase

SCORE

LESSON 14
Pro+!em Ana!1sis Phase
1. +here are ______________ phases in program development. . one $. five &. four '. three 2. #hase 1 for program development phase is . coding $. documentation &. program design '. problem anal.sis 3. -n phase 1 of program development! the programmer will identif. the ____________ for the program. . file $. error &. data input '. s.ntax error 4. -n problem anal.sis phase! the programmer -. identifies the output --. identifies the data input ---. identifies the process -7. reviews and defines the problem . -! -- and --$. -! --! and -7 &. -! --- and -7 '. -! --! --- and -7 ". -n problem anal.sis phase! the programmer . -. interviews the client --. identifies the error ---. identifies the problem bugs -7. reviews and defines the problem . - and -7 $. -! -- and --&. -! -- and -7 '. -! --! --- and -7

SCORE

,. #rogrammer must interview the clients to find out their ______________. . file $. programs &. documents '. re>uirements <. -n problem anal.sis phase! the programmer identifies the purpose of the ______________. . file $. program &. problems '. processing /. 0tudents who are not >ualified to receive the fund will show program response H0orr.! please tr. to appl. next .ear.G is an example of _______________ identified b. the programmer. . input $. output &. process '. purpose F. +he programmer identifies the data _______! process and output for the program. . input $. output &. design '. instructions 16. +he programmer __________________ throughout the first phase of program development. . codes programs $. designs programs &. anal.ses problems '. documents programs

LESSON 1"
Program 5esign Phase

SCORE

1. -n phase! the programmer must devise a program design. . first $. third &. fourth '. second 2. 0econd phase of the program development is ______________ . coding phase $. program design phase &. problem anal.sis phase '. testing and debugging phase 3. -n program design phase! there are 3 popular tools which are -. flow chart --. pseudo code ---. top8down design model -7. bottom8up design model . -! -- and --$ -! -- and -7 & -! --- and -7 '. --! --- and -7 4. -n a top8down design model! the main program will be divided into ___________ . modules $. s.mbols &. flow charts '. pseudo code

". _______ contains rectangles and lines.. . code $. module &. pseudo code '. top8down design model ,. ____________________ uses plain )nglish to conve. the program flow. . *odule $. 2low chart &. #seudo code '. +op8down design model <. _____________________ is an outline of a computer program! written in a mixture of a programming language and )nglish. . *odule $. 2low chart &. #seudo code '. +op8down design model /. __________is a chart consisting of s.mbols and words that completel. describe a program. . *odule $. 2low chart &. #seudo code '. +op8down design model F. $esides a flow chart! the programmer also produces ____________________. . document $. input instructions &. input user interface '. internal machine code

SCORE

LESSON 1'
Coding Phase
1. +he third phase in the program development is ____________ . . coding $. documentation &. problem anal.sis '. testing and debugging 2. #rogrammer using a program development tool to translate the ______________ into a computer program. . text $. coding &. design '. document 3. _______________ is an example of the program development tool used in *ala.sian secondar. schools. . $ 0-& $. 'elphi &. 0mall+alk '. 7isual $asic 4. ____________ is a process of writing the solution into the computer programming language. . &oding $. 'esign &. lgorithm '. 'ocument ". #rogrammer usuall. writes the ______________ using computer programming language. . code $. design &. s.mbol '. document ,. program development tool provides some or all the ____________ that enables the programmer to translate the design into a computer program. . text $. code &. s.mbol '. numeric <. programming language1s _______is a set of rules specif.ing a st.le of writing instructions. . text $. s.ntax &. s.mbol '. numeric /. +he process of written ___or code for computers is known as coding. . text $. number &. document '. instructions F. +he popular programming languages used in *ala.sian secondar. schools are -. & --. 2ortran ---. 7isual $asic -7. *icrosoft )xcel . - and -$. -! -- and --&. - and --'. -! --! --- and -7 16. 0.ntax is a set of rules in writing _____________ for a computer program. . text $. code &. document '. pseudo code

LESSON 1*
Testing And Debugging Phase
1. +he programmer has finished the coding! the next step is to test it. +rue 2alse 2. +he process of locating and correcting s.ntax and logic errors in a program is known as testing the program. +rue 2alse 3. #rogrammers usuall. discover s.ntax errors the first time the. attempt to compile or interpret program code on the computer. +rue 2alse 4. -f the expected output and actual output do not match for an. set of data! the program has a logic error. +rue 2alse ". 4eal8time error is an error that occurs while the programming is running. +rue 2alse 1. +he fourth phase in program development is . . coding $. documentation &. program design '. testing and debugging 2. 3nce the programmer finishes coding! the next step is to ___it. . test $. write &. build '. correct 3. +he purpose of program ___is to ensure the program runs correctl. and is error8 free. . testing $. writing &. correcting '. designing

SCORE

SCORE

4. -f the expected output and actual output do not match! the programmer needs to do____ . data input $. calculation &. evaluation '. desk checking ". _____ error occurs when the code violates the grammar of the programming language. . logic $. s.ntax &. run8time '. semantic ,. Dhen a _____error is located! a message is either displa.ed on the screen immediatel. or is written to a log file. . logic $. s.ntax &. run8time '. semantic <. -f the expected output and actual output do not match for an. set of data! the program has a _________ error. . logic $. s.ntax &. run8time '. semantic /. ______error is an error that occurs while the program is running. . %ogic $. 0.ntax &. 4un8time '. 0emantic F. ______error ma. cause the program to stop execute. . logic $. s.ntax &. run8time '. semantic

LESSON 1,
5ocumentation Phase

SCORE

1. 'ocumentation is a description of computer programs. -. orall. --. written ---. graphical . - and --$. -- and --&. - and -'. -! -- and --2. +he detailed la.outs of _____records are also included in the documentation package. . errors $. graphic &. purposes '. input and output 3. ___________documentation consist of comments within the program. . +esting $. -nternal &. +utorial

'. )xternal 4. -n documentation! the ____comments explain the purpose of the code statements within the program. . global $. internal &. problem '. debugging ". #roper ___is valuable if the program re>uires changes in the future. . coding $. documentation &. problem anal.sis '. testing and debugging ,. _______documentation helps future programmers to make corrections or other modification in programming language. . +ext $. -nternal &. +utorial '. *anual

SCORE

LESSON 15e6e!op a Program


1. 0tate the flow for developing program phases from the first to the last phase. -. &oding phase --. 'ocumentation phase ---. #rogram design phase -7. #roblem anal.sis phase 7. +esting and debugging phase . - -- --- -7 7 $. 7 --- -7 -- &. 7 - --- -- -7 '. -7 --- - 7 -2._______ is the first step in creating a program. . &oding the s.stem $. 'esigning the s.stem &. 'ocumenting process '. nal.sing the user1s re>uirements 3. ______helps the programmer to assess the weakness of a program. . 'ebugging $. 0election control &. 0e>uence control '. #rogram testing and debugging 4. -n which development phase will the programmer! translate the s.stem design into a working programC . &oding phase $. +ranslation phase &. 'ocumentation phase '. #rogram design phase ". 0*S +aman *elawati1s headmaster re>uests ina to develop a small inventor. s.stem for the school librar.. +he s.stem will be used b. the librarians to manage a book inventor.. Dhich of the following activities are parts of the problem anal.sis phaseC -. 4ead books at the librar. --. +rain the librarian to use the librar. s.stem ---. -nterviewing the librarians to understand their re>uirements -7. +r. to borrow some books from the librar. to understand the #rocess . --- and -7 $. - and --&. -! -- and --'. --! --- and -7 ,. *athematic teacher wants to develop a program that will automaticall. calculate the volume of a sphere based on the given r. Dhat is the risk faced b. the teacher if she does not do the testing and debugging phaseC . +he program might have a serious error or bug. $. +he user interface might not be suitable for the student to use. &. 2uture maintenance and s.stem improvements are hard to achieve. '. 3ther people reading her program might not be able to understand the code. <. untie (alila wants a s.stem that can remind her about her daughterLs birthda.. rrange the programmerLs action according to the program development phase. -. 'ocument all relevant information about the s.stem -- Drite the program using 7isual $asic ,.6 --- 'esign the s.stem based on untie (alila1s re>uirement -7 #erform testing and debugging to the completed s.stem 7. nal.se her motherLs need . - -- --- -7 7 $. 7 --- -7 -- &. 7 - --- -- -7 '. 7 --- -- -7 /. _________phase is important for the purpose of future maintenance and s.stem improvement. Dith it! the end user will be able to understand the s.stem better. . &oding $. 'ocumentation &. #rogram design '. #roblem anal.sis 16. Dhich of the following is 53+ an activit. related to the coding phaseC . 4ahman writes a pseudo code. $. #oh %ip writes a data structure program in &. &. &handran writes a program in 7isual $asic ,.6. '. Qamani writes a microprocessor program in &??.

LESSON 2)
he Latest Programming Languages
1. 5atural language programming will use normal )nglish as the input to program software. +rue 2alse 2. *etafor created b. researchers from the *assachusetts -nstitute of +echnolog. *etafor is a language8to8code converter which aims to simplif. programming using natural language. +rue 2alse

SCORE

3. -n fifth generation language! the programmer needs to define the problem that needs to be solved and manuall. code the program based on the problem definition. +rue 2alse 4. #rolog is a fourth generation programming language. +rue 2alse ". fifth generation programming language is also called natural language. +rue 2alse

1. )mir 4as.id wants to develop a program. $ut he does not want to stud. an. specific programming s.ntax. (e prefers programming language that is able to automaticall. translate his plain )nglish into codes. Dhat t.pe of programming language is he looking forC . 3pen9% $. 5atural language &. #lain )nglish processor '. 2ourth generation language 2. 5isha Sumar is looking for a programming language that will be able to automaticall. code her program based on the problem she specified. Dhat t.pe of programming language is she looking forC . 3pen9% $. #roblem based language &. 2ifth generation language '. *achine language processing 3. Dhich of the following are examples of fifth generation programming languagesC -. & --. #rolog ---. *ercur. -7. *etafor . -- and --$. -! --- and -7 &. -! -- and -7 '. --! --- and -v 4. Dhich of the following statement describes natural language as a programming languageC -. Didel. used in virtual realit.! & '! scientific visualisation --. -t aims to use natural language such as )nglish to write program ---. -t does not define or use an. specific programming language s.ntax -7. #rogrammer =ust needs to define the program using normal language . -! -- and --$. -! -- and -7 &. -! --- and -7 '. -! --! --- and -7

". Dhich of the following statement describes 3pen9%C -. -t was developed b. 0ilicon 9raphics. --. )xamples of application developed with 3pen9% include #rolog and *ercur.. ---. -t is a set of functions and the exact behaviours that the 3'/2' application must perform. -7. -t is a standard specification to describe the standard pplication #rogramming -nterface A #-B for 3'/2' computer graphic applications. . -!-- and --$. -! -- and -7 &. -! --- and -7 '. --! --- and -7 ,. Dhich of the following statement describes fifth generation programming languageC -. -t is used mostl. in artificial intelligence research. --. -t is designed to make the computer solve the problem for .ou. ---. )xamples of fifth generation languages include #rolog and *ercur.. -7. -t is a standard specification that describe the standard pplication #rogramming -nterface A #-B for 3'/2' computer graphic applications. . -! -- and --$. -! -- and -7 &. --! --- and -7 '. -! --- and -7

Potrebbero piacerti anche