• TwitterFacebookGoogle PlusLinkedInRSS FeedEmail

Contoh Flowchart Program Pascal

22.12.2019 

TA5004: COMPUTER PROGRAMMING -QUIZ 1The option with boldface is the correct answer.1. A set of rules used to instruct the program what operations to perform iscalleda)pseudocode.b)a walkthrough.c)diagnostics.d)a programming language.2. A language that is an example of a scientifically oriented language isa)FORTRAN.b)BASICc)COBOL.d)Pascal.3. The highest level of programming language isa)assembly.b)COBOL.c)natural.d)machine.4. The first step in the development of a program isa)planning a solution.b)defining the problem.c)documenting the program.d)testing the program.5.

  1. Contoh Flowchart Program Pascal Examples
  2. Flowchart

The lowest level of programming language isa)natural.b)English.c)assembly.d)machine.6. A programming language often used to teach programming to beginners isa)machine language.b)BASICc)assembly language.d)Smalltalk.7. A language that is more precise than English but less precise than aformal programming language isa)Pascal.b)translator.c)pseudocode.d)FORTRAN.8.

The rules of a programming language are called itsa)pseudocode.b)coding.c)compiling.d)syntax.9. Mistakes in a program that involve the improper use of the programminglanguage are calleda)syntax errors.b)diagnostics.c)attributes.d)logic errors.10. A pictorial representation of an orderly, step-by-step solution to aprogramming problem is called a(n)a)syntax.b)ANSI symbol.c)flowchart.d)pseudocode.11.

Which is not output from the compiler?a)load moduleb)source program listingc)object moduled)diagnostics12. The process in which a group of peers review a program and offersuggestions to the programmer is known asa)assembly.b)a procedure.c)documentation.d)a walkthrough.13. The set of instructions for the computer written by the programmer arecalled a(n)a)program.b)compiler.c)flowchart.d)attribute.14. The original program is referred to as thea)link module.b)source module.c)object module.d)load module.15. The module that is executed by the computer is thea)link module.b)source module.c)object module.d)load module.16. A type of fourth-generation language used for retrieving data fromdatabases isa)FORTRAN.b)Cc)query.d)Pascal.17.

The language well-suited for business programming isa)COBOL.b)machine.c)FORTRAN.d)Pascal.18. The programming language that can be used to produces code thatapproaches assembly language in efficiency while still offering high-levellanguage features isa)FORTRAN.b)Cc)BASICd)Pascal.19. A detailed written description of the program and the test results ofthe program is calleda)documentation.b)pseudocode.c)flowcharts.d)diagnostics.20. The level of language that is closest to spoken English isa)natural.b)machine.c)FORTRAN.d)very high level.mzs:01-Jun-98 10:30 AM:kuiz1QUIZ2: Introduction To Java1. The correct command to compile a Java program is. javacmyprog.java. javamyprog.java.

javacmyprog. javamyprog2. The correct command to run a Java program is.

javacmyprog.java. javamyprog.java. javacmyprog. javamyprog3. Which (complete) statement prints the text 'HelloWorld!' On the screen?.

Sistem

System.out.println(.HelloWorld!.). System.out.println('HelloWorld!'

);. System.out.println('HelloWorld!' );. System.out.println('HelloWorld!'

Text in the /./ will. give command topreprocessor. cause syntax error.

serve as documentationto human reader. declare some memorylocation5. Choose the valid Java identifiers:i.

99cents. i, ii, iii, iv. i, iv. i, ii. ii, iv, v6. Which statement reads an integer into variable abc using theccj package?.

Console.in.readInt(abc);. abc = Console.in.readDouble;. abc= Console.in.readInt;. Console.in.readInt= abc;For questions 8 - 10, use the following initializations:int i = 8, j = 5;double x = 1.5, y = 0.5;8. What is the value of this expression?2.((i/8)+(4.(j-3))%(i+j-2)). 9.

18. 7. 119. What is the value of i after these statements were executed?i += j;i;. 9. 14. 13.

610. What is the value of y after this statement?y = x + y. (j + 1) / 2;. 2.25.

3.0. 6.0. 4.0In question 11 to 13 you should determine the values of the following expressions.On each question, assume that: double x = 2.0; double y = -1.5; int m = 18; int n = 4;11. X + n.

y - (x +n). y. 6.25. 5.0.

Contoh Flowchart Program Pascal Examples

Contoh flowchart program pascal download

20.0. 47.012.

Flowchart

In a nuthsell, this lesson will cover:.Up till now, we have based our programs on the most simple control structure: Sequence. This means that all of our programs so far were made up of sequential instructions executed one after the other. Basing such programming on such a simple control structure, would not be possible for complex programs to be developed. With only sequential instructions, it won't be possible to enable decision making in code or code repetition.Thus, it's now the time to learn the most important branches of programming: the if statements - decision making, for loops - iterations and the repeat-until loop - iterations. These 2 general programming control structures are common in almost every programming language that exists (procedural, event-driven/object oriented programming).

Make sure that when you have finished reading this lesson, you have practised them enough before continuing to learn Pascal. The If statement executes the subsequent statement(s) conditionally. This means that if a condition evaluates to true, then the statement(s) following the if statement are executed, otherwise these statements are skipped and will not be executed. It works like this:If then OR:If then,elseTherefore, in Pascal the ' if statement' should be written using the following syntax.