Test your basic knowledge |

Pascal Programming

Subject : it-skills
Instructions:
  • Answer 50 questions in 15 minutes.
  • If you are not ready to take this test, you can study here.
  • Match each statement with the correct term.
  • Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.

This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. Variable When a variable is declared under a procedure it is a _____ variable?






2. A method of passing a variable to a program by making a copy of the variable and giving it to the called program.






3. It encapsulates a sequence of statements as a single statement. Has a begin and end statement.






4. Loops that never end because the stopping/exit condition is never met.






5. An ______ statement evaluates a Boolean expression. A different code will be executed if the expression evaluates to true (the body of the if) than if the expression evaluates to false (the body of the else).






6. In a multiple ____ statement (Non-Exclusive Condition) any or all or none of the conditions may be true - they are independent.






7. To test that the subprograms are integrated into the program correctly. That they interact with one another correctly - passing the required information to and from one another.






8. The three categories for a program structure are: ____ - Branching/Selection - Looping/Iteration






9. An ____ statement evaluates a Boolean expression. The code will only be executed when the expression evaluates to true.






10. They can store values passed on to them but cannot return any values.






11. Some logical operators in Pascal are: OR - AND - ___ - NOT - NAND - NOR






12. Boolean expressions can be simple or _______






13. Used to trace the execution of an algorithm.






14. A _______ statement involves Decision making with two conditions (true or false). No semicolon after 'else.






15. ________ design is the key to the ability to create large systems.






16. A parameter that is specified as part of a function definition.






17. For an ____ Boolean Expression to be true the Boolean expressions must evaluate to true before the entire expression is true. If any expression is false then whole expression evaluates to false.






18. Breaking things into modules.






19. A _________ statement is what follows the 'then' in an (if-then statement) and is enclosed within the begin-end pair.






20. An entity declared in a subprogram can be accessed by any subprogram defined within it - provided that no entity with the same name is declared in the internal subprogram.






21. Modules are defined in the ______ part of a program - under the constant.






22. <> is the symbol for ___ equal to






23. ______ design starts by identifying tasks at the bottom level and then combine them to solve the main problem.






24. A special kind of variable used in a subroutine to refer to one of the pieces of data provided as input to the subroutine. Values can be passed from outside the procedure.






25. True and False are the two _____ constants






26. The three logical flows that govern a structured program are: Sequence - ______ - and Repetition.






27. A global entity is accessible throughout the main program and in any subprogram in which no local entity has the same name as the global item.






28. A logical circuit which is used to add two binary digits.






29. _______ boolean expressions are formed by combining boolean expressions using the boolean operators (NOT - AND- OR).






30. For an ____ Boolean Expression to be true if any Boolean expression evaluates to true then the entire expression evaluates to true.






31. The creation (write) of the code.






32. The order of operations of the boolean operators from first to last is: NOT - AND - _____






33. Parameters act like _____ variables within a module






34. This is where the module is invoked or called.






35. Test each module in isolation and test the modules all together and make sure every line of code is tested.






36. The three statements in PASCAL that implement repetition structures:WHILE - FOR - ______.






37. Modulars are ________ from one another






38. All modules must be _____ and they can call other modules.






39. Refers to the execution of a sequence of statements in the order in which they appear so that each statement is executed exactly once.






40. An item declared within a procedure or function is not accessible outside that procedure or function.






41. They can both receive and return values.






42. In Pascal Programs are executed one ______ at a time.






43. Modules can be called anywhere in the program - but must be done after their ______.






44. The five types of operands allowed in Pascal are: Integer - Real - Boolean - _____ - Constant






45. When true the if executes the body which is a _________ statement.






46. The order of operations from first to last are ___ - (* / DIV MOD AND) - (+ - OR) - (< > = <= >= <>)






47. A ______ statement is generally used when the number of times that the loop executes is not known in advance. The loop executes as long as the boolean expression is true.






48. Typically a variable that determines whether or not the loop executes or not.






49. The five activities in the lifetime of a piece of software? are _______ - Design - Implementation (Coding) - Testing - Deployment/Maintenance.






50. A nested decision making statement can also have a ____ in the inner statement.